2015-12-29 04:52:16 +00:00
|
|
|
# renice
|
|
|
|
|
2024-01-25 05:28:11 +00:00
|
|
|
> Alter the scheduling priority/niceness of running processes.
|
2019-07-11 01:42:27 +01:00
|
|
|
> Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process).
|
2024-01-09 21:18:23 +00:00
|
|
|
> See also: `nice`.
|
2021-10-13 07:22:50 +01:00
|
|
|
> More information: <https://manned.org/renice>.
|
2015-12-29 04:52:16 +00:00
|
|
|
|
2024-01-09 21:18:23 +00:00
|
|
|
- Increase/decrease the priority of a running [p]rocess:
|
2015-12-29 04:52:16 +00:00
|
|
|
|
2024-01-09 21:18:23 +00:00
|
|
|
`renice -n {{3}} -p {{pid}}`
|
2015-12-29 04:52:16 +00:00
|
|
|
|
2024-01-09 21:18:23 +00:00
|
|
|
- Increase/decrease the priority of all processes owned by a [u]ser:
|
2015-12-29 04:52:16 +00:00
|
|
|
|
2024-01-09 21:18:23 +00:00
|
|
|
`renice -n {{-4}} -u {{uid|user}}`
|
2015-12-29 04:52:16 +00:00
|
|
|
|
2024-01-09 21:18:23 +00:00
|
|
|
- Increase/decrease the priority of all processes that belong to a process [g]roup:
|
2015-12-29 04:52:16 +00:00
|
|
|
|
2024-01-09 21:18:23 +00:00
|
|
|
`renice -n {{5}} -g {{process_group}}`
|