How to interpret TOP


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to interpret TOP
# 1  
Old 03-27-2008
How to interpret TOP

Hi,


So I am new to Unix, and I need to check the performance of some apps I am running. But I don't know how to interpret the output from TOP.

Could somebody please explain the difference between the different values. And also explain how I can have a process which has a %CPU > 100?


Thanks
# 2  
Old 03-27-2008
Quote:
Originally Posted by dj_jay_smith
So I am new to Unix, and I need to check the performance of some apps I am running. But I don't know how to interpret the output from TOP.

Could somebody please explain the difference between the different values.
this should be the starter for you: man top
# 3  
Old 03-27-2008
Quote:
Originally Posted by Yogesh Sawant
this should be the starter for you: man top
And where does it say what is meant by Load, Nice, User, block, swait, etc and how a process can be over 100% in the man page?

Because I can't find it!
# 4  
Old 05-23-2009
Quote:
Originally Posted by dj_jay_smith
and where does it say what is meant by load, nice, user, block, swait, etc and how a process can be over 100% in the man page?

Because i can't find it!
+1 Smilie
# 5  
Old 05-23-2009
Quote:
Originally Posted by dj_jay_smith
And where does it say what is meant by Load, Nice, User, block, swait, etc and how a process can be over 100% in the man page?

Because I can't find it!

Sometimes the man pages aren't that great, but at least you started there! Smilie Anyway...

A process can be over 100% if it is running on a multi-core processor.

A Nice value is essentially the priority of a process. A lower number means a higher priority. man renice for an explanation of nice.

swait is the % of time that the OS is waiting for I/O to complete. A high value means there's a bottleneck somewhere and processes are waiting for attention, so to speak.

I'm not totally sure about "block" and "load" so I will defer to someone else on that one. Hope that helps a little.
# 6  
Old 05-23-2009
Oh snap, that's an old post. Just noticed that.
# 7  
Old 05-23-2009
You can't find it? Did you possibly delete the man pages from the system? Or just that one?

Code:
%CPU  --  CPU usage
          The  taskâs  share of the elapsed CPU time since the last screen update, expressed as a percentage of total CPU time.  In a true SMP
          environment, if âIrix modeâ is Off, top will operate in âSolaris modeâ where a taskâs cpu usage will be divided by the total  number
          of CPUs.  You toggle âIrix/Solarisâ modes with the âIâ interactive command.

Copied directly from the man page on 'top'. It is the second section of the man page, specificaly 2a "2. FIELDS / Columns - 2a. DESCRIPTIONS of Fields".

Just testing really quick on a CentOS 5.2 box, using top cd1 I noticed something at between 80 and 100 on cpu. So I did shift + i (capital i), and it turned Irix mode off (apparently it is on by default), and then it showed the usage of those at about 12% or so. Yeah..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Who -r interpret?

I booted into single user mode with /usr/sbin/reboot -- -s but after doing a control -d my who -r shows run-level 3 Nov 17 14:07 3 0 S I was expecting it to show run-level S why is this still in run level 3? thanks (1 Reply)
Discussion started by: goya
1 Replies

2. UNIX for Dummies Questions & Answers

Need to interpret code

hi All, i have never used sed in Unix environment, but i have one script which is using this following command: cat audit_session_rpt_MSP_20140331.lst|sed -n '/Apr 14/!p'| sed -n '/Page/!p'| sed -n '/UserName/!p' |\ egrep -v '^-|^=|^\*'|sed '/^$/d'|sed -e '1,7d'... (1 Reply)
Discussion started by: lovelysethii
1 Replies

3. Shell Programming and Scripting

don't know how to interpret this

Can anyone tell me how to interpret this: listpage="ls |more" (the spaces are there in the example) $listpage It's from my bash book and I'm not sure what it means (3 Replies)
Discussion started by: Straitsfan
3 Replies

4. UNIX for Dummies Questions & Answers

How does Awk interpret $0!~

I know $0 is the entire file's contents (at least I think that is what it is!), but what exactly is: $0!~ This was a snippet from a larger line awk '$0!~/^$/ {print $0}' This deletes blank lines, but I want to know specifically the $0!~ part... I am guessing /^$/ is regex for blank line...... (5 Replies)
Discussion started by: glev2005
5 Replies

5. Shell Programming and Scripting

Can someone interpret this -- not sure

Was wondering if someone could interpret this for me -- I'm not sure what everything means. It's a shell script from my bash book: cd () { builtin cd "$@" es=$? echo "$OLDPWD ->$PWD" return $es } what I don't quite understand is the "$@". I think, if I understand... (6 Replies)
Discussion started by: Straitsfan
6 Replies

6. AIX

Need a list of top 10 CPU using processes (also top 10 memory hogs, separately)

Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies

7. 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

8. Shell Programming and Scripting

Can't interpret variable in if statement

Can someone help me out here. I can't get this piece of code to work. i.e. $ALL_EVENTS does not get interpreted in the if brackets. The first part is the code, the second part is the execution of the code. Note: $ALL_EVENTS does equal 2, but there is no value once passed to the if statement. ... (4 Replies)
Discussion started by: jwholey
4 Replies

9. UNIX for Dummies Questions & Answers

Please interpret.

Hi guys, I have no idea on unix but suddenly, my cobol programs calls a unix script that i know nothing about. can you guys interpret these lines for me? i know its a print command but I want to actually know how many copies it prints. qprt -da -P $1 -t '6' -i '6' -l '70' $2 qprt -da... (1 Reply)
Discussion started by: supacow
1 Replies

10. Shell Programming and Scripting

How Do We Interpret This ?

ksh $ETL_XXX/bin/filename.ksh wf_workflowname . Which is used in post session command. (2 Replies)
Discussion started by: dummy_needhelp
2 Replies
Login or Register to Ask a Question