3 .\" Copyright (C) 2004 Robert Love
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
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.
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.
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,
25 .\" 2002-05-11 Robert Love <rml@tech9.net>
28 .TH CHRT "1" "Apr 2003" "schedutils" "Linux User's Manual"
30 chrt \- manipulate real-time attributes of a process
34 .IR command\ [ arg ]...
43 sets or retrieves the real-time scheduling attributes of an existing PID or
44 runs COMMAND with the given attributes. Both policy (one of
51 and priority can be set and retrieved.
55 policy is supported since Linux 2.6.16. The
57 policy is supported since Linux 2.6.23.
61 operate on an existing PID and do not launch a new task
64 set scheduling policy to
69 set scheduling policy to
73 set schedulng policy to
78 show minimum and maximum valid priorities, then exit
81 set policy scheduling policy to
85 set scheduling policy to
90 display usage information and exit
93 output version information and exit
96 The default behavior is to run a new command::
97 chrt prio command [arguments]
99 You can also retrieve the real-time attributes of an existing task:
107 to change the scheduling attributes of a process. Any user can retrieve the
108 scheduling information.
115 are part of POSIX 1003.1b Process Scheduling. The other scheduling attributes
116 may be ignored on some systems.
118 Written by Robert M. Love.
120 Copyright \(co 2004 Robert M. Love
122 This is free software; see the source for copying conditions. There is NO
123 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
130 .BR sched_setscheduler (2)
131 for a description of the Linux scheduling scheme.
133 The chrt command is part of the util-linux-ng package and is available from
134 ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.