Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-22-2007, 03:03 AM   #1
LQ Newbie
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
Question how does TOP work with 2 CPUs

Does TOP command collect details of process on both cpus, when there are 2 CPUs present on the machine ?

Then when it says 50% idel , does it say for two CPUs together or only one.

I did read about some options like toggling etc, but those commands are not supported in my version.

My TOP says Version 3.6.

Is there any other TOP flavors / versions i should be using to get proper results on 2 CPU machines?

Thanks In advance
Old 10-22-2007, 04:15 AM   #2
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 39
You could display it as a total or seperate for each cpu by pressing the key "1":

# top
top - 10:14:02 up 16 days, 19:51,  1 user,  load average: 1.33, 2.39, 2.27
Tasks: 188 total,   1 running, 187 sleeping,   0 stopped,   0 zombie
Cpu0  :  0.7% us,  0.3% sy,  0.0% ni, 98.7% id,  0.3% wa,  0.0% hi,  0.0% si
Cpu1  :  0.0% us,  0.0% sy,  0.0% ni, 100.0% id,  0.0% wa,  0.0% hi,  0.0% si
Cpu2  :  0.0% us,  0.0% sy,  0.0% ni, 100.0% id,  0.0% wa,  0.0% hi,  0.0% si
Cpu3  :  2.3% us,  0.7% sy,  0.0% ni, 96.4% id,  0.3% wa,  0.3% hi,  0.0% si
Mem:   6228476k total,  3032896k used,  3195580k free,    39864k buffers
Swap: 12582904k total,        0k used, 12582904k free,   344936k cached
# top -v
top: procps version 3.2.3
usage:  top -hv | -bcisS -d delay -n iterations [-u user | -U user] -p pid [,pid ...]

Last edited by brianmcgee; 10-22-2007 at 04:17 AM.
Old 10-22-2007, 05:21 AM   #3
LQ Newbie
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0

That option is not available (pressing 1) on my version of Top it 3.6.

Any other ideas? or is it that 3.6 version of Top shows only total process not cpu wise?

can anyone confirm?
Old 10-22-2007, 06:21 AM   #4
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Can you confirm the version is 3.6? Because it is rather weird you have version 3.6, when latest version is 3.2.7 ( ).
Old 10-22-2007, 04:09 PM   #5
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
Type in 'o' and then 'J'. What will show what cpu the program is current executing on.

Old 10-23-2007, 01:29 AM   #6
LQ Newbie
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Yes I my top says its 3.6 only.

By the way I'm using Solaris 9.

bash-2.05$ top -v
top: version 3.6

About the options J and o. option 'o' asking for sorting order and 'J' is not available.
Old 10-23-2007, 02:01 AM   #7
LQ Newbie
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
The top I'm using was taken from

their FAQ says
. Does top really support multi-processor systems?

On platforms that support multiple processors, top is able to detect
and correctly summarize the information about those processors. What
top does not do is break down the cpu states summary (the third line
of the display) by cpu. Instead it collects the cpu state information
from all processors and combines them in to a single line. Some
vendors include a modified version of top that presents this
information for each cpu. Top 3.7 may have this functionality but it
is not present in the standard top 3.6 release.

So the search ends here



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
top in batch mode doesnt work alebo Linux - General 4 07-27-2007 02:17 AM
How to make a Multimedia Projector to work on a Panel Top PC on Ubuntu 6.06 ?? jpvdingle Linux - Hardware 0 06-15-2006 02:45 AM
The Top 20 things that don't work in a new FC3 install. t3gah Fedora 50 09-05-2005 05:39 PM
top: number of CPUs naijaguy Linux - Newbie 4 02-11-2005 06:36 PM
top command doesn't work when I reboot??? dravya Linux - General 1 06-21-2004 03:29 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration