]> git.ipfire.org Git - thirdparty/util-linux.git/blame - schedutils/chrt.1
mount: use loop= option when mounting by /sbin/mount.<type>
[thirdparty/util-linux.git] / schedutils / chrt.1
CommitLineData
48d7b13a
KZ
1.\" chrt(1) manpage
2.\"
3.\" Copyright (C) 2004 Robert Love
4.\"
5.\" This is free documentation; you can redistribute it and/or
6.\" modify it under the terms of the GNU General Public License as
7.\" published by the Free Software Foundation; either version 2 of
8.\" the License.
9.\"
10.\" The GNU General Public License's references to "object code"
11.\" and "executables" are to be interpreted as the output of any
12.\" document formatting or typesetting system, including
13.\" intermediate and printed output.
14.\"
15.\" This manual is distributed in the hope that it will be useful,
16.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18.\" GNU General Public License for more details.
19.\"
20.\" You should have received a copy of the GNU General Public
21.\" License along with this manual; if not, write to the Free
22.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23.\" USA.
24.\"
25.\" 2002-05-11 Robert Love <rml@tech9.net>
26.\" Initial version
27.\"
28.TH CHRT "1" "Apr 2003" "schedutils" "Linux User's Manual"
29.SH NAME
30chrt \- manipulate real-time attributes of a process
31.SH SYNOPSIS
32.B chrt
33[\fIoptions\fR] [\fIprio\fR] [\fIpid\fR | \fIcommand\fR [\fIarg\fR]...]
34.SH DESCRIPTION
35.PP
36.BR chrt (1)
37sets or retrieves the real-time scheduling attributes of an existing PID or
38runs COMMAND with the given attributes. Both policy (one of
df3773fb 39.BR SCHED_OTHER ,
48d7b13a
KZ
40.BR SCHED_FIFO ,
41.BR SCHED_RR ,
42or
df3773fb 43.BR SCHED_BATCH )
48d7b13a 44and priority can be set and retrieved.
09dd84ca
KZ
45.PP
46The
47.BR SCHED_BATCH
48policy is supported since Linux 2.6.16.
48d7b13a
KZ
49.SH OPTIONS
50.TP
51.B -p, --pid
52operate on an existing PID and do not launch a new task
df3773fb
KZ
53.TP
54.B -b, --batch
55set scheduling policy to
56.BR SCHED_BATCH
48d7b13a
KZ
57.TP
58.B -f, --fifo
59set scheduling policy to
60.BR SCHED_FIFO
61.TP
62.B -m, --max
63show minimum and maximum valid priorities, then exit
64.TP
65.B -o, --other
66set policy scheduling policy to
67.BR SCHED_OTHER
68.TP
69.B -r, --rr
70set scheduling policy to
71.BR SCHED_RR
72(the default)
73.TP
74.B -h, --help
75display usage information and exit
76.TP
77.B -v, --version
78output version information and exit
79.SH USAGE
80.TP
81The default behavior is to run a new command::
5ee00309 82chrt [prio] [command] [arguments]
48d7b13a
KZ
83.TP
84You can also retrieve the real-time attributes of an existing task:
85chrt -p [pid]
86.TP
87Or set them:
88chrt -p [prio] [pid]
89.SH PERMISSIONS
90A user must possess
91.BR CAP_SYS_NICE
92to change the scheduling attributes of a process. Any user can retrieve the
93scheduling information.
94.SH AUTHOR
95Written by Robert M. Love.
96.SH "REPORTING BUGS"
97Report bugs to <rml@tech9.net>.
98.SH COPYRIGHT
99Copyright \(co 2004 Robert M. Love
100.br
101This is free software; see the source for copying conditions. There is NO
102warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
103.SH "SEE ALSO"
104.BR taskset (1),
105.BR nice (1),
106.BR renice (1)
107.sp
108See
109.BR sched_setscheduler (2)
110for a description of the Linux scheduling scheme.