Linux "chrt" Command Line Options and Examples
manipulate the real-time attributes of a process

chrt sets or retrieves the real-time scheduling attributes of an existing pid, or runs command with the given attributes.POLICIES -o, --other Set scheduling policy to SCHED_OTHER. This is the default Linux scheduling policy.


chrt [options] priority command [argument...]
    chrt [options] -p [priority] pid

Command Line Options:

Specifies runtime parameter for SCHED_DEADLINE policy (Linux-specific).
chrt -T ...
Specifies period parameter for SCHED_DEADLINE policy (Linux-specific).
chrt -P ...
Specifies deadline parameter for SCHED_DEADLINE policy (Linux-specific).
chrt -D ...
Add SCHED_RESET_ON_FORK flag to the SCHED_FIFO or SCHED_RR scheduling policy (Linux-specific, supported since 2.6.31).OPTIONS
chrt -R ...
Set or retrieve the scheduling attributes of all the tasks (threads) for a given PID.
chrt -a ...
Show minimum and maximum valid priorities, then exit.
chrt -m ...
Operate on an existing PID and do not launch a new task.
chrt -p ...
Show status information.
chrt -v ...
Display version information and exit.
chrt -V ...
Display help text and exit.USAGEThe default behavior is to run a new command:chrt priority command [arguments]You can also retrieve the real-time attributes of an existing task:chrt -p pidOr set them:chrt -r -p priority pidPERMISSIONSA user must possess CAP_SYS_NICE to change the scheduling attributes of a process. Any user can retrieve the scheduling information.NOTESOnly SCHED_FIFO, SCHED_OTHER and SCHED_RR are part of POSIX 1003.1b Process Scheduling. The other scheduling attributes may beignored on some systems.Linux' default scheduling policy is SCHED_OTHER.
chrt -h ...