SRCDS is not getting realtime priority

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Malvo
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Apr 14, 2016 1:16 pm

SRCDS is not getting realtime priority

Post by Malvo »

I've followed all the guides regarding setting up SRCDS so it runs with the realtime process scheduler (chrt -r 20). When I launch the server (rc.local automatically or manually), the SRCDS process does get realtime priority for about 2 seconds, before quickly being demoted to standard priority, I watch it through htop to see this.

A quick check using 'chrt -p *pid*' confirms this, just after starting the process, it reads:

"pid 1376's current scheduling policy: SCHED_RR
pid 1376's current scheduling priority: 20"

However, seconds later, performing the same command will give:

"pid 1376's current scheduling policy: SCHED_OTHER
pid 1376's current scheduling priority: 0"

Evidently, for whatever reason, something is causing the server process to demote itself from realtime priority, and it will stay this way continuously.

Could anyone offer some advice as to why this is happening and how to fix it? I have not seen anyone else having this issue on these forums. Thanks! :)
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: SRCDS is not getting realtime priority

Post by Edge100x »

That's a new one for me. Do you have any other scripts running in the background that might be influencing it?
Malvo
New to forums
New to forums
Posts: 2
Joined: Thu Apr 14, 2016 1:16 pm

Re: SRCDS is not getting realtime priority

Post by Malvo »

Nope, no scripts at all. Aside from the SRCDS installation it's just a clean install of Ubuntu 14.04.
Post Reply