LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-22-2007, 02:03 AM   #1
ipanema
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, 03:15 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

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

Code:
# 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
Code:
# 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 03:17 AM.
 
Old 10-22-2007, 04:21 AM   #3
ipanema
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Question

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, 05:21 AM   #4
ghostdancer
Member
 
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 ( http://procps.sourceforge.net/ ).
 
Old 10-22-2007, 03:09 PM   #5
kromberg
Member
 
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.

Keith
 
Old 10-23-2007, 12:29 AM   #6
ipanema
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, 01:01 AM   #7
ipanema
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
The top I'm using was taken from
http://sourceforge.net/projects/unixtop

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
 
  


Reply

Tags
top


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 01: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 01:45 AM
The Top 20 things that don't work in a new FC3 install. t3gah Fedora 50 09-05-2005 04:39 PM
top: number of CPUs naijaguy Linux - Newbie 4 02-11-2005 05:36 PM
top command doesn't work when I reboot??? dravya Linux - General 1 06-21-2004 02:29 PM


All times are GMT -5. The time now is 10:17 AM.

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