{"id":192,"date":"2008-08-21T22:52:00","date_gmt":"2008-08-21T22:52:00","guid":{"rendered":"http:\/\/blog.trungson.com\/?p=192"},"modified":"2008-08-21T22:52:00","modified_gmt":"2008-08-21T22:52:00","slug":"vmstat-get-an-overview-look-at-your-server","status":"publish","type":"post","link":"http:\/\/blog.trungson.com\/?p=192","title":{"rendered":"vmstat &#8211; Get an overview look at your server"},"content":{"rendered":"<p>Get an update every one second<\/p>\n<pre>\n[root@s14 trungson]# vmstat 1\nprocs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----\n r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa\n 3  0  41200  33324   2152 1489108    0    0     4    27    0     1  5  3 91  0\n 2  0  41200  33500   2152 1489108    0    0     8     0 1838  3320  8  4 88  0\n 1  0  41200  31452   2152 1489176    0    0    32     0 1787  3078  7  4 89  0\n 2  0  41200  33260   2152 1489176    0    0     8     0 1788  2895  6  4 90  0\n 1  0  41200  33068   2164 1489164    0    0    32   768 2038  3207  7  4 87  2\n 2  0  41200  33132   2168 1489228    0    0    32     0 2082  4422 10  5 85  0\n 2  0  41200  35628   2172 1489360    0    0   148     0 1924  3658  8  5 86  1\n 0  0  41200  34596   2172 1489360    0    0    16     0 1904  3531  8  5 87  0\n 4  0  41200  28636   2172 1489428    0    0   116     0 1922  3732  9  5 85  1\n 0  0  41200  33036   2180 1489488    0    0     8   860 2127  3828  8  5 86  1\n 1  0  41200  32844   2180 1489488    0    0    20     0 1784  3108  7  5 88  0\n 0  0  41200  32780   2180 1489556    0    0    24     0 1850  3108  7  4 88  0\n 2  0  41200  32844   2180 1489692    0    0   120     0 1915  3842  9  5 85  0\n 2  0  41200  26508   2180 1489828    0    0    32   376 1976  3744  8  6 86  0\n<\/pre>\n<p>From the man page:<\/p>\n<pre>\nProcs\n  r: The number of processes waiting for run time.\n  b: The number of processes in uninterruptible sleep.\nMemory\n  swpd: the amount of virtual memory used.\n  free: the amount of idle memory.\n  buff: the amount of memory used as buffers.\n  cache: the amount of memory used as cache.\n  inact: the amount of inactive memory. (-a option)\n  active: the amount of active memory. (-a option)\nSwap\n  si: Amount of memory swapped in from disk (\/s).\n  so: Amount of memory swapped to disk (\/s).\nIO\n  bi: Blocks received from a block device (blocks\/s).\n  bo: Blocks sent to a block device (blocks\/s).\nSystem\n  in: The number of interrupts per second, including the clock.\n  cs: The number of context switches per second.\nCPU\n  These are percentages of total CPU time.\n  us: Time spent running non-kernel code. (user time, including nice time)\n  sy: Time spent running kernel code. (system time)\n  id: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time.\n  wa: Time spent waiting for IO. Prior to Linux 2.5.41, shown as zero.\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Get an update every one second [root@s14 trungson]# vmstat 1 procs &#8212;&#8212;&#8212;&#8211;memory&#8212;&#8212;&#8212;- &#8212;swap&#8211; &#8212;&#8211;io&#8212;- &#8211;system&#8211; &#8212;-cpu&#8212;- r b swpd free buff cache si so bi bo in cs us sy id wa 3 0 41200 33324 2152 1489108 0 0 4 27 0 1 5 3 91 0 2 0 41200 33500 2152 1489108 0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/192"}],"collection":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192"}],"version-history":[{"count":0,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/192\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}