2021-03-11 12:54:09 +00:00
|
|
|
# chrt
|
|
|
|
|
|
|
|
> Manipulate the real-time attributes of a process.
|
2024-06-18 04:48:58 +01:00
|
|
|
> More information: <https://manned.org/chrt>.
|
2021-03-11 12:54:09 +00:00
|
|
|
|
|
|
|
- Display attributes of a process:
|
|
|
|
|
|
|
|
`chrt --pid {{PID}}`
|
|
|
|
|
|
|
|
- Display attributes of all threads of a process:
|
|
|
|
|
|
|
|
`chrt --all-tasks --pid {{PID}}`
|
|
|
|
|
|
|
|
- Display the min/max priority values that can be used with `chrt`:
|
|
|
|
|
|
|
|
`chrt --max`
|
|
|
|
|
2024-05-06 02:12:24 +01:00
|
|
|
- Set the scheduling priority of a process:
|
|
|
|
|
|
|
|
`chrt --pid {{priority}} {{PID}}`
|
|
|
|
|
|
|
|
- Set the scheduling policy of a process:
|
2021-03-11 12:54:09 +00:00
|
|
|
|
2024-05-04 16:56:47 +01:00
|
|
|
`chrt --{{deadline|idle|batch|rr|fifo|other}} --pid {{priority}} {{PID}}`
|