Linux CPU nice

Regarding mpstat

what is nice
Los Angeles1Asked:
Who is Participating?
 
arnoldConnect With a Mentor Commented:
I.e. this is used for scheduling/priority assignment.
-20 preferred, +20 least preferred.
0
 
farzanjCommented:
From man page:
%nice
              Show the percentage of CPU utilization that occurred while  exe-
              cuting at the user level with nice priority.
       %system

Basically you can do nice or renice to change priority of your process to a lower priority in order to give other processes preference over your process.

Some more information for you.
http://www.nixtutor.com/linux/changing-priority-on-linux-processes/
0
 
torakeshbCommented:
mpstat -  %nice is the percentage of CPU utilization that occurred while executing at the user level with nice priority.  

(a) when you issue a command with "nice +7 rpm -ivh ***.rpm"  it will increment the priority of rpm installation by 7 and there by may increase the CPU utilization for the rpm command.

based on you prioritizing a process with nice command the %CPU utilization will change in mpstat.
0
All Courses

From novice to tech pro — start learning today.