$ sarLinux 04/17/16 _x86\_64_ (24 CPU)00:00:01 CPU %user %nice %system %iowait %steal %idle00:10:02 all 1.260.000.550.000.0098.1900:20:01 all 1.580.001.040.000.0097.3800:30:01 all 1.230.000.560.000.0098.2100:40:01 all 1.590.001.010.000.0097.4000:50:01 all 1.350.000.590.000.0098.0601:00:01 all 1.630.001.100.000.0097.2701:10:01 all 1.220.000.540.000.0098.2401:20:01 all 1.680.001.060.000.0097.2501:30:01 all 1.230.000.540.000.0098.23
$ sar 11018:54:58%usr %sys %wio %idle18:54:5918307918:55:00461404018:55:01381304918:55:0217407918:55:0311408518:55:0412508318:55:0520407618:55:0622307518:55:0721407518:55:08174079
输出参数:
%user:用户(一般的应用软件运作模式)CPU资源
%system:系统(内核运作)占用CPU资源
%iowait:I/O等待率。
进程详细
$ ps auxwtest 15510.20.164524776? S 19:250:00 Test.pl CTP00004.PRS00034 1300test 15532.60.41819616424? S 19:250:00/Test.pl 00001.PRS00034test 15552.60.41816816396? S 19:250:00/Test.pl 00002.PRS00034test 15572.80.41813216432? S 19:250:00/Test.pl 00004.PRS00034test 16060.00.050060916? Sl 19:250:00/bin/PingTest -f CTP00004test 16122.50.41815616452? S 19:250:00/Test.pl 00014.PRS00034test 16292.10.41841616696? S 19:250:00/Test.pl 00015.PRS00034test 22532.70.31286811160? R 19:250:00-w mrtg MRTG\_00027.cfg logtest 22543.60.31286411184? S 19:250:00-w mrtg MRTG\_00028.cfg logtest 22612.40.21264011004? S 19:250:00-w mrtg MRTG\_00030.cfg log
$ vmstat kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr s2 s2 s2 s2 in sy cs us sy id0004541144817973032140147013413300-0-0-0-02753313459498416381