1 .\" $NetBSD: vmstat.1,v 1.19 2009/10/21 21:12:07 rmind Exp $
3 .\" Copyright (c) 2000, 2007 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 .\" POSSIBILITY OF SUCH DAMAGE.
27 .\" Copyright (c) 1986, 1993
28 .\" The Regents of the University of California. All rights reserved.
30 .\" Redistribution and use in source and binary forms, with or without
31 .\" modification, are permitted provided that the following conditions
33 .\" 1. Redistributions of source code must retain the above copyright
34 .\" notice, this list of conditions and the following disclaimer.
35 .\" 2. Redistributions in binary form must reproduce the above copyright
36 .\" notice, this list of conditions and the following disclaimer in the
37 .\" documentation and/or other materials provided with the distribution.
38 .\" 3. Neither the name of the University nor the names of its contributors
39 .\" may be used to endorse or promote products derived from this software
40 .\" without specific prior written permission.
42 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
43 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
44 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
45 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
46 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
47 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
48 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
49 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
50 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
51 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 .\" @(#)vmstat.8 8.1 (Berkeley) 6/6/93
61 .Nd report virtual memory statistics
74 reports certain kernel statistics kept about process, virtual memory,
75 disk, trap, and CPU activity.
77 The options are as follows:
78 .Bl -tag -width xxxhistname
80 Report on kernel memory caches.
83 option to see information about memory pools that back the caches.
88 The first display is for the time since a reboot and each subsequent report
89 is for the time period since the last display.
92 interval is specified, the default is 1 second.
94 Report the values of system event counters.
96 Report fork statistics.
98 Report all hash table statistics.
100 Report hash table statistics for
103 Report the values of system interrupt counters.
105 List all the hashes supported for
110 List the UVM histories being maintained by the kernel.
112 Extract values associated with the name list from the specified core
113 instead of the default
116 Report on the usage of kernel dynamic memory listed first by size of
117 allocation and then by type of usage,
118 followed by a list of the kernel memory pools and their usage.
120 Extract the name list from the specified system instead of the default
123 Display the contents of the
126 This contains various paging event and memory status counters.
128 Display the contents of the
131 This includes information about processes and virtual memory.
133 The process part shows the number of processes in the following states:
135 .Bl -tag -width abc -compact
146 The virtual memory section shows:
148 .Bl -tag -width abcdefgh -compact
152 Active virtual memory in use
154 Active real memory in use
156 Shared virtual memory
158 Active shared virtual memory
162 Active shared real memory
167 All memory values are shown in number of pages.
169 Dump all UVM histories.
171 Dump the specified UVM history.
173 Print more verbose information.
179 options prints out all counters, not just those with non-zero values.
181 Print more verbose information about kernel memory pools.
185 seconds between each display.
188 is specified, the default is infinity.
193 displays the following information:
195 .Bl -tag -width memory
197 Information about the numbers of processes in various states.
199 .Bl -tag -width abcd -compact
203 blocked for resources (i/o, paging, etc.)
206 Information about the usage of virtual and real memory.
207 Virtual pages (reported in units of 1024 bytes) are considered active if
208 they belong to processes which are running or have run in the last 20
211 .Bl -tag -width abcd -compact
215 size of the free list
218 Information about page faults and paging activity.
219 These are averaged every five seconds, and given in units per second.
221 .Bl -tag -width abcd -compact
225 page reclaims (simulating reference bits)
231 pages freed per second
233 pages scanned by clock algorithm, per-second
236 Disk transfers per second.
237 Typically paging will be split across the available drives.
238 The header of the field is the first character of the disk name and
240 If more than four disk drives are configured in the system,
242 displays only the first four drives.
245 to display specific drives, their names may be supplied on the command line.
247 Trap/interrupt rate averages per second over last 5 seconds.
249 .Bl -tag -width abcd -compact
251 device interrupts per interval (including clock interrupts)
253 system calls per interval
255 CPU context switch rate (switches/interval)
258 Breakdown of percentage usage of CPU time.
260 .Bl -tag -width abcd -compact
262 user time for normal and low priority processes
270 .Bl -tag -width eeenymeeny -compact
272 default kernel namelist
279 will print what the system is doing every five
280 seconds; this is a good choice of printing interval since this is how often
281 some of the statistics are sampled in the system.
282 Others vary every second and running the output for a while will make it
283 apparent which are recomputed every second.
293 The sections starting with
294 .Dq Interpreting system activity
296 .%T Installing and Operating 4.3BSD .
302 options are only available with the default output.
309 options are useful only if the system was compiled with support for UVM