RTNICE(2)

NAME
rtnice - Set/Get scheduler policy and priority value for a process

SYNOPSIS

rtnice -n <priority> -p <pid> -d FF|TS|RR [command...]

DESCRIPTION
The utility rtnice will either set or get the scheduling policy and priority for a process.

This implementation of POSIX.4 defines the following scheduling policies:

SCHED_FIFO      Run until blocked (First-in/First-out)

SCHED_RR        Round-Robin (Fixed time-slice)

SCHED_OTHER     The default Linux time-share scheduler

The behavior of rtnice(1) depends on the arguments given.

rtnice
    (with no arguments) will print the scheduling policy and priority of the shell (or other process that created the instance of rtnice.

rtnice -n 13 -d FF/bin/sh
    will exec a shell with a FIFO scheduling policy and a POSIX scheduler priority of 13. Note the -n argument is absolute, not relative, as is the case with nice(1).

rtnice -n 23 -d RR -p 666
    will set the process given by pid 666 to use the POSIX round-robin scheduler policy at a scheduling priority of 23.

ERRORS
When rtnice fails, a positive small integer will be returned as exit status.

SEE ALSO
sched_get_priority_max(2), sched_get_priority_min(2), sched_getparam(2), sched_setparam(2), sched_rr_get_interval(2), sched_getscheduler(2), sched_setscheduler(2)