Question & Answer
Question
How do I use the Linux scheduling policies to change the priority for a RHEL process?
Answer
The three supported scheduling policies in Linux are firstin/firstout (FIFO), roundrobin (RR), and other. You can override the default scheduling policy of any process to set its priority. However, the following commands must be used with caution because you could easily render the system unavailable.
Note: Any child process will also inherit the customized scheduler settings.
#retrieve current scheduling attributes
chrt -p <pid>
#Sched_fifo
chrt -f [1-99] /path/to/prog args
#Sched_rr
chrt -r [1-99] /path/to/prog args
#Sched_other
nice /path/to/prog renice /path/to/prog
For more information, refer to the Linux man page:
- man sched_setscheduler(2)
Historical Number
NZ910404
Was this topic helpful?
Document Information
Modified date:
17 October 2019
UID
swg21577528