1CHRT(1) Linux User's Manual CHRT(1)
2
3
4
6 chrt - manipulate real-time attributes of a process
7
9 chrt [options] prio command [arg]...
10 chrt [options] -p [prio] pid
11
13 chrt(1) sets or retrieves the real-time scheduling attributes of an
14 existing PID or runs COMMAND with the given attributes. Both policy
15 (one of SCHED_OTHER, SCHED_FIFO, SCHED_RR, SCHED_BATCH, or SCHED_IDLE)
16 and priority can be set and retrieved.
17
18 The SCHED_BATCH policy is supported since Linux 2.6.16. The SCHED_IDLE
19 policy is supported since Linux 2.6.23.
20
22 -p, --pid
23 operate on an existing PID and do not launch a new task
24
25 -b, --batch
26 set scheduling policy to SCHED_BATCH (Linux specific)
27
28 -f, --fifo
29 set scheduling policy to SCHED_FIFO
30
31 -i, --idle
32 set schedulng policy to SCHED_IDLE (Linux specific)
33
34 -m, --max
35 show minimum and maximum valid priorities, then exit
36
37 -o, --other
38 set policy scheduling policy to SCHED_OTHER
39
40 -r, --rr
41 set scheduling policy to SCHED_RR (the default)
42
43 -h, --help
44 display usage information and exit
45
46 -v, --version
47 output version information and exit
48
50 The default behavior is to run a new command::
51 chrt prio command [arguments]
52
53 You can also retrieve the real-time attributes of an existing task:
54 chrt -p pid
55
56 Or set them:
57 chrt -p prio pid
58
60 A user must possess CAP_SYS_NICE to change the scheduling attributes of
61 a process. Any user can retrieve the scheduling information.
62
64 Only SCHED_FIFO, SCHED_OTHER and SCHED_RR are part of POSIX 1003.1b
65 Process Scheduling. The other scheduling attributes may be ignored on
66 some systems.
67
69 Written by Robert M. Love.
70
72 Copyright © 2004 Robert M. Love
73 This is free software; see the source for copying conditions. There is
74 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
75 PURPOSE.
76
78 taskset(1), nice(1), renice(1)
79
80 See sched_setscheduler(2) for a description of the Linux scheduling
81 scheme.
82
84 The chrt command is part of the util-linux-ng package and is available
85 from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
86
87
88
89schedutils Apr 2003 CHRT(1)