Add define for Kirk Smith's USR Courier driver. Change default baud
[unix-history] / usr / src / usr.bin / vmstat / vmstat.8
CommitLineData
a5a04f92
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
14f78fe4 5.\" @(#)vmstat.8 6.3 (Berkeley) %G%
a5a04f92 6.\"
6a2866ad 7.TH VMSTAT 1 ""
a5a04f92
KM
8.UC 4
9.de s1
10.if n .sp
11.if t .sp .1i
12..
13.de t1
14.if n .ta 5n
15.if t .ta 1i
16..
17.SH NAME
18vmstat \- report virtual memory statistics
19.SH SYNOPSIS
20.B vmstat
21[
6a2866ad 22.B \-fsi
a5a04f92 23]
6a2866ad 24[ drives ]
a5a04f92
KM
25[ interval [ count ] ]
26.SH DESCRIPTION
27.I Vmstat
28delves into the system and normally reports certain statistics kept about
29process, virtual memory, disk, trap and cpu activity.
30If given a
31.B \-f
32argument, it instead reports on the number of
33.I forks
34and
35.I vforks
36since system startup and the number of pages of virtual memory involved in each
37kind of fork.
38If given a
39.B \-s
40argument, it instead prints the contents
41of the
42.I sum
43structure, giving the total number of several kinds of paging related
44events which have occurred since boot.
6a2866ad
KM
45If given a
46.B \-i
47argument, it instead reports on the number of
48.I interrupts
49taken by each device since system startup.
a5a04f92
KM
50.PP
51If none of these options are given,
52.I vmstat
7d8111ac
KM
53will report in the first line a summary of the virtual memory activity
54since the system has been booted.
55If
a5a04f92 56.I interval
7d8111ac 57is specified, then successive lines are summaries over the last
a5a04f92 58.I interval
7d8111ac 59seconds.
a5a04f92
KM
60``vmstat 5'' will print what the system is doing every five seconds;
61this is a good choice of printing interval since this is how often
62some of the statistics are sampled in the system; others vary every
63second, running the output for a while will make it apparent which
64are recomputed every second.
65If a
66.I count
67is given, the statistics are repeated
68.I count
69times.
70The format fields are:
71.PP
72Procs: information about numbers of processes in various states.
73.s1
74.t1
75.nf
76r in run queue
77b blocked for resources (i/o, paging, etc.)
78w runnable or short sleeper (< 20 secs) but swapped
79.fi
80.s1
81Memory: information about the usage of virtual and real memory.
82Virtual pages are considered active if they belong to processes which
83are running or have run in the last 20 seconds.
84A ``page'' here is 1024 bytes.
85.s1
86.t1
87.nf
88avm active virtual pages
89fre size of the free list
90.fi
91.s1
92Page: information about page faults and paging activity.
93These are averaged each five seconds, and given in units per second.
94.s1
95.t1
96.nf
97re page reclaims (simulating reference bits)
6a2866ad 98at pages attached (found in free list)
a5a04f92
KM
99pi pages paged in
100po pages paged out
101fr pages freed per second
102de anticipated short term memory shortfall
103sr pages scanned by clock algorithm, per-second
104.fi
105.s1
6a2866ad 106up/hp/rk/ra: Disk operations per second (this field is system dependent).
a5a04f92
KM
107Typically paging will be split across several of the available drives.
108The number under each of these is the unit number.
109.s1
110Faults: trap/interrupt rate averages per second over last 5 seconds.
111.s1
112.t1
113.nf
114in (non clock) device interrupts per second
115sy system calls per second
116cs cpu context switch rate (switches/sec)
117.fi
118.s1
119Cpu: breakdown of percentage usage of CPU time
120.s1
121.nf
122us user time for normal and low priority processes
123sy system time
124id cpu idle
e6c2ef59 125.fi
6a2866ad
KM
126.PP
127If more than 4 disk drives are configured in the system,
128.I vmstat
129displays only the first 4 drives, with priority given
130to Massbus disk drives (i.e. if both Unibus and Massbus
131drives are present and the total number of drives exceeds
1324, then some number of Unibus drives will not be displayed
133in favor of the Massbus drives). To force
134.I vmstat
135to display specific drives, their names may be supplied on
136the command line.
a5a04f92
KM
137.SH FILES
138/dev/kmem, /vmunix
139.SH SEE ALSO
6a2866ad 140.IR systat (1),
14f78fe4 141.IR iostat (1)
6a2866ad 142.PP
a5a04f92 143The sections starting with ``Interpreting system activity'' in
7d8111ac 144.IR "Installing and Operating 4.2bsd" .