Solved

Issues with top

Posted on 2008-10-23
3
324 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VMWare 6 crashing 14 98
Problem to start Neon 20 87
BASH script to modify crontab? 3 50
i can not do linux commands in cygwin windows 10 6 62
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…
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 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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

920 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

16 Experts available now in Live!

Get 1:1 Help Now