Link to home
Start Free TrialLog in
Avatar of Los Angeles1
Los Angeles1

asked on

Linux CPU nice

Regarding mpstat

what is nice
Avatar of farzanj
farzanj
Flag of Canada image

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/
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.