document that {} behavior has changed
[unix-history] / usr / src / usr.bin / renice / renice.8
CommitLineData
f56e8d15
KB
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
c229b29d 3.\"
c45a9e4d 4.\" %sccs.include.redist.man%
c229b29d 5.\"
c45a9e4d 6.\" @(#)renice.8 6.4 (Berkeley) %G%
f56e8d15
KB
7.\"
8.UC 7
0b8cdd44 9.TH RENICE 8 ""
c229b29d
KM
10.UC 4
11.SH NAME
8d36c088 12renice \- alter priority of running processes
c229b29d 13.SH SYNOPSIS
c45a9e4d 14.B renice
8d36c088
KM
15priority [ [
16.B \-p
17] pid ... ] [ [
18.B \-g
19] pgrp ... ] [ [
20.B \-u
21] user ... ]
c229b29d
KM
22.SH DESCRIPTION
23.I Renice
8d36c088
KM
24alters the
25scheduling priority of one or more running processes.
26The
27.I who
28parameters are interpreted as process ID's, process group
29ID's, or user names.
30.IR Renice 'ing
31a process group causes all processes in the process group
32to have their scheduling priority altered.
33.IR Renice 'ing
34a user causes all processes owned by the user to have
35their scheduling priority altered.
36By default, the processes to be affected are specified by
37their process ID's. To force
38.I who
39parameters to be interpreted as process group ID's, a
40.B \-g
41may be specified. To force the
42.I who
43parameters to be interpreted as user names, a
44.B \-u
45may be given. Supplying
46.B \-p
47will reset
48.I who
49interpretation to be (the default) process ID's.
50For example,
51.sp
c45a9e4d 52 renice +1 987 -u daemon root -p 32
8d36c088
KM
53.sp
54would change the priority of process ID's 987 and 32, and
55all processes owned by users daemon and root.
c229b29d 56.PP
8d36c088
KM
57Users other than the super-user may only alter the priority of
58processes they own,
59and can only monotonically increase their ``nice value''
2b0388bc 60within the range 0 to PRIO_MAX (20).
8d36c088
KM
61(This prevents overriding administrative fiats.)
62The super-user
63may alter the priority of any process
2b0388bc
MK
64and set the priority to any value in the range PRIO_MIN (\-20)
65to PRIO_MAX.
8d36c088 66Useful priorities are:
2b0388bc 6720 (the affected processes will run only when nothing else
8d36c088
KM
68in the system wants to),
690 (the ``base'' scheduling priority),
70anything negative (to make things go very fast).
c229b29d 71.SH FILES
8d36c088 72/etc/passwd to map user names to user ID's
c229b29d 73.SH SEE ALSO
8d36c088 74getpriority(2), setpriority(2)
c229b29d 75.SH BUGS
8d36c088
KM
76Non super-users can not increase scheduling priorities of their own processes,
77even if they were the ones that decreased the priorities in the first place.