Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tech:linux:nice [2015/12/05 06:27] (current)
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 ''​batadmin''​
 +<code bash>
 +renice -n 19 -u batadmin
 +</​code>​
 +Response
 +<​code>​
 +45100: old priority 0, new priority 10
 +</​code>​
 +**Note**: New processes will get the default priority.
 +
 +To increase priority mid-way to user ''​wasadmin''​
 +<code bash>
 +renice -n -10 -u wasadmin
 +</​code>​
 +
  

QR Code
QR Code tech:linux:nice (generated for current page)