aix cpu監控

valleygrain發表於2007-10-30

itm6對aix cpu監控是透過命令mpstat來實現的,沒有被啟用的cpu也會顯示出來,這跟傳統的檢視方式不同,所以我們查到的數量可能不一致。

比如透過以下命令:

lscfg -vp | grep Processor
lscfg -vp | grep Processor
lsconf | grep Processor
prtconf
getconf HARDWARE_BITMODE

得到結果如下:
proc0 Available 00-00 Processor
proc2 Available 00-02 Processor
proc4 Available 00-04 Processor
proc6 Available 00-06 Processor

但是用mpstat返回值如下:

# mpstat

System configuration: lcpu=8

cpu min maj mpc int cs ics rq mig lpa sysc us sy wa id pc
0 32 0 0 185 313 185 0 225309 100 955 5 1 0 94 0.54
1 0 0 0 85 4 2 0 2088 100 13 0 0 1 99 0.45
2 16 0 0 190 305 179 0 215921 100 799 5 1 0 94 0.53
3 0 0 0 85 4 2 0 2235 100 11 0 0 0 99 0.46
4 28 0 0 332 329 191 0 214462 94 863 5 1 0 94 0.54
5 0 0 0 85 5 3 0 2221 97 10 0 0 0 100 0.46
6 67 0 0 188 333 194 0 211456 94 956 6 1 0 92 0.55
7 0 0 0 85 4 2 0 1830 97 32 0 0 0 100 0.44
ALL 143 0 0 1235 1297 758 0 875522 97 3639 3 1 0 96 3.97

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9893498/viewspace-979689/,如需轉載,請註明出處,否則將追究法律責任。

相關文章