CPU Priority
Nice is used to set CPU priority.
Niceness runs from
- -20, the highest priority, lowest niceness, to
- 19, the lowest priority, highest niceness and
- Zero is the default
Yes, this is a bit counter-intuitive.
To reduce to lowest priority for user batadmin
renice -n 19 -u batadmin
Response
45100: old priority 0, new priority 10
Note: New processes will get the default priority.
To increase priority mid-way to user wasadmin
renice -n -10 -u wasadmin