Solved

Linux CPU nice

Posted on 2012-03-22
3
326 Views
Last Modified: 2012-03-22
Regarding mpstat

what is nice
0
Comment
Question by:Los Angeles1
3 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 37754033
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
 
LVL 76

Accepted Solution

by:
arnold earned 500 total points
ID: 37754057
I.e. this is used for scheduling/priority assignment.
-20 preferred, +20 least preferred.
0
 
LVL 6

Expert Comment

by:torakeshb
ID: 37754098
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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now