HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

chrt — Manipulate the real-time attributes of a process. More information: <https://manned.org/chrt>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thechrtcommandmanipulatecliattributesrealtime
linux

Problem

How to use the chrt command: Manipulate the real-time attributes of a process. More information: <https://manned.org/chrt>.

Solution

chrt — Manipulate the real-time attributes of a process. More information: <https://manned.org/chrt>.

Display attributes of a process:
chrt {{[-p|--pid]}} {{PID}}


Display attributes of all threads of a process:
chrt {{[-a|--all-tasks]}} {{[-p|--pid]}} {{PID}}


Display the min/max priority values that can be used with chrt:
chrt {{[-m|--max]}}


Set the scheduling priority of a process:
chrt {{[-p|--pid]}} {{priority}} {{PID}}


Set the scheduling policy of a process:
chrt --{{deadline|idle|batch|rr|fifo|other}} {{[-p|--pid]}} {{priority}} {{PID}}

Code Snippets

Display attributes of a process

chrt {{[-p|--pid]}} {{PID}}

Display attributes of all threads of a process

chrt {{[-a|--all-tasks]}} {{[-p|--pid]}} {{PID}}

Display the min/max priority values that can be used with `chrt`

chrt {{[-m|--max]}}

Set the scheduling priority of a process

chrt {{[-p|--pid]}} {{priority}} {{PID}}

Set the scheduling policy of a process

chrt --{{deadline|idle|batch|rr|fifo|other}} {{[-p|--pid]}} {{priority}} {{PID}}

Context

tldr-pages: linux/chrt

Revisions (0)

No revisions yet.