no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tech:linux:nice [2015/12/05 12:27] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 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 '' | ||
+ | <code bash> | ||
+ | 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 '' | ||
+ | <code bash> | ||
+ | renice -n -10 -u wasadmin | ||
+ | </ | ||
+ | |||