Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

top 15 CPU usage

Status
Not open for further replies.

shoux

Technical User
Nov 9, 2000
83
MY
Hi all !

why the root id had taken lot of cpu usage and what process they are running ?

[root] >ps gu|head -n 1;ps gu|egrep -iv "CPU|kproc"|sort +2b -3 -n -r|head -n>

USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
root 774 11.8 0.0 16 16 - A Jun 30 6149:04 wait
root 1290 11.7 0.0 16 16 - A Jun 30 6093:06 wait
root 1806 11.7 0.0 16 16 - A Jun 30 6107:35 wait
root 2322 11.7 0.0 16 16 - A Jun 30 6129:20 wait
root 2064 11.4 0.0 16 16 - A Jun 30 5930:56 wait
root 1032 11.3 0.0 16 16 - A Jun 30 5889:10 wait
root 1548 11.3 0.0 16 16 - A Jun 30 5909:15 wait
root 516 11.2 0.0 16 16 - A Jun 30 5843:55 wait
it01 70242 0.7 0.0 5112 4488 pts/152 A 11:15:54 0:33 uv
it02 231146 0.3 0.0 6792 6168 pts/219 A 10:14:26 1:50 uv
it05 104942 0.3 0.0 5260 4636 pts/91 A 10:47:38 0:47 uv
it11 197682 0.3 0.0 5104 4480 pts/323 A 11:09:30 0:25 uv
it15 216682 0.2 0.0 5256 4632 pts/20 A 10:51:06 0:34 uv
it16 51540 0.2 0.0 7404 6780 pts/54 A 10:02:10 1:04 uv
it20 54944 0.2 0.0 6652 6028 pts/15 A 07:36:56 3:02 uv

Thank you



shoux
 
Normally this an AIX way to show that all your 8 processors have about 11% idle time.
It's not actually a "wait" (delay),but rather just an idle state.
The real "wait" will show in topas in a "Wait" line:

Wait 0.0 | | Forks 0 Igets 0

Long live king Moshiach !
 
Hi MoshiachNow,

Does this mean that the vmstat at this moment(Above given moment) should show an idle time of 11. Am I correct in saying that?

I believe, the CPU usage shown by vmstat is for all the processors together, so if each processor has 11% idle time and there are 8 processors, the average idle time on the system should be 11.

Correct me if I am wrong.

TIA
Kumar
 
The top 8 processes are showing you cpus. I don't really pay much attention to them - preferring vmstat to determione total load on processors. As UV starts a new process on a new processor - the load over your 8 processors should be about even. What I am most intertested in are the processes that are below the first 8. THose tell me jobs that are using resources and approximately how muchy of the resource is being used by that job. I use 'ps aux|sort -k3rn|head -15' to get roughly the report that I find most useful in Universe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top