renice.1 (3149B)
1 .TH RENICE 1 renice-VERSION "Jun 2013" 2 .SH NAME 3 renice \- set nice values of running processes 4 .SH "SYNOPSIS" 5 .PP 6 .B renice 7 .B \-n 8 .I increment 9 [ 10 .B \-g 11 | 12 .B \-p 13 | 14 .B \-u 15 ] 16 .I ID... 17 .SH DESCRIPTION 18 The 19 .B renice 20 utility requests that the nice values of one or more 21 running processes be changed. By default, the applicable processes 22 are specified by their process IDs. When a process group is specified 23 (see 24 .B -g 25 ), the request applies to all processes in the process group. If the 26 requested increment would raise or lower the nice value of the 27 executed utility beyond its limits, then the limit whose value was 28 exceeded is used. When a user is reniced, the request applies to all 29 processes whose saved set-user-ID matches the user ID corresponding to 30 the user. Regardless of which options are supplied or any other factor, 31 renice does not alter the nice values of any process unless the user 32 requesting such a change has appropriate privileges to do so for the 33 specified process. If the user lacks appropriate privileges to perform 34 the requested action, the utility returns an error status. 35 The saved set-user-ID of the user's process is checked instead of its 36 effective user ID when renice attempts to determine the user ID of the 37 process in order to determine whether the user has appropriate privileges. 38 .SH OPTIONS 39 .TP 40 .B \-g 41 interpret all operands as unsigned decimal integer process group IDs. 42 .TP 43 .B \-n 44 .I increment 45 specify how the nice value of the specified process or processes 46 is to be adjusted. The increment option-argument is a positive or 47 negative decimal integer used to modify the nice value of the 48 specified process or processes. positive increment values cause a 49 lower nice value. Negative increment values may require appropriate 50 privileges and cause a higher nice value. 51 .TP 52 .B \-p 53 interpret all operands as unsigned decimal integer process IDs. 54 The 55 .B \-p 56 option is the default if no options are specified. 57 .TP 58 .B \-u 59 interpret all operands as users. If a user exists with a user name 60 equal to the operand, then the user ID of that user is used in further 61 processing. Otherwise, if the operand represents an unsigned decimal 62 integer, used as the numeric user ID of the user. 63 .SH EXIT VALUES 64 On successful completion 0 is returned, a value which is >0 is 65 returned on error. 66 .SH FILES 67 .TP 68 .I /etc/passwd 69 used to map user names to user ID's. 70 .SH CONFORMING TO 71 The 72 .B renice 73 utility is IEEE Std 1003.1-2001 (POSIX.1) compatible. 74 .SH EXAMPLES 75 .TP 76 .I "renice -n 5 -p 987 32" 77 .PP 78 Adjust the nice value so that process IDs 987 and 32 would have a 79 lower nice value. 80 .TP 81 .I "renice -n -4 -g 324 76" 82 .PP 83 Adjust the nice value so that group IDs 324 and 76 would have a 84 higher nice value, if the user has the appropriate privileges to do so. 85 .TP 86 .I "renice -n 4 -u 8 sas" 87 .PP 88 Adjust the nice value so that numeric user ID 8 and user sas would 89 have a lower nice value. 90 Useful nice value increments on historical systems include 91 19 or 20 (the affected processes run only when nothing else in the 92 system attempts to run) and any negative number 93 (to make processes run faster). 94 .SH AUTHOR 95 Written by Lorenzo Cogotti. 96 .SH SEE ALSO 97 .BR nice(1)