Vous êtes sur la page 1sur 2

ps -eo pcpu,pid,args | sort -rn |head -6

http://ss64.org/viewtopic.php?id=1308
http://www.unix.com/aix/244005-get-only-cpu-info-topas-command-terminal.html
http://www.unix.com/aix/147293-script-identify-high-cpu-usage-processes.html
https://www.ibm.com/developerworks/community/wikis/home?lang=en#/wiki/Power%20Sy
stems/page/Roll-Your-Own-Performance-Tool
http://www2.sas.com/proceedings/forum2008/386-2008.pdf
http://www.aixhealthcheck.com/blog?id=301
https://axibase.com/products/axibase-time-series-database/writing-data/nmon/?gcl
id=CjwKEAiAk7O0BRD9_Ka2w_PhwSkSJAAmKswxstD3GC7bv47NNmClx1WAIxjiQ9UBtg9gKtNNIA3Pq
BoCoVzw_wcB
http://www.unix.com/shell-programming-and-scripting/206075-aix-cpu-performance-s
cript.html
https://www.ibm.com/developerworks/community/forums/html/topic?id=1a37bf60-bcad4867-9324-124986c0aad0
https://www.ibm.com/developerworks/community/wikis/home?lang=en#/wiki/Power%20Sy
stems/page/Programming%20CPU%20Utilization
I use a command such as:
Code:
ps -eF "%C %u %n %p %a" | grep -vE "^ *0\.0|defunct|CPU|high_cpu|init"
If I remember right it won't match nmon because ps will list the CPU usage since
the process started - not the instantaneous CPU usage.
Example output:
Code:
>high_cpu
================================================================================
=======================================================
/home/unxsa/bin/high_cpu started at Wed Nov 3 07:24:34 CDT 2010 on ms.
================================================================================
=======================================================
CPU
User
Nice CPU PID
Command
-------------------------------------------------------------------------------------------------------------------------------------10.0 root
24
1147122
/usr/java5/jre/bin/java -Dhcdaemon -Dhm
c -Djava.class.path=/opt/csm/codebase:/opt/freeware

0.2
root
20
307414
/usr/bin/dsmc sched
-------------------------------------------------------------------------------------------------------------------------------------================================================================================
=======================================================
/home/unxsa/bin/high_cpu ended at Wed Nov 3 07:24:34 CDT 2010 on ms.
================================================================================
=======================================================

Vous aimerez peut-être aussi