1CHRT(1)                          User Commands                         CHRT(1)
2
3
4

NAME

6       chrt - manipulate the real-time attributes of a process
7

SYNOPSIS

9       chrt [options] prio command [arg]...
10       chrt [options] -p [prio] pid
11

DESCRIPTION

13       chrt sets or retrieves the real-time scheduling attributes of an exist‐
14       ing pid, or runs command with the given attributes.  Both  policy  (one
15       of  SCHED_OTHER,  SCHED_FIFO, SCHED_RR, SCHED_BATCH, or SCHED_IDLE) and
16       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
21       The  SCHED_RESET_ON_FORK  flag  for policies SCHED_RR and SCHED_FIFO is
22       supported since Linux 2.6.31.
23

OPTIONS

25       -a, --all-tasks
26              Set or retrieve the  scheduling  attributes  of  all  the  tasks
27              (threads) for a given PID.
28
29       -b, --batch
30              Set scheduling policy to SCHED_BATCH (Linux specific).
31
32       -f, --fifo
33              Set scheduling policy to SCHED_FIFO.
34
35       -i, --idle
36              Set scheduling policy to SCHED_IDLE (Linux specific).
37
38       -m, --max
39              Show minimum and maximum valid priorities, then exit.
40
41       -o, --other
42              Set policy scheduling policy to SCHED_OTHER.
43
44       -p, --pid
45              Operate on an existing PID and do not launch a new task.
46
47       -r, --rr
48              Set  scheduling  policy to SCHED_RR.  When policy is not defined
49              the SCHED_RR is used as default.
50
51       -R, --reset-on-fork
52              Add SCHED_RESET_ON_FORK  flag  to  the  SCHED_FIFO  or  SCHED_RR
53              scheduling policy (Linux specific).
54
55       -v, --verbose
56              Show status information.
57
58       -h, --help
59              Display usage information and exit.
60
61       -V, --version
62              Display version information and exit.
63

USAGE

65       The default behavior is to run a new command:
66              chrt prio command [arguments]
67
68       You can also retrieve the real-time attributes of an existing task:
69              chrt -p pid
70
71       Or set them:
72              chrt -r -p prio pid
73

PERMISSIONS

75       A user must possess CAP_SYS_NICE to change the scheduling attributes of
76       a process.  Any user can retrieve the scheduling information.
77

NOTES

79       Only SCHED_FIFO, SCHED_OTHER and SCHED_RR are  part  of  POSIX  1003.1b
80       Process  Scheduling.  The other scheduling attributes may be ignored on
81       some systems.
82
83       Linux default scheduling policy is SCHED_OTHER.
84

AUTHOR

86       Written by Robert M. Love.
87
89       Copyright © 2004 Robert M. Love
90       This is free software; see the source for copying conditions.  There is
91       NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
92       PURPOSE.
93

SEE ALSO

95       taskset(1), nice(1), renice(1)
96
97       See sched_setscheduler(2) for a description  of  the  Linux  scheduling
98       scheme.
99

AVAILABILITY

101       The  chrt  command  is  part of the util-linux package and is available
102       from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
103
104
105
106util-linux                         June 2010                           CHRT(1)
Impressum