IBM Support

Changing RHEL process priority in Linux

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)

[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":null,"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Historical Number

NZ910404

Document Information

Modified date:
17 October 2019

UID

swg21577528