Operating System - HP-UX
1830247 Members
8984 Online
110000 Solutions
New Discussion

about the output of top command

 
leyearn
Regular Advisor

about the output of top command

the following is the output of top command on my computer

but i don't know what is the difference between %WCPU adn %CPU ?
System:spe169 Thu Apr 24 19:53:10 2003
Load averages: 1.90, 1.78, 1.73
124 processes: 107 sleeping, 17 running
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 1.11 0.0% 100.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0%
1 2.70 0.0% 100.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 1.90 0.0% 100.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0%

Memory: 285804K (246136K) real, 556372K (474756K) virtual, 241044K free Page# 1
/12

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 ? 20735 ewm 249 24 92464K 92404K run 20:54 100.00 99.83 ecm
1 ? 20743 ewm 249 24 92320K 92260K run 15:42 99.84 99.67 ecm
0 ? 1411 root 152 20 7968K 10452K run 20:12 0.38 0.38 prm3d
0 ? 35 root 152 20 0K 1888K run 5:49 0.36 0.36 vxfsd
0 ? 1004 root 152 20 1948K 2692K run 0:06 0.25 0.25 dmisp
1 ? 1748 root 152 20 2584K 2356K run 0:31 0.16 0.16 rep_serv
1 ? 1749 root 152 20 1812K 1752K run 0:23 0.16 0.16 agdbserv
0 ? 1750 root 152 20 2852K 1940K run 0:54 0.12 0.12 alarmgen
1 pts/tb 20773 leyearn 178 20 564K 480K run 0:00 0.11 0.11 top
1 ? 1574 root 152 20 4048K 5196K run
3 REPLIES 3
malay boy
Trusted Contributor

Re: about the output of top command

Hi,
Well normally when I look at top,I look only at Load average or Load.This should give you a clear indication how you CPU like.If the load is above 3 for 1 processor ,it mean that
1) Your server need some upgrade on CPU
or
2) There are some process which goes crazy and eat up the cpu time.

regards
mB
There are three person in my team-Me ,myself and I.
Michael Steele_2
Honored Contributor

Re: about the output of top command

%WCPU Weighted CPU (central processing unit) percentage.
%CPU Raw CPU percentage. This field is used to sort the top processes.

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90690/B2355-90690_top.html&con=/hpux/onlinedocs/B2355-90690/00/01/157-con.html&toc=/hpux/onlinedocs/B2355-90690/00/01/157-toc.html&searchterms=cpu%7ctop&queryid=20030424-200127

Use 'sar -u 5 5' or 'vmstat -n' to evaluation CPU.
Support Fatherhood - Stop Family Law
Steven E. Protter
Exalted Contributor

Re: about the output of top command

I'm attaching a background performance measurement script.

It might get you a better picture, because you can adjust the data collection period.

You can also once you learn the script, just monitor certain aspects of performance.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com