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