renice
Alter the scheduling priority/niceness of running processes. tldr-pages
On Linux
Linux
renice [-gpu] -n INCREMENT ID...
-gGroup ids-pProcess ids (default)-uUser idsSeveral platforms
Alter the scheduling priority/niceness of running processes. Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process).
Increase/decrease the priority of a running process
renice -n 3 -p process_idIdentify-pProcess ids (default) toyboxIncrease/decrease the priority of all processes owned by a user
renice -n -4 -u user_idIdentify-uUser ids toyboxIncrease/decrease the priority of all processes that belong to a process group
renice -n 5 -g process_groupIdentify-gGroup ids toyboxLinux
Alter the scheduling priority/niceness of running processes. Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process).
Set the absolute priority of a running process
renice --priority 3 --pid process_idIdentifyIncrease the priority of a running process
sudo renice --relative -4 --pid process_idIdentifyDecrease the priority of all processes owned by a user
renice --relative 4 --user user_idIdentifySet the priority of all processes that belong to a process group
sudo renice -5 --pgrp process_groupIdentify