SRCDS Steam group


cron and resched.sh
#1
Hi Guys,

Any idea's why after a couple of minutes when watching top my srcds process has a priority of -99 then drops to 0? unless I run resched.sh command manually..

I've added it to crontab -e.. ?

Thanks,
Alex.
Reply
#2
do you run the resched.sh command as root from cron?
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#3
Hi BehaartesEtwas,

First I tried adding */5 * * * * root /usr/local/sbin/resched.sh > /dev/null 2>&1 and restarted the daemon, then removed it and added to crontab -e only because using Ubuntu in the past I always used that.

Anyway since posting I do believe the cron job is working it just seems that sometimes the PR of srcds process drops to 0 from -99 until the cron job kicks back in?

Thanks for your help,
Alex.
Reply
#4
I never observed this. Do you run the game servers as root (-> bad idea)? Or did you modify /etc/security/limits.conf? What I observed was some time ago, that the servers try to rise their priority by themselves. Normally this is not possible, but as root or with some settings in limits.conf they could do this. But if you set the priority yourself using resched.sh that might actually lower the priority...

I am pretty sure that under normal circumstances srcds does not lower its priority by itself. I don't use any cronjob to change priority but some tool that changes it only once at startup of the server. Still my servers have their priority after ~24h of running...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#5
Hi BehaartesEtwas,

No, each instance of srcds is ran as their own user not root, again no I haven't altered limits.conf :-(

It's strange because my other server running ubuntu works fine, this new server is running debian? very strange!

Thanks!
Reply
#6
debian shouldn't make the difference... make sure you don't have any cronjob that changes priorities (like resched.sh) installed in any of the user accounts...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#7
Will have a look .. thanks for your help

Thanks,
Alex
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)