2015-12-29 04:52:16 +00:00
|
|
|
# renice
|
|
|
|
|
2022-10-07 04:30:15 +01:00
|
|
|
> Alters the scheduling priority/niceness of one or more 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).
|
2021-10-13 07:22:50 +01:00
|
|
|
> More information: <https://manned.org/renice>.
|
2015-12-29 04:52:16 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Change priority of a running process:
|
2015-12-29 04:52:16 +00:00
|
|
|
|
|
|
|
`renice -n {{niceness_value}} -p {{pid}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Change priority of all processes owned by a user:
|
2015-12-29 04:52:16 +00:00
|
|
|
|
|
|
|
`renice -n {{niceness_value}} -u {{user}}`
|
|
|
|
|
2018-10-31 03:41:08 +00:00
|
|
|
- Change priority of all processes that belong to a process group:
|
2015-12-29 04:52:16 +00:00
|
|
|
|
2018-10-31 03:41:08 +00:00
|
|
|
`renice -n {{niceness_value}} --pgrp {{process_group}}`
|