Vmstat

From NovaOrdis Knowledge Base
Revision as of 23:00, 27 July 2016 by Ovidiu (talk | contribs) (→‎memory)
Jump to navigation Jump to search

Internal

Overview

Reports virtual memory and other system statistics.

Output

procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 2  0      0 778480    700 156424    0    0   122     4   29   64  0  0 98  0  1

procs

r

The number of runnable processes (running or waiting for run time).

b

The number of processes in uninterruptible sleep.

memory

swpd

The amount of virtual memory used.

free

The amount of idle memory.

buff

The amount of memory used as buffers.

cache

The amount of memory used as cache.

swap

si

Amount of memory swapped in from disk.

so

Amount of memory swapped to disk.

  IO
      bi: Blocks received from a block device (blocks/s).
      bo: Blocks sent to a block device (blocks/s).
  System
      in: The number of interrupts per second, including the clock.
      cs: The number of context switches per second.
  CPU
      These are percentages of total CPU time.
      us: Time spent running non-kernel code.  (user time, including nice time)
      sy: Time spent running kernel code.  (system time)
      id: Time spent idle.  Prior to Linux 2.5.41, this includes IO-wait time.
      wa: Time spent waiting for IO.  Prior to Linux 2.5.41, included in idle.
      st: Time stolen from a virtual machine.  Prior to Linux 2.6.11, unknown.


Continuous Readings

vmstat 1