Solved

Linux CPU nice

Posted on 2012-03-22
3
329 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 77

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

808 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