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.


Usage:

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






Command Line Options:

-T
Specifies runtime parameter for SCHED_DEADLINE policy (Linux-specific).
chrt -T ...
-P
Specifies period parameter for SCHED_DEADLINE policy (Linux-specific).
chrt -P ...
-D
Specifies deadline parameter for SCHED_DEADLINE policy (Linux-specific).
chrt -D ...
-R
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 ...
-a
Set or retrieve the scheduling attributes of all the tasks (threads) for a given PID.
chrt -a ...
-m
Show minimum and maximum valid priorities, then exit.
chrt -m ...
-p
Operate on an existing PID and do not launch a new task.
chrt -p ...
-v
Show status information.
chrt -v ...
-V
Display version information and exit.
chrt -V ...
-h
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 ...