United States-English |
|
|
HP-UX Reference > Rrenice(1M)HP-UX 11i Version 3: February 2007 |
|
NAMErenice — alter priority of running processes DESCRIPTIONThe renice command alters the system nice value (used in the system scheduling priority) of one or more running processes specified by id .... The new system nice value is set to 20 + newoffset, and is limited to the range 0 to 39. However if the UNIX95 environment variable is set, the new system nice value is set to current nice value + newoffset. Processes with lower system nice values run at higher system priorities than processes with higher system nice values. The -l option of the ps command shows the current priority (PRI) and nice value (NI) for processes. See also nice(1). To reduce the system nice value of a process, or to set it to a value less than 20 (with a negative newoffset), a user must have appropriate privileges. Otherwise, users cannot decrease the system nice value of a process and can only increase it within the range 20 to 39, to prevent overriding any current administrative restrictions. To alter the system nice value of another user's process, a user must have appropriate privileges. Otherwise, users can only affect processes that they own. Optionsrenice recognizes the following options. If no -g, -p, or -u option is specified, the default is -p.
DIAGNOSTICSrenice reports the old and new newoffset values (system nice value - 20) of the affected processes if the operation requested completes successfully. Otherwise, an error message is displayed to indicate the reason for failure. However, if the UNIX95 environment variable is set, no reporting is done unless the command fails. EXAMPLESUse renice default values to decrease the priority of process 923. The id type defaults to -p, and newoffset defaults to 10, setting the process to a system nice value of 30. renice 923 Change the system nice value for all processes owned by user john and user 123 to 33 (newoffset=13). (Affecting other users processes requires appropriate privileges.) renice -n 13 -u john 123 Change the system nice value of all processes in process group 20 to 10. (Lowering the system nice value of a process group requires appropriate privileges.) renice -n -10 -g 20 |
Printable version | ||
|