Reputation: 21
chrt -p 14490
pid 14490's current scheduling policy: SCHED_OTHER
pid 14490's current scheduling priority: 0`
I am trying to change the the scheduling priority of this process to SCHED_RR using the below command and running into the following error.
chrt -r -p 25 14490
chrt: failed to set pid 14490's policy: Operation not permitted
How can I debug why this is failing ?
Upvotes: 2
Views: 2020
Reputation: 121809
You failed to specify your Linux version... ... but here are a few options:
sysctl -w kernel.sched_rt_runtime_us=-1
https://lists.opensuse.org/opensuse-security/2011-04/msg00015.html
... and ...
I tested on a virtualized slackware 14.2. No error. I upgraded to util-linux-2.28.2 from current and then I had that error.
Upstream commit: https://github.com/karelzak/util-lin...ec919bec94089f
Marking thread as solved.
In other words:
sysctl -w kernel.sched_rt_runtime_us=-1
Upvotes: 1