2015-12-29 04:52:16 +00:00
|
|
|
# renice
|
|
|
|
|
2019-07-11 01:42:27 +01:00
|
|
|
> Alters the scheduling priority/nicenesses of one or more running processes.
|
|
|
|
> Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process).
|
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}}`
|