{"id":2917,"date":"2014-03-17T23:04:39","date_gmt":"2014-03-17T15:04:39","guid":{"rendered":"http:\/\/rmohan.com\/?p=2917"},"modified":"2014-03-17T23:21:35","modified_gmt":"2014-03-17T15:21:35","slug":"sar-mpstat-vmstat","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2917","title":{"rendered":"Sar , mpstat , vmstat , iostat"},"content":{"rendered":"<p>[root@localhost optback]# sar -b 1<br \/>\nLinux 3.10.0-54.0.1.el7.x86_64 (localhost.localdomain) 17\/03\/14 _x86_64_ (1 CPU)<\/p>\n<p>23:02:44 tps rtps wtps bread\/s bwrtn\/s<br \/>\n23:02:45 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:46 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:47 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:48 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:49 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:50 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:51 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:52 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:53 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:54 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:55 0.00 0.00 0.00 0.00 0.00<br \/>\n23:02:56 1.00 0.00 1.00 0.00 16.00<br \/>\n^C<\/p>\n<p>23:02:57 0.00 0.00 0.00 0.00 0.00<br \/>\nAverage: 0.08 0.00 0.08 0.00 1.27<br \/>\n[root@localhost optback]# sar -P 0 1<br \/>\nLinux 3.10.0-54.0.1.el7.x86_64 (localhost.localdomain) 17\/03\/14 _x86_64_ (1 CPU)<\/p>\n<p>23:03:08 CPU %user %nice %system %iowait %steal %idle<br \/>\n23:03:09 0 0.00 0.00 1.98 0.00 0.00 98.02<br \/>\n23:03:10 0 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\n23:03:11 0 1.00 0.00 1.00 0.00 0.00 98.00<br \/>\n23:03:12 0 0.00 0.00 1.00 0.00 0.00 99.00<br \/>\n23:03:13 0 0.00 0.00 1.02 0.00 0.00 98.98<br \/>\n23:03:14 0 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\n23:03:15 0 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\n23:03:16 0 0.00 0.00 1.00 0.00 0.00 99.00<br \/>\n^C<\/p>\n<p>23:03:17 0 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\nAverage: 0 0.11 0.00 0.68 0.00 0.00 99.21<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost optback]# mpstat 1 5<br \/>\nLinux 3.10.0-54.0.1.el7.x86_64 (localhost.localdomain) 17\/03\/14 _x86_64_ (1 CPU)<\/p>\n<p>23:11:38 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle<br \/>\n23:11:39 all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\n23:11:40 all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\n23:11:41 all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\n23:11:42 all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\n23:11:43 all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\nAverage: all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost optback]# mpstat -P ALL 2 1<br \/>\nLinux 3.10.0-54.0.1.el7.x86_64 (localhost.localdomain) 17\/03\/14 _x86_64_ (1 CPU)<\/p>\n<p>23:12:10 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle<br \/>\n23:12:12 all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\n23:12:12 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<\/p>\n<p>Average: CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle<br \/>\nAverage: all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br \/>\nAverage: 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost optback]# iostat -x sda 1 3<br \/>\nLinux 3.10.0-54.0.1.el7.x86_64 (localhost.localdomain) 17\/03\/14 _x86_64_ (1 CPU)<\/p>\n<p>avg-cpu: %user %nice %system %iowait %steal %idle<br \/>\n0.53 0.01 0.36 0.00 0.00 99.09<\/p>\n<p>Device: rrqm\/s wrqm\/s r\/s w\/s rkB\/s wkB\/s avgrq-sz avgqu-sz await r_await w_await svctm %util<br \/>\nsda 0.02 0.03 0.37 0.24 8.24 1.78 32.91 0.00 0.94 0.50 1.62 0.55 0.03<\/p>\n<p>avg-cpu: %user %nice %system %iowait %steal %idle<br \/>\n0.00 0.00 1.00 0.00 0.00 99.00<\/p>\n<p>Device: rrqm\/s wrqm\/s r\/s w\/s rkB\/s wkB\/s avgrq-sz avgqu-sz await r_await w_await svctm %util<br \/>\nsda 0.00 0.00 1.00 0.00 8.00 0.00 16.00 0.00 1.00 1.00 0.00 1.00 0.10<\/p>\n<p>avg-cpu: %user %nice %system %iowait %steal %idle<br \/>\n0.00 0.00 0.00 0.00 0.00 100.00<\/p>\n<p>Device: rrqm\/s wrqm\/s r\/s w\/s rkB\/s wkB\/s avgrq-sz avgqu-sz await r_await w_await svctm %util<br \/>\nsda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00<\/p>\n<p>[root@localhost optback]# iostat -x sdb 1 3<br \/>\nLinux 3.10.0-54.0.1.el7.x86_64 (localhost.localdomain) 17\/03\/14 _x86_64_ (1 CPU)<\/p>\n<p>avg-cpu: %user %nice %system %iowait %steal %idle<br \/>\n0.53 0.01 0.36 0.00 0.00 99.09<\/p>\n<p>Device: rrqm\/s wrqm\/s r\/s w\/s rkB\/s wkB\/s avgrq-sz avgqu-sz await r_await w_await svctm %util<br \/>\nsdb 0.02 0.00 0.02 0.00 0.06 0.79 87.45 0.00 0.20 0.14 0.43 0.18 0.00<\/p>\n<p>avg-cpu: %user %nice %system %iowait %steal %idle<br \/>\n0.00 0.00 0.00 0.00 0.00 100.00<\/p>\n<p>Device: rrqm\/s wrqm\/s r\/s w\/s rkB\/s wkB\/s avgrq-sz avgqu-sz await r_await w_await svctm %util<br \/>\nsdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00<\/p>\n<p>avg-cpu: %user %nice %system %iowait %steal %idle<br \/>\n0.00 0.00 0.99 0.00 0.00 99.01<\/p>\n<p>Device: rrqm\/s wrqm\/s r\/s w\/s rkB\/s wkB\/s avgrq-sz avgqu-sz await r_await w_await svctm %util<br \/>\nsdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost optback]# vmstat<br \/>\nprocs &#8212;&#8212;&#8212;&#8211;memory&#8212;&#8212;&#8212;- &#8212;swap&#8211; &#8212;&#8211;io&#8212;- -system&#8211; &#8212;-cpu&#8212;-<br \/>\nr b swpd free buff cache si so bi bo in cs us sy id wa<br \/>\n3 0 0 6534488 2376 565636 0 0 8 3 47 90 1 0 99 0<br \/>\n[root@localhost optback]# vmstat 1 10<br \/>\nprocs &#8212;&#8212;&#8212;&#8211;memory&#8212;&#8212;&#8212;- &#8212;swap&#8211; &#8212;&#8211;io&#8212;- -system&#8211; &#8212;-cpu&#8212;-<br \/>\nr b swpd free buff cache si so bi bo in cs us sy id wa<br \/>\n3 0 0 6534488 2376 565640 0 0 8 3 47 90 1 0 99 0<br \/>\n0 0 0 6534464 2376 565640 0 0 0 0 44 81 0 0 100 0<br \/>\n0 0 0 6534464 2376 565640 0 0 0 0 45 81 0 1 99 0<br \/>\n0 0 0 6534464 2376 565640 0 0 0 0 47 90 0 1 99 0<br \/>\n0 0 0 6534464 2376 565640 0 0 0 0 41 75 0 0 100 0<br \/>\n1 0 0 6534464 2376 565640 0 0 0 0 152 95 10 0 90 0<br \/>\n0 0 0 6534464 2376 565640 0 0 0 0 93 142 5 1 94 0<br \/>\n0 0 0 6534464 2376 565640 0 0 0 0 50 99 0 0 100 0<br \/>\n1 0 0 6534464 2376 565640 0 0 0 0 40 74 0 1 99 0<br \/>\n0 0 0 6534464 2376 565640 0 0 0 0 39 81 0 0 100 0<br \/>\n[root@localhost optback]# vmstat 1 -S M<br \/>\nprocs &#8212;&#8212;&#8212;&#8211;memory&#8212;&#8212;&#8212;- &#8212;swap&#8211; &#8212;&#8211;io&#8212;- -system&#8211; &#8212;-cpu&#8212;-<br \/>\nr b swpd free buff cache si so bi bo in cs us sy id wa<br \/>\n3 0 0 6381 2 552 0 0 8 3 47 90 1 0 99 0<br \/>\n0 0 0 6381 2 552 0 0 0 0 43 83 0 0 100 0<br \/>\n0 0 0 6381 2 552 0 0 0 0 48 91 0 0 100 0<br \/>\n0 0 0 6381 2 552 0 0 0 0 51 106 1 0 99 0<br \/>\n0 0 0 6381 2 552 0 0 0 0 40 71 0 0 100 0<br \/>\n0 0 0 6381 2 552 0 0 0 0 42 88 0 0 100 0<br \/>\n0 0 0 6381 2 552 0 0 0 18 48 83 0 1 99 0<br \/>\n0 0 0 6381 2 552 0 0 0 0 47 90 0 0 100 0<br \/>\n0 0 0 6381 2 552 0 0 0 0 58 99 0 1 99 0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[root@localhost optback]# sar -b 1 Linux 3.10.0-54.0.1.el7.x86_64 (localhost.localdomain) 17\/03\/14 _x86_64_ (1 CPU)<\/p>\n<p>23:02:44 tps rtps wtps bread\/s bwrtn\/s 23:02:45 0.00 0.00 0.00 0.00 0.00 23:02:46 0.00 0.00 0.00 0.00 0.00 23:02:47 0.00 0.00 0.00 0.00 0.00 23:02:48 0.00 0.00 0.00 0.00 0.00 23:02:49 0.00 0.00 0.00 0.00 0.00 23:02:50 0.00 0.00 0.00 0.00 0.00 23:02:51 [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2917"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2917"}],"version-history":[{"count":5,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2917\/revisions"}],"predecessor-version":[{"id":2922,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2917\/revisions\/2922"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}