top command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers top command
# 1  
Old 05-11-2005
top command

hi guys,
i am having a dual cpu xeon machine.
i came to know that i can view the performance by giving top command.
but top command shows only the usage of one cpu in percentage
while the process are using more than 100% usage in the list .
can i know separately the usage of cpus.
can you guys suggest any help if this question means something.
# 2  
Old 05-11-2005
What is the OS thats run on your system. You can install sysstat on Linux and use sar command to view the CPU usage. Top does not seem to show CPU usage properly. It shows 49.9% for a process even when that process is using more than that
# 3  
Old 05-11-2005
doing 'man top' yields [amoung others]
Quote:
Originally Posted by man top
CPU percentage is calculated as a fraction of total avail-
able computing resources. Hence on a multiprocessor machine
a single threaded process can never consume cpu time in
excess of 1 divided by the number of processors. For exam-
ple, on a 4 processor machine, a single threaded process
will never show a cpu percentage higher than 25%.
The CPU
percentage column will always total approximately 100,
regardless of the number of processors.
# 4  
Old 05-11-2005
Thats true when the process is single threaded as it is run on one CPU. In my case, i have a multi threaded java code. However, if i use sar with some switches to see a process CPU usage, it was showing properly.
# 5  
Old 05-11-2005
right - that was the disclaimer in the 'man' pages of the top version I've got here - it might have changed in the later version of 'top'.

And how 'bout 'prstat'?
# 6  
Old 05-11-2005
This was on Redhat linux only and also on only some machines. There is some inconsistency. I am not sure if Linux has prstat.However, I did not see any such issue with top on HP-UX, topas on AIX and prstat and top on solaris. I am not sure what OS bijuhpd is using and his process is single threaded or multi-threaded..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Top command

Hi All, i am using the below command and once get the output and i need to keep the first batch only.in this case how to do this one. please help me on thistop -b -n 5 >top.txt Thanks, (3 Replies)
Discussion started by: bmk
3 Replies

2. Shell Programming and Scripting

Help with top command

Currently when i run top command i get the following columns . CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND In this how to remove '%WCPU' column ? Thanks very much in advance . (6 Replies)
Discussion started by: kpravinraj
6 Replies

3. Shell Programming and Scripting

Command to find the Memory and CPU utilization using 'top' command

Hi all, I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command. Thanks in advance. Thanks, Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies

4. AIX

Top command in AIX 4.2 (no topas, no nmon, no top)?

Is there a 'top' command equivalent in AIX 4.2 ? I already checked and I do not see the following ones anywhere: top nmon topas (1 Reply)
Discussion started by: Browser_ice
1 Replies

5. Shell Programming and Scripting

Top command

Hi , can some one please assist me in using top command im facing following after using top: # top -hv UX:sh (top): ERROR: top: syntax error at line 1: `(' unexpected # top -p UX:sh (top): ERROR: top: syntax error at line 1: `(' unexpected thanks in advance (3 Replies)
Discussion started by: NIMISH AGARWAL
3 Replies

6. Solaris

top command

Hi, How to install software package top in solaris, (4 Replies)
Discussion started by: manoj.solaris
4 Replies

7. Shell Programming and Scripting

Top command

Hey, Using one single line of command i am trying to show the CPU usage for 4 processors and then filter it out and write it to a text file. Everything seams ok except that i am not able to switch from having the top command show me all CPU processes seperate opposed to showing me the average of... (8 Replies)
Discussion started by: Georgesaa
8 Replies

8. UNIX for Dummies Questions & Answers

top command

Hey, Using one single line of command i am trying to show the CPU usage for 4 processors and then filter it out and write it to a text file. Everything seams ok except that i am not able to switch from having the top command show me all CPU processes seperate opposed to showing me the average of... (0 Replies)
Discussion started by: Georgesaa
0 Replies

9. SCO

HP-UX top command

Is there a command in SCO Unix that does the same as the top command in HPUX. The command displays the jobs using the most system resources. Thanks You (0 Replies)
Discussion started by: joestrosser
0 Replies

10. UNIX for Dummies Questions & Answers

command --> top

I understand the numbers displayed in variable "load average". My question: what are the correct/ideal numbers? Sometimes, I got less than 1. Others, above 6. Also, what HW/SW should I tune in order to have the ideal numbers? Thank you ... (1 Reply)
Discussion started by: dgromerog
1 Replies
Login or Register to Ask a Question