BSD 4_2 development
[unix-history] / usr / man / man8 / renice.8
CommitLineData
ab35353e
C
1.TH RENICE 8 "24 July 1983"
2.UC 4
3.SH NAME
4renice \- alter priority of running processes
5.SH SYNOPSIS
6.B /etc/renice
7priority [ [
8.B \-p
9] pid ... ] [ [
10.B \-g
11] pgrp ... ] [ [
12.B \-u
13] user ... ]
14.SH DESCRIPTION
15.I Renice
16alters the
17scheduling priority of one or more running processes.
18The
19.I who
20parameters are interpreted as process ID's, process group
21ID's, or user names.
22.IR Renice 'ing
23a process group causes all processes in the process group
24to have their scheduling priority altered.
25.IR Renice 'ing
26a user causes all processes owned by the user to have
27their scheduling priority altered.
28By default, the processes to be affected are specified by
29their process ID's. To force
30.I who
31parameters to be interpreted as process group ID's, a
32.B \-g
33may be specified. To force the
34.I who
35parameters to be interpreted as user names, a
36.B \-u
37may be given. Supplying
38.B \-p
39will reset
40.I who
41interpretation to be (the default) process ID's.
42For example,
43.sp
44 /etc/renice +1 987 -u daemon root -p 32
45.sp
46would change the priority of process ID's 987 and 32, and
47all processes owned by users daemon and root.
48.PP
49Users other than the super-user may only alter the priority of
50processes they own,
51and can only monotonically increase their ``nice value''
52within the range 0 to PRIO_MIN (20).
53(This prevents overriding administrative fiats.)
54The super-user
55may alter the priority of any process
56and set the priority to any value in the range PRIO_MAX (\-20)
57to PRIO_MIN.
58Useful priorities are:
5919 (the affected processes will run only when nothing else
60in the system wants to),
610 (the ``base'' scheduling priority),
62anything negative (to make things go very fast).
63.SH FILES
64/etc/passwd to map user names to user ID's
65.SH SEE ALSO
66getpriority(2), setpriority(2)
67.SH BUGS
68If you make the priority very negative,
69then the process cannot be interrupted.
70To regain control you make the priority greater than zero.
71Non super-users can not increase scheduling priorities of their own processes,
72even if they were the ones that decreased the priorities in the first place.