]> git.ipfire.org Git - thirdparty/util-linux.git/blob - sys-utils/renice.1
99cc61f211c62147515f1ca53d1f84c5da49a153
[thirdparty/util-linux.git] / sys-utils / renice.1
1 .\" Copyright (c) 1983, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
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.
19 .\"
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
30 .\" SUCH DAMAGE.
31 .\"
32 .\" @(#)renice.8 8.1 (Berkeley) 6/9/93
33 .\"
34 .TH RENICE "1" "July 2014" "util-linux" "User Commands"
35 .SH NAME
36 renice \- alter priority of running processes
37 .SH SYNOPSIS
38 .B renice
39 .RB [ \-n ]
40 .I priority
41 .RB [ \-g | \-p | \-u ]
42 .IR identifier ...
43 .SH DESCRIPTION
44 .B renice
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.
49 .BR renice 'ing
50 a process group causes all processes in the process group to have their
51 scheduling priority altered.
52 .BR renice 'ing
53 a user causes all processes owned by the user to have their scheduling
54 priority altered.
55 .PP
56 .SH OPTIONS
57 .TP
58 .BR \-n , " \-\-priority " \fIpriority\fR
59 Specify the scheduling
60 .I priority
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.
64 .TP
65 .BR \-g , " \-\-pgrp
66 Interpret the succeeding arguments as process group IDs.
67 .TP
68 .BR \-p , " \-\-pid
69 Interpret the succeeding arguments as process IDs
70 (the default).
71 .TP
72 .BR \-u , " \-\-user
73 Interpret the succeeding arguments as usernames or UIDs.
74 .TP
75 .BR \-V , " \-\-version"
76 Display version information and exit.
77 .TP
78 .BR \-h , " \-\-help"
79 Display help text and exit.
80 .SH FILES
81 .TP
82 .I /etc/passwd
83 to map user names to user IDs
84 .SH NOTES
85 Users other than the superuser may only alter the priority of processes they
86 own. Furthermore, an unprivileged user can only
87 .I increase
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
91 .BR ulimit (1p)
92 and
93 .BR getrlimit (2)).
94
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).
100 .SH HISTORY
101 The
102 .B renice
103 command appeared in 4.0BSD.
104 .SH EXAMPLE
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:
107 .TP
108 .B " renice" +1 987 \-u daemon root \-p 32
109 .SH SEE ALSO
110 .BR nice (1),
111 .BR chrt (1),
112 .BR getpriority (2),
113 .BR setpriority (2),
114 .BR credentials (7),
115 .BR sched (7)
116 .SH AVAILABILITY
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/
119 Linux Kernel Archive
120 .UE .