1 .\" Copyright (c) 1983, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)renice.8 8.1 (Berkeley) 6/9/93
34 .TH RENICE "1" "July 2014" "util-linux" "User Commands"
36 renice \- alter priority of running processes
41 .RB [ \-g | \-p | \-u ]
45 alters the scheduling priority of one or more running processes. The
46 first argument is the \fIpriority\fR value to be used.
47 The other arguments are interpreted as process IDs (by default),
48 process group IDs, user IDs, or user names.
50 a process group causes all processes in the process group to have their
51 scheduling priority altered.
53 a user causes all processes owned by the user to have their scheduling
58 .BR \-n , " \-\-priority " \fIpriority\fR
59 Specify the scheduling
61 to be used for the process, process group, or user. Use of the option
62 .BR \-n " or " \-\-priority
63 is optional, but when used it must be the first argument.
66 Interpret the succeeding arguments as process group IDs.
69 Interpret the succeeding arguments as process IDs
73 Interpret the succeeding arguments as usernames or UIDs.
75 .BR \-V , " \-\-version"
76 Display version information and exit.
79 Display help text and exit.
83 to map user names to user IDs
85 Users other than the superuser may only alter the priority of processes they
86 own. Furthermore, an unprivileged user can only
88 the ``nice value'' (i.e., choose a lower priority)
89 and such changes are irreversible unless (since Linux 2.6.12)
90 the user has a suitable ``nice'' resource limit (see
95 The superuser may alter the priority of any process and set the priority to any
96 value in the range \-20 to 19.
97 Useful priorities are: 19 (the affected processes will run only when nothing
98 else in the system wants to), 0 (the ``base'' scheduling priority), anything
99 negative (to make things go very fast).
103 command appeared in 4.0BSD.
105 The following command would change the priority of the processes with
106 PIDs 987 and 32, plus all processes owned by the users daemon and root:
108 .B " renice" +1 987 \-u daemon root \-p 32
117 The renice command is part of the util-linux package and is available from
118 .UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/