Solved

Issues with top

Posted on 2008-10-23
3
330 Views
Last Modified: 2013-12-16
Hi experts,

I don't undertand why the top command shows different numbers. For example for user CPU. this is being shown for an 8 CPU (dual core machine)

So for the process it shows %CPU 27 and it also shows Cpu(s):  1.8% us, (please see below). Any ideas why two numbers and why such a huge difference.

Is the process running on one single CPU ????

----------------------------------------------------------------------------------------------------------------------
-bash-3.00$ top -p 32423
top - 11:56:02 up 35 days, 21:07,  7 users,  load average: 1.28, 1.23, 1.01
Tasks:   1 total,   0 running,   1 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.8% us,  1.5% sy,  0.0% ni, 96.6% id,  0.0% wa,  0.0% hi,  0.1% si
Mem:  65393576k total, 26331960k used, 39061616k free,   582372k buffers
Swap: 10241428k total,        0k used, 10241428k free, 14301132k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
32423 root      25   0 29.1g 9.9g  67m S   27 15.9 713:03.83 MSTRSvr

0
Comment
Question by:anshuma
3 Comments
 
LVL 12

Accepted Solution

by:
hfraser earned 300 total points
ID: 22790175
With top running, hit the number 1 key. This will change the display to show individual stats for each CPU. I suspect your just seeing an aggregate value for all 8, but the process your looking for is using 27% of 1 CPU only.
0
 
LVL 7

Assisted Solution

by:macker-
macker- earned 200 total points
ID: 22837266
hfraser is correct.  You're seeing a collapsed (aggregate) count.  2 CPU's can handle 200%, 4 CPU's can handle 400%, etc; it's being adjusted to show it normalized to 100%.
0
 

Author Closing Comment

by:anshuma
ID: 31509361
Thank you very much experts
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

685 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