Difference between revisions of "Vmstat"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
m
 
(5 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
  $ [[vmstat]] 10
 
  $ [[vmstat]] 10
 
  procs -----------memory---------- ---swap-- -----io---- -system-- -----cpu------
 
  procs -----------memory---------- ---swap-- -----io---- -system-- -----cpu------
   <html><font color=blue><acronym title="number of processes in the runnable queue">r</acronym><span title="number of blocked processes">  b</span>  <span title="swapped memory">swpd</span>  <span title="free memory">free</span></font></html>  [[wikipedia:Buffer|buff]]  [[wikipedia:Cache|cache]]  <html><font color=blue><span title="swap in (from disk)">si</span>  <span title="swap out (to disk)">so</span>    <span title="I/O blocks in (from a block device)">bi</span>    <span title="I/O blocks out (to a block device)">bo</span>  <span title="interrupts">in</span></font></html>  [[wikipedia:Context_switch|cs]] <html><font color=blue><span title="user load">us</span><span title="system load"> sy</span><span title="idle time"> id</span><span title="wait time"> wa</span><span title="time 'stolen' by a virtual machine"> st</span></font></html>
+
   <abbr title="number of processes in the runnable queue">r</abbr><abbr title="number of blocked processes">  b</abbr>  <abbr title="swapped memory">swpd</abbr>  <abbr title="free memory">free</abbr>  [[wikipedia:Buffer|buff]]  [[wikipedia:Cache|cache]]  <abbr title="swap in (from disk)">si</abbr>  <abbr title="swap out (to disk)">so</abbr>    <abbr title="I/O blocks in (from a block device)">bi</abbr>    <abbr title="I/O blocks out (to a block device)">bo</abbr>  <abbr title="interrupts">in</abbr>  [[wikipedia:Context_switch|cs]] <abbr title="user load">us</abbr><abbr title="system load"> sy</abbr><abbr title="idle time"> id</abbr><abbr title="wait time"> wa</abbr><abbr title="time 'stolen' by a virtual machine"> st</abbr>
 
   1  0    304 2211340 534660 453608    0    0    2    1    1    0  2  0 97  1  0
 
   1  0    304 2211340 534660 453608    0    0    2    1    1    0  2  0 97  1  0
 
   0  0    304 2211356 534660 453608    0    0    0    5  343 1393  0  0 100  0  0
 
   0  0    304 2211356 534660 453608    0    0    0    5  343 1393  0  0 100  0  0
Line 16: Line 16:
 
* [[sar]]
 
* [[sar]]
 
* [[top]]
 
* [[top]]
* [http://man-wiki.net/index.php/8:vmstat The vmstat man page]
+
* [http://linux.die.net/man/8/vmstat The vmstat man page]
 +
 
 +
[[Category:Analysis]]
 +
[[Category:Command]]

Latest revision as of 09:58, 20 April 2014

vmstat is a command that allows you to watch what your computer is doing, e.g. how many blocks are read in a specified timeframe.

To watch what has happened in 10 second-intervalls, issue:

$ vmstat 10
procs -----------memory---------- ---swap-- -----io---- -system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 1  0    304 2211340 534660 453608    0    0     2     1    1    0  2  0 97  1  0
 0  0    304 2211356 534660 453608    0    0     0     5  343 1393  0  0 100  0  0
 0  0    304 2211388 534660 453608    0    0     0     0  321 1248  0  0 100  0  0
 0  0    304 2211380 534660 453608    0    0     0     4  361 1447  0  0 100  0  0

See also