To change job scheduling policy (job scheduler) in Linux, we can use "chrt" to achieve our goal.
-b | --batch set policy to SCHED_BATCH
-f | --fifo set policy to SCHED_FIFO
-i | --idle set policy to SCHED_IDLE
-o | --other set policy to SCHED_OTHER
-r | --rr set policy to SCHED_RR (default)
chrt --rr <priority between 1-99> <command>
http://linniex.blogspot.tw/2013/04/linux-kernel-development_16.html
http://askubuntu.com/questions/51283/how-to-run-a-program-with-sched-rr-policy-from-command-line
chrt --rr 99 lsreferences
http://linniex.blogspot.tw/2013/04/linux-kernel-development_16.html
http://askubuntu.com/questions/51283/how-to-run-a-program-with-sched-rr-policy-from-command-line
沒有留言:
張貼留言