up | Inhaltsverzeichniss | Kommentar

Manual page for VMSTAT(8)

vmstat - report virtual memory statistics


vmstat [ -cfisS ] [ interval [ count ] ]


vmstat delves into the system and normally reports certain statistics kept about process, virtual memory, disk, trap and CPU activity.

Without options, vmstat displays a one-line summary of the virtual memory activity since the system has been booted. If interval is specified, vmstat summarizes activity over the last interval seconds. If a count is given, the statistics are repeated count times.

For example, the following command displays a summary of what the system is doing every five seconds. This is a good choice of printing interval since this is how often some of the statistics are sampled in the system.

example% vmstat 5
procs     memory                       page      faults
r b w   avm  fre  re at  pi  po  fr  de  sr x0 x1 x2 x3  in   sy  cs  us  sy  id
2 0 0   918  286   0  0   0   0   0   0    0  1  0   0   0    4  12    5   3   5  91
1 0 0   846  254   0  0   0   0   0   0    0  6  0   1   0   42 153  31  7  40  54
1 0 0   840  268   0  0   0   0   0   0    0  5  0   0   0   27 103  25  8  26  66
1 0 0   620  312   0  0   0   0   0   0    0  6  0   0   0   26  76  25  6  27  67

The fields of vmstat's display are:

Report the number of processes in each of the three following states:
in run queue
blocked for resources (i/o, paging, etc.)
runnable or short sleeper (< 20 secs) but swapped
Report on usage of virtual and real memory. Virtual memory is considered active if it belongs to processes which are running or have run in the last 20 seconds.
number of active virtual Kbytes
size of the free list in Kbytes
Report information about page faults and paging activity. The information on each of the following activities is averaged each five seconds, and given in units per second.
page reclaims -- but see the -S option for how this field is modified.
number of attaches -- but see the -S option for how this field is modified.
kilobytes per second paged in
kilobytes per second paged out
kilobytes freed per second
anticipated short term memory shortfall in Kbytes
pages scanned by clock algorithm, per-second
Report number of disk operations per second (this field is system dependent). For Sun systems, four slots are available for up to four drives: ``x0'' (or ``s0'' for SCSI disks), ``x1'', ``x2'', and ``x3''.
Report trap/interrupt rate averages per second over last 5 seconds.
(non clock) device interrupts per second
system calls per second
CPU context switch rate (switches/sec)
Give a breakdown of percentage usage of CPU time.
user time for normal and low priority processes
system time
CPU idle


Report cache flushing statistics. By default, report the total number of each kind of cache flushed since boot time. The types are: user, context, region, segment, page, and partial-page.
Report on the number of forks and vforks since system startup and the number of pages of virtual memory involved in each kind of fork.
Report the number of interrupts per device. Autovectored interrupts (including the clock) are listed first.
Display the contents of the sum structure, giving the total number of several kinds of paging-related events which have occurred since boot.
Report on swapping rather than paging activity. This option will change two fields in vmstat's ``paging'' display: rather than the ``re'' and ``at'' fields, vmstat will report ``si'' (swap-ins), and ``so'' (swap-outs).




If more than one autovectored device has the same name, interrupts are counted for all like-named devices regardless of unit number. Such devices are listed with a unit number of `?'.

index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 21/April/97