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.\" $FreeBSD$ 34.\" 35.Dd June 9, 1993 36.Dt RENICE 8 37.Os 38.Sh NAME 39.Nm renice 40.Nd alter priority of running processes 41.Sh SYNOPSIS 42.Nm 43.Oo 44.Ar priority | 45.Op Fl n Ar increment 46.Oc 47.Oo 48.Op Fl p 49.Ar pid ... 50.Oc 51.Oo 52.Op Fl g 53.Ar pgrp ... 54.Oc 55.Oo 56.Op Fl u 57.Ar user ... 58.Oc 59.Sh DESCRIPTION 60.Nm Renice 61alters the 62scheduling priority of one or more running processes. 63The following 64.Ar who 65parameters are interpreted as process ID's, process group 66ID's, or user names. 67.Nm Renice Ns 'ing 68a process group causes all processes in the process group 69to have their scheduling priority altered. 70.Nm Renice Ns 'ing 71a user causes all processes owned by the user to have 72their scheduling priority altered. 73By default, the processes to be affected are specified by 74their process ID's. 75.Pp 76Options supported by 77.Nm : 78.Bl -tag -width Ds 79.It Fl g 80Force 81.Ar who 82parameters to be interpreted as process group ID's. 83.It Fl n 84Instead of changing the specified processes to the given priority, 85interpret the following argument as an increment to be applied to 86the current priority of each process. 87.It Fl u 88Force the 89.Ar who 90parameters to be interpreted as user names. 91.It Fl p 92Resets the 93.Ar who 94interpretation to be (the default) process ID's. 95.El 96.Pp 97For example, 98.Bd -literal -offset 99renice +1 987 -u daemon root -p 32 100.Ed 101.Pp 102would change the priority of process ID's 987 and 32, and 103all processes owned by users daemon and root. 104.Pp 105Users other than the super-user may only alter the priority of 106processes they own, 107and can only monotonically increase their ``nice value'' 108within the range 0 to 109.Dv PRIO_MAX 110(20). 111(This prevents overriding administrative fiats.) 112The super-user 113may alter the priority of any process 114and set the priority to any value in the range 115.Dv PRIO_MIN 116(\-20) 117to 118.Dv PRIO_MAX . 119Useful priorities are: 12020 (the affected processes will run only when nothing else 121in the system wants to), 1220 (the ``base'' scheduling priority), 123anything negative (to make things go very fast). 124.Sh FILES 125.Bl -tag -width /etc/passwd -compact 126.It Pa /etc/passwd 127to map user names to user ID's 128.El 129.Sh SEE ALSO 130.Xr nice 1 , 131.Xr rtprio 1 , 132.Xr getpriority 2 , 133.Xr setpriority 2 134.Sh BUGS 135Non super-users cannot increase scheduling priorities of their own processes, 136even if they were the ones that decreased the priorities in the first place. 137.Sh HISTORY 138The 139.Nm 140command appeared in 141.Bx 4.0 . 142