2000-08-25 08:48:56 +04:00
|
|
|
.\" $NetBSD: systat.1,v 1.21 2000/08/25 04:48:56 hubertf Exp $
|
1995-01-20 11:51:48 +03:00
|
|
|
.\"
|
1995-01-20 11:30:50 +03:00
|
|
|
.\" Copyright (c) 1985, 1990, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" @(#)systat.1 8.2 (Berkeley) 12/30/93
|
|
|
|
.\"
|
|
|
|
.Dd December 30, 1993
|
|
|
|
.Dt SYSTAT 1
|
1999-03-22 21:16:34 +03:00
|
|
|
.Os
|
1995-01-20 11:30:50 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm systat
|
|
|
|
.Nd display system statistics on a crt
|
|
|
|
.Sh SYNOPSIS
|
1997-10-20 03:36:20 +04:00
|
|
|
.Nm
|
2000-01-07 07:47:23 +03:00
|
|
|
.Op Fl n
|
1996-05-11 03:16:30 +04:00
|
|
|
.Op Fl M Ar core
|
|
|
|
.Op Fl N Ar system
|
2000-08-25 08:48:56 +04:00
|
|
|
.Op Fl t Ar turns
|
1996-05-11 03:16:30 +04:00
|
|
|
.Op Fl w Ar wait
|
|
|
|
.Op Ar display
|
1995-01-20 11:30:50 +03:00
|
|
|
.Op Ar refresh-interval
|
|
|
|
.Sh DESCRIPTION
|
1997-10-20 03:36:20 +04:00
|
|
|
.Nm
|
1995-01-20 11:30:50 +03:00
|
|
|
displays various system statistics in a screen oriented fashion
|
|
|
|
using the curses screen display library,
|
|
|
|
.Xr curses 3 .
|
|
|
|
.Pp
|
|
|
|
While
|
1997-10-20 03:36:20 +04:00
|
|
|
.Nm
|
1995-01-20 11:30:50 +03:00
|
|
|
is running the screen is usually divided into two windows (an exception
|
|
|
|
is the vmstat display which uses the entire screen). The
|
|
|
|
upper window depicts the current system load average. The
|
|
|
|
information displayed in the lower window may vary, depending on
|
|
|
|
user commands. The last line on the screen is reserved for user
|
|
|
|
input and error messages.
|
|
|
|
.Pp
|
|
|
|
By default
|
1997-10-20 03:36:20 +04:00
|
|
|
.Nm
|
1995-01-20 11:30:50 +03:00
|
|
|
displays the processes getting the largest percentage of the processor
|
1999-02-22 00:55:10 +03:00
|
|
|
in the lower window. Other displays show more detailed process information,
|
|
|
|
swap space usage, disk
|
1995-01-20 11:30:50 +03:00
|
|
|
.Tn I/O
|
|
|
|
statistics (a la
|
1995-09-27 22:46:12 +03:00
|
|
|
.Xr iostat 8 ) ,
|
1995-01-20 11:30:50 +03:00
|
|
|
virtual memory statistics (a la
|
1995-09-27 22:20:24 +03:00
|
|
|
.Xr vmstat 8 ) ,
|
1995-01-20 11:30:50 +03:00
|
|
|
network ``mbuf'' utilization, and network connections (a la
|
|
|
|
.Xr netstat 1 ) .
|
|
|
|
.Pp
|
|
|
|
Input is interpreted at two different levels.
|
|
|
|
A ``global'' command interpreter processes all keyboard input.
|
|
|
|
If this command interpreter fails to recognize a command, the
|
|
|
|
input line is passed to a per-display command interpreter. This
|
|
|
|
allows each display to have certain display-specific commands.
|
|
|
|
.Pp
|
|
|
|
Command line options:
|
|
|
|
.Bl -tag -width "refresh_interval"
|
1996-05-11 03:16:30 +04:00
|
|
|
.It Fl M Ar core
|
|
|
|
Extract values associated with the name list from
|
|
|
|
.Ar core
|
|
|
|
instead of the default
|
|
|
|
.Pa /dev/mem .
|
|
|
|
.It Fl N Ar system
|
|
|
|
Extracr the name list from
|
|
|
|
.Ar system
|
|
|
|
instead of the default
|
|
|
|
.Pa /netbsd .
|
2000-01-07 07:47:23 +03:00
|
|
|
.It Fl n
|
|
|
|
Do not resolve IP addresses into string hostnames
|
|
|
|
.Pq FQDNs
|
|
|
|
on
|
|
|
|
.Ic netstat .
|
|
|
|
It has the same effect as
|
|
|
|
.Ic numbers
|
|
|
|
subcommand in
|
|
|
|
.Ic netstat .
|
|
|
|
.It Fl w Ar wait
|
|
|
|
See
|
|
|
|
.Ar refresh-interval .
|
2000-08-25 08:48:56 +04:00
|
|
|
.It Fl t Ar turns
|
|
|
|
How many refreshs to show each screen in 'all' display mode.
|
1996-05-11 03:16:30 +04:00
|
|
|
.It Ar display
|
1995-01-20 11:30:50 +03:00
|
|
|
The
|
|
|
|
.Ar display
|
1996-05-11 03:16:30 +04:00
|
|
|
argument expects to be one of:
|
2000-08-25 08:48:56 +04:00
|
|
|
.Ic all ,
|
1999-11-15 09:16:56 +03:00
|
|
|
.Ic bufcache ,
|
1999-08-02 21:27:27 +04:00
|
|
|
.Ic inet.icmp ,
|
1999-11-15 09:16:56 +03:00
|
|
|
.Ic inet.ip ,
|
1999-08-02 21:27:27 +04:00
|
|
|
.Ic inet.tcp ,
|
1999-11-15 09:16:56 +03:00
|
|
|
.Ic inet.tcpsyn ,
|
2000-01-09 02:12:36 +03:00
|
|
|
.Ic inet6.ip6 ,
|
|
|
|
.Ic ipsec ,
|
1999-11-15 09:16:56 +03:00
|
|
|
.Ic iostat ,
|
|
|
|
.Ic mbufs ,
|
|
|
|
.Ic netstat ,
|
|
|
|
.Ic pigs ,
|
|
|
|
.Ic ps ,
|
|
|
|
.Ic swap
|
1995-01-20 11:30:50 +03:00
|
|
|
or
|
1999-11-15 09:16:56 +03:00
|
|
|
.Ic vmstat .
|
1996-05-11 03:16:30 +04:00
|
|
|
These displays can also be requested interactively and are described in
|
1995-01-20 11:30:50 +03:00
|
|
|
full detail below.
|
|
|
|
.It Ar refresh-interval
|
|
|
|
The
|
1996-05-11 03:16:30 +04:00
|
|
|
.Ar refresh-interval
|
|
|
|
specifies the screen refresh time interval in seconds. This is provided
|
|
|
|
for backwards compatibility, and overrides the
|
|
|
|
.Ar refresh-interval
|
|
|
|
specified with the
|
|
|
|
.Fl w
|
|
|
|
flag.
|
1995-01-20 11:30:50 +03:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Certain characters cause immediate action by
|
1997-10-20 03:36:20 +04:00
|
|
|
.Nm "" .
|
1995-01-20 11:30:50 +03:00
|
|
|
These are
|
|
|
|
.Bl -tag -width Fl
|
|
|
|
.It Ic \&^L
|
|
|
|
Refresh the screen.
|
|
|
|
.It Ic \&^G
|
|
|
|
Print the name of the current ``display'' being shown in
|
|
|
|
the lower window and the refresh interval.
|
|
|
|
.It Ic \&^Z
|
|
|
|
Stop
|
1997-10-20 03:36:20 +04:00
|
|
|
.Nm "" .
|
1999-11-15 09:16:56 +03:00
|
|
|
.It Ic ? , Ic h
|
|
|
|
Print the names of the available displays on the command line.
|
1995-01-20 11:30:50 +03:00
|
|
|
.It Ic \&:
|
|
|
|
Move the cursor to the command line and interpret the input
|
|
|
|
line typed as a command. While entering a command the
|
|
|
|
current character erase, word erase, and line kill characters
|
|
|
|
may be used.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The following commands are interpreted by the ``global''
|
|
|
|
command interpreter.
|
|
|
|
.Bl -tag -width Fl
|
2000-01-09 02:12:36 +03:00
|
|
|
.It Ic help Ar key
|
1995-01-20 11:30:50 +03:00
|
|
|
Print the names of the available displays on the command line.
|
2000-01-09 02:12:36 +03:00
|
|
|
It will print long names as
|
|
|
|
.Dq Ic inet.* .
|
|
|
|
To print items under
|
|
|
|
.Dq Ic inet ,
|
|
|
|
give
|
|
|
|
.Ic inet
|
|
|
|
as
|
|
|
|
.Ar key .
|
1995-01-20 11:30:50 +03:00
|
|
|
.It Ic load
|
|
|
|
Print the load average over the past 1, 5, and 15 minutes
|
|
|
|
on the command line.
|
|
|
|
.It Ic stop
|
|
|
|
Stop refreshing the screen.
|
|
|
|
.It Xo
|
|
|
|
.Op Ic start
|
|
|
|
.Op Ar number
|
|
|
|
.Xc
|
|
|
|
Start (continue) refreshing the screen. If a second, numeric,
|
|
|
|
argument is provided it is interpreted as a refresh interval
|
|
|
|
(in seconds).
|
|
|
|
Supplying only a number will set the refresh interval to this
|
|
|
|
value.
|
|
|
|
.It Ic quit
|
|
|
|
Exit
|
1997-10-20 03:36:20 +04:00
|
|
|
.Nm "" .
|
1995-01-20 11:30:50 +03:00
|
|
|
(This may be abbreviated to
|
|
|
|
.Ic q . )
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The available displays are:
|
|
|
|
.Bl -tag -width Ic
|
2000-08-25 08:48:56 +04:00
|
|
|
.It Ic all
|
|
|
|
Cycle through all displays automatically. At each display, wait some
|
|
|
|
refresh-turns, then switch to the next display.
|
|
|
|
Duration of one refresh-turn is adjustable with the
|
|
|
|
.Fl w
|
|
|
|
option, number of refresh-turns can be changed with the
|
|
|
|
.Fl t
|
|
|
|
option.
|
1999-11-15 09:16:56 +03:00
|
|
|
.It Ic bufcache
|
|
|
|
Display, in the lower window, statistics about the file system buffers.
|
|
|
|
Statistics for each filesytem that has active buffers include the number
|
|
|
|
of buffers for that file system, the number of active kilobytes in those
|
|
|
|
buffers and the total size of the buffers for that filesystem.
|
1999-08-02 21:27:27 +04:00
|
|
|
.It Ic inet.icmp
|
1999-05-31 00:26:20 +04:00
|
|
|
Display ICMP statistics.
|
1999-08-02 21:27:27 +04:00
|
|
|
.It Ic inet.ip
|
2000-01-09 02:12:36 +03:00
|
|
|
Display IPv4 and UDP statistics.
|
1999-08-02 21:27:27 +04:00
|
|
|
.It Ic inet.tcp
|
1999-05-31 00:26:20 +04:00
|
|
|
Display TCP statistics.
|
1999-08-02 21:27:27 +04:00
|
|
|
.It Ic inet.tcpsyn
|
1999-05-31 00:26:20 +04:00
|
|
|
Display statistics about the
|
|
|
|
.Tn TCP
|
|
|
|
``syncache''.
|
2000-01-09 02:12:36 +03:00
|
|
|
.It Ic inet6.ip6
|
|
|
|
Display IPv6 statistics.
|
|
|
|
.It Ic ipsec
|
|
|
|
Display IPsec statistics for both IPv4 and v6.
|
1995-01-20 11:30:50 +03:00
|
|
|
.It Ic iostat
|
|
|
|
Display, in the lower window, statistics about processor use
|
|
|
|
and disk throughput. Statistics on processor use appear as
|
|
|
|
bar graphs of the amount of time executing in user mode (``user''),
|
|
|
|
in user mode running low priority processes (``nice''), in
|
|
|
|
system mode (``system''), and idle (``idle''). Statistics
|
|
|
|
on disk throughput show, for each drive, kilobytes of data transferred,
|
1996-05-11 03:16:30 +04:00
|
|
|
number of disk transactions performed, and time spent in disk accesses
|
1995-01-20 11:30:50 +03:00
|
|
|
(in milliseconds). This information may be displayed as
|
|
|
|
bar graphs or as rows of numbers which scroll downward. Bar
|
|
|
|
graphs are shown by default;
|
|
|
|
.Pp
|
|
|
|
The following commands are specific to the
|
|
|
|
.Ic iostat
|
|
|
|
display; the minimum unambiguous prefix may be supplied.
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Fl -compact
|
|
|
|
.It Cm numbers
|
|
|
|
Show the disk
|
|
|
|
.Tn I/O
|
|
|
|
statistics in numeric form. Values are
|
|
|
|
displayed in numeric columns which scroll downward.
|
|
|
|
.It Cm bars
|
|
|
|
Show the disk
|
|
|
|
.Tn I/O
|
|
|
|
statistics in bar graph form (default).
|
1996-05-11 03:16:30 +04:00
|
|
|
.It Cm secs
|
|
|
|
Toggle the display of time in disk activity (the default is to
|
|
|
|
not display time).
|
1995-01-20 11:30:50 +03:00
|
|
|
.El
|
1999-11-15 09:16:56 +03:00
|
|
|
.It Ic mbufs
|
|
|
|
Display, in the lower window, the number of mbufs allocated
|
|
|
|
for particular uses, i.e. data, socket structures, etc.
|
|
|
|
.It Ic netstat
|
|
|
|
Display, in the lower window, network connections. By default,
|
|
|
|
network servers awaiting requests are not displayed. Each address
|
|
|
|
is displayed in the format ``host.port'', with each shown symbolically,
|
|
|
|
when possible. It is possible to have addresses displayed numerically,
|
|
|
|
limit the display to a set of ports, hosts, and/or protocols
|
|
|
|
(the minimum unambiguous prefix may be supplied):
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Ar -compact
|
|
|
|
.It Cm all
|
|
|
|
Toggle the displaying of server processes awaiting requests (this
|
|
|
|
is the equivalent of the
|
|
|
|
.Fl a
|
|
|
|
flag to
|
|
|
|
.Ar netstat 1 ) .
|
|
|
|
.It Cm numbers
|
|
|
|
Display network addresses numerically.
|
|
|
|
.It Cm names
|
|
|
|
Display network addresses symbolically.
|
|
|
|
.It Ar protocol
|
|
|
|
Display only network connections using the indicated protocol
|
|
|
|
(currently either ``tcp'' or ``udp'').
|
|
|
|
.It Cm ignore Op Ar items
|
|
|
|
Do not display information about connections associated with
|
|
|
|
the specified hosts or ports. Hosts and ports may be specified
|
|
|
|
by name (``vangogh'', ``ftp''), or numerically. Host addresses
|
|
|
|
use the Internet dot notation (``128.32.0.9''). Multiple items
|
|
|
|
may be specified with a single command by separating them with
|
|
|
|
spaces.
|
|
|
|
.It Cm display Op Ar items
|
|
|
|
Display information about the connections associated with the
|
|
|
|
specified hosts or ports. As for
|
|
|
|
.Ar ignore ,
|
|
|
|
.Op Ar items
|
|
|
|
may be names or numbers.
|
|
|
|
.It Cm show Op Ar ports\&|hosts
|
|
|
|
Show, on the command line, the currently selected protocols,
|
|
|
|
hosts, and ports. Hosts and ports which are being ignored
|
|
|
|
are prefixed with a `!'. If
|
|
|
|
.Ar ports
|
|
|
|
or
|
|
|
|
.Ar hosts
|
|
|
|
is supplied as an argument to
|
|
|
|
.Cm show ,
|
|
|
|
then only the requested information will be displayed.
|
|
|
|
.It Cm reset
|
|
|
|
Reset the port, host, and protocol matching mechanisms to the default
|
|
|
|
(any protocol, port, or host).
|
|
|
|
.El
|
|
|
|
.It Ic pigs
|
|
|
|
Display, in the lower window, those processes resident in main
|
|
|
|
memory and getting the
|
|
|
|
largest portion of the processor (the default display).
|
|
|
|
When less than 100% of the
|
|
|
|
processor is scheduled to user processes, the remaining time
|
|
|
|
is accounted to the ``idle'' process.
|
|
|
|
.It Ic ps
|
|
|
|
Display, in the lower window, the same information provided
|
|
|
|
by the command
|
|
|
|
.Xr ps 1
|
|
|
|
with the flags
|
|
|
|
.Fl aux .
|
1999-12-22 17:46:14 +03:00
|
|
|
.Pp
|
|
|
|
The following command is specific to the
|
|
|
|
.Ic ps
|
|
|
|
display; the minimum unambiguous prefix may be supplied.
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Fl -compact
|
|
|
|
.It Cm user Ar name
|
|
|
|
Limit the list of processes displayed to those owned by user
|
|
|
|
.Ar name .
|
|
|
|
If
|
|
|
|
.Ar name
|
|
|
|
is specified as `+', processes owned by any user are displayed (default).
|
|
|
|
.El
|
1995-01-20 11:30:50 +03:00
|
|
|
.It Ic swap
|
|
|
|
Show information about swap space usage on all the
|
1999-01-28 06:28:53 +03:00
|
|
|
swap areas configured with
|
|
|
|
.Xr swapctl 8 .
|
1995-01-20 11:30:50 +03:00
|
|
|
The first column is the device name of the partition.
|
|
|
|
The next column is the total space available in the partition.
|
|
|
|
The
|
|
|
|
.Ar Used
|
|
|
|
column indicates the total blocks used so far;
|
|
|
|
the graph shows the percentage of space in use on each partition.
|
|
|
|
If there are more than one swap partition in use,
|
|
|
|
a total line is also shown.
|
|
|
|
Areas known to the kernel, but not in use are shown as not available.
|
|
|
|
.It Ic vmstat
|
|
|
|
Take over the entire display and show a (rather crowded) compendium
|
|
|
|
of statistics related to virtual memory usage, process scheduling,
|
|
|
|
device interrupts, system name translation cacheing, disk
|
|
|
|
.Tn I/O
|
|
|
|
etc.
|
|
|
|
.Pp
|
|
|
|
The upper left quadrant of the screen shows the number
|
|
|
|
of users logged in and the load average over the last one, five,
|
|
|
|
and fifteen minute intervals.
|
|
|
|
Below this line are statistics on memory utilization.
|
|
|
|
The first row of the table reports memory usage only among
|
|
|
|
active processes, that is processes that have run in the previous
|
|
|
|
twenty seconds.
|
|
|
|
The second row reports on memory usage of all processes.
|
|
|
|
The first column reports on the number of physical pages
|
|
|
|
claimed by processes.
|
|
|
|
The second column reports the number of physical pages that
|
|
|
|
are devoted to read only text pages.
|
|
|
|
The third and fourth columns report the same two figures for
|
|
|
|
virtual pages, that is the number of pages that would be
|
|
|
|
needed if all processes had all of their pages.
|
|
|
|
Finally the last column shows the number of physical pages
|
|
|
|
on the free list.
|
|
|
|
.Pp
|
1997-07-25 05:15:09 +04:00
|
|
|
Below the memory display is a list of the
|
1995-01-20 11:30:50 +03:00
|
|
|
average number of processes (over the last refresh interval)
|
|
|
|
that are runnable (`r'), in page wait (`p'),
|
|
|
|
in disk wait other than paging (`d'),
|
|
|
|
sleeping (`s'), and swapped out but desiring to run (`w').
|
|
|
|
Below the queue length listing is a numerical listing and
|
|
|
|
a bar graph showing the amount of
|
|
|
|
system (shown as `='), user (shown as `>'),
|
|
|
|
nice (shown as `-'), and idle time (shown as ` ').
|
|
|
|
.Pp
|
1997-07-25 05:59:42 +04:00
|
|
|
Next to the process statistics is a column that
|
|
|
|
lists the average number of context switches (`Csw'),
|
|
|
|
traps (`Trp'; includes page faults), system calls (`Sys'), interrupts (`Int'),
|
|
|
|
network software interrupts (`Sof'),
|
|
|
|
page faults (`Flt').
|
|
|
|
.Pp
|
1997-07-25 05:15:09 +04:00
|
|
|
Below the process display are statistics on name translations.
|
1995-01-20 11:30:50 +03:00
|
|
|
It lists the number of names translated in the previous interval,
|
|
|
|
the number and percentage of the translations that were
|
|
|
|
handled by the system wide name translation cache, and
|
|
|
|
the number and percentage of the translations that were
|
|
|
|
handled by the per process name translation cache.
|
|
|
|
.Pp
|
1997-07-25 05:15:09 +04:00
|
|
|
At the bottom left is the disk usage display.
|
|
|
|
It reports the number of seeks, transfers, number
|
|
|
|
of kilobyte blocks transferred per second averaged over the
|
|
|
|
refresh period of the display (by default, five seconds), and
|
|
|
|
the time spent in disk accesses.
|
|
|
|
Note that the system only keeps statistics on at most four disks.
|
|
|
|
.Pp
|
1995-01-20 11:30:50 +03:00
|
|
|
Under the date in the upper right hand quadrant are statistics
|
|
|
|
on paging and swapping activity.
|
|
|
|
The first two columns report the average number of pages
|
|
|
|
brought in and out per second over the last refresh interval
|
|
|
|
due to page faults and the paging daemon.
|
|
|
|
The third and fourth columns report the average number of pages
|
|
|
|
brought in and out per second over the last refresh interval
|
|
|
|
due to swap requests initiated by the scheduler.
|
|
|
|
The first row of the display shows the average
|
|
|
|
number of disk transfers per second over the last refresh interval;
|
|
|
|
the second row of the display shows the average
|
|
|
|
number of pages transferred per second over the last refresh interval.
|
|
|
|
.Pp
|
1997-07-25 05:59:42 +04:00
|
|
|
Below the paging statistics is another columns of paging data.
|
|
|
|
From top to bottom, these represent average numbers of copy on write faults
|
|
|
|
(`cow'), object cache lookups (`objlk'), object cache hits (`objht'),
|
|
|
|
pages zero filled on demand (`zfodw'), number zfod's created (`nzfod'),
|
|
|
|
percentage of zfod's used (`%zfod'), number of kernel pages (`kern'),
|
|
|
|
number of wired pages (`wire'), number of active pages (`act'), number
|
|
|
|
of inactive pages (`inact'), number of free pages (`free'), pages freed
|
|
|
|
by daemon (`daefr'), pages freed by exiting processes (`prcfr'), number
|
|
|
|
of pages reactived from freelist (`react'), scans in page out daemon
|
|
|
|
(`scan'), revolutions of the hand (`hdrev'), and intransit blocking page
|
|
|
|
faults (`intrn'), per second over the refresh period.
|
|
|
|
Note that the `%zfod' percentage is usually less than 100%,
|
1995-01-20 11:30:50 +03:00
|
|
|
however it may exceed 100% if a large number of requests
|
|
|
|
are actually used long after they were set up during a
|
|
|
|
period when no new pages are being set up.
|
|
|
|
Thus this figure is most interesting when observed over
|
|
|
|
a long time period, such as from boot time
|
|
|
|
(see below on getting such a display).
|
|
|
|
.Pp
|
|
|
|
Running down the right hand side of the display is a breakdown
|
|
|
|
of the interrupts being handled by the system.
|
|
|
|
At the top of the list is the total interrupts per second
|
|
|
|
over the time interval.
|
|
|
|
The rest of the column breaks down the total on a device
|
|
|
|
by device basis.
|
|
|
|
Only devices that have interrupted at least once since boot time are shown.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Commands to switch between displays may be abbreviated to the
|
|
|
|
minimum unambiguous prefix; for example, ``io'' for ``iostat''.
|
|
|
|
Certain information may be discarded when the screen size is
|
|
|
|
insufficient for display. For example, on a machine with 10
|
|
|
|
drives the
|
|
|
|
.Ic iostat
|
|
|
|
bar graph displays only 3 drives on a 24 line terminal. When
|
|
|
|
a bar graph would overflow the allotted screen space it is
|
|
|
|
truncated and the actual value is printed ``over top'' of the bar.
|
|
|
|
.Pp
|
|
|
|
The following commands are common to each display which shows
|
|
|
|
information about disk drives. These commands are used to
|
|
|
|
select a set of drives to report on, should your system have
|
|
|
|
more drives configured than can normally be displayed on the
|
|
|
|
screen.
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Tx -compact
|
|
|
|
.It Cm ignore Op Ar drives
|
|
|
|
Do not display information about the drives indicated. Multiple
|
|
|
|
drives may be specified, separated by spaces.
|
|
|
|
.It Cm display Op Ar drives
|
|
|
|
Display information about the drives indicated. Multiple drives
|
|
|
|
may be specified, separated by spaces.
|
|
|
|
.El
|
1999-05-31 00:26:20 +04:00
|
|
|
.Pp
|
2000-07-05 15:04:51 +04:00
|
|
|
The following commands are specific to the
|
|
|
|
.Ic inet.* ,
|
|
|
|
.Ic inet6.* ,
|
|
|
|
.Ic ipsec
|
|
|
|
and
|
|
|
|
.Ic vmstat
|
|
|
|
displays; the minimum unambiguous prefix may be supplied.
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Ar -compact
|
|
|
|
.It Cm boot
|
|
|
|
Display cumulative statistics since the system was booted.
|
|
|
|
.It Cm run
|
|
|
|
Display statistics as a running total from the point this
|
|
|
|
command is given.
|
|
|
|
.It Cm time
|
|
|
|
Display statistics averaged over the refresh interval (the default).
|
|
|
|
.It Cm zero
|
|
|
|
Reset running statistics to zero.
|
|
|
|
.El
|
|
|
|
.Pp
|
1995-01-20 11:30:50 +03:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /etc/networks -compact
|
1995-04-27 22:22:55 +04:00
|
|
|
.It Pa /netbsd
|
1995-01-20 11:30:50 +03:00
|
|
|
For the namelist.
|
|
|
|
.It Pa /dev/kmem
|
|
|
|
For information in main memory.
|
|
|
|
.It Pa /dev/drum
|
|
|
|
For information about swapped out processes.
|
|
|
|
.It Pa /etc/hosts
|
|
|
|
For host names.
|
|
|
|
.It Pa /etc/networks
|
|
|
|
For network names.
|
|
|
|
.It Pa /etc/services
|
|
|
|
For port names.
|
|
|
|
.El
|
1997-07-25 05:59:42 +04:00
|
|
|
.Sh NOTES
|
|
|
|
Much of the information that
|
1997-10-20 03:36:20 +04:00
|
|
|
.Nm
|
|
|
|
.Ic vmstat
|
1997-07-25 05:59:42 +04:00
|
|
|
uses is obtained from
|
|
|
|
.Cm struct vmmeter cnt .
|
1999-02-19 21:44:58 +03:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr netstat 1 ,
|
|
|
|
.Xr ps 1 ,
|
|
|
|
.Xr top 1 ,
|
|
|
|
.Xr iostat 8 ,
|
|
|
|
.Xr pstat 8 ,
|
|
|
|
.Xr vmstat 8
|
1995-01-20 11:30:50 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
1997-10-20 03:36:20 +04:00
|
|
|
.Nm
|
1995-01-20 11:30:50 +03:00
|
|
|
program appeared in
|
|
|
|
.Bx 4.3 .
|
|
|
|
.Sh BUGS
|
2000-07-05 15:04:51 +04:00
|
|
|
Consumes CPU resources and thus may skew statistics.
|
1995-01-20 11:30:50 +03:00
|
|
|
Certain displays presume a minimum of 80 characters per line.
|
|
|
|
The
|
|
|
|
.Ic vmstat
|
|
|
|
display looks out of place because it is (it was added in as
|
|
|
|
a separate display rather than created as a new program).
|