What's the proper way to change a process' scheduling policy to IDLE?
Posted
by
??O?????
on Server Fault
See other posts from Server Fault
or by ??O?????
Published on 2010-09-24T20:47:57Z
Indexed on
2010/12/29
1:56 UTC
Read the original article
Hit count: 187
Hello. I have a long running process on a server running Ubuntu Server 9.10. I would like to make it run under the SCHED_IDLE policy using the chrt
command. However, after reading the man page, I can't manage to understand the proper way to issue the command for a running process.
I've tried unsuccessfully:
# chrt -i -p 688
pid 688's current scheduling policy: SCHED_OTHER
pid 688's current scheduling priority: 0
# chrt -p -i 688
pid 688's current scheduling policy: SCHED_OTHER
pid 688's current scheduling priority: 0
# chrt -p 688 -i
chrt: failed to set pid 0's policy: Invalid argument
I'll keep trying, but do you know how to do what I want?
© Server Fault or respective owner