??????????????????????????CPU??Memory??IO??Network????????棬???????????ù???????

???????CPU

????1???????????

????CPU???????User Time <= 70%??System Time <= 35%??User Time + System Time <= 70%??

???????????л?????CPU????????????????CPU??????????????????????????л????????????

?????????ж??У????????????????ж???<=3??????

????2????????

vmstat
$ vmstat 1
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
14  0    140 2904316 341912 3952308  0    0     0   460 1106 9593 36 64  1  0  0
17  0    140 2903492 341912 3951780  0    0     0     0 1037 9614 35 65  1  0  0
20  0    140 2902016 341912 3952000  0    0     0     0 1046 9739 35 64  1  0  0
17  0    140 2903904 341912 3951888  0    0     0    76 1044 9879 37 63  0  0  0
16  0    140 2904580 341912 3952108  0    0     0     0 1055 9808 34 65  1  0  0

?????????????

????r??run queue???????ж??е??????????Щ????????????????????CPU??????????

????b????blocked???????????????IO????

????in??interrupts????????????ж???

????cs??context switch???????????????????л??????

????us????????CPU?????

????sys???????ж????CPU?????

????id??CPU??????е????

????????????

????sy??us???????????????????л???cs?????????ó????????????????????

???????4???????r?????12???????????r??14?????????????CPU????????

?????????????????CPU???

$  while :; do ps -eo pid??ni??pri??pcpu??psr??comm | grep 'test_command'; sleep 1; done
PID  NI PRI %CPU PSR COMMAND
28577   0  23  0.0   0 test_command
28578   0  23  0.0   3 test_command
28579   0  23  0.0   2 test_command
28581   0  23  0.0   2 test_command
28582   0  23  0.0   3 test_command
28659   0  23  0.0   0 test_command
……