1994-05-27 12:33:43 +00: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.
|
|
|
|
.\" 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
|
1999-08-28 01:08:13 +00:00
|
|
|
.\" $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
.\"
|
2016-12-05 13:23:22 +00:00
|
|
|
.Dd December 5, 2016
|
1994-05-27 12:33:43 +00:00
|
|
|
.Dt SYSTAT 1
|
2001-07-10 14:16:33 +00:00
|
|
|
.Os
|
1994-05-27 12:33:43 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm systat
|
2006-05-25 06:05:04 +00:00
|
|
|
.Nd display system statistics
|
1994-05-27 12:33:43 +00:00
|
|
|
.Sh SYNOPSIS
|
1997-08-13 06:45:11 +00:00
|
|
|
.Nm
|
1994-05-27 12:33:43 +00:00
|
|
|
.Op Fl display
|
2014-05-09 16:20:55 +00:00
|
|
|
.Op Ar display-commands
|
1994-05-27 12:33:43 +00:00
|
|
|
.Op Ar refresh-interval
|
|
|
|
.Sh DESCRIPTION
|
2002-04-20 12:18:28 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility displays various system statistics in a screen oriented fashion
|
1994-05-27 12:33:43 +00:00
|
|
|
using the curses screen display library,
|
2000-03-01 10:46:05 +00:00
|
|
|
.Xr ncurses 3 .
|
1994-05-27 12:33:43 +00:00
|
|
|
.Pp
|
|
|
|
While
|
1997-08-13 06:45:11 +00:00
|
|
|
.Nm
|
1994-05-27 12:33:43 +00:00
|
|
|
is running the screen is usually divided into two windows (an exception
|
2004-07-02 22:22:35 +00:00
|
|
|
is the vmstat display which uses the entire screen).
|
|
|
|
The
|
|
|
|
upper window depicts the current system load average.
|
|
|
|
The
|
1994-05-27 12:33:43 +00:00
|
|
|
information displayed in the lower window may vary, depending on
|
2004-07-02 22:22:35 +00:00
|
|
|
user commands.
|
|
|
|
The last line on the screen is reserved for user
|
1994-05-27 12:33:43 +00:00
|
|
|
input and error messages.
|
|
|
|
.Pp
|
|
|
|
By default
|
1997-08-13 06:45:11 +00:00
|
|
|
.Nm
|
1994-05-27 12:33:43 +00:00
|
|
|
displays the processes getting the largest percentage of the processor
|
2004-07-02 22:22:35 +00:00
|
|
|
in the lower window.
|
|
|
|
Other displays show swap space usage, disk
|
1994-05-27 12:33:43 +00:00
|
|
|
.Tn I/O
|
|
|
|
statistics (a la
|
2004-07-03 00:24:45 +00:00
|
|
|
.Xr iostat 8 ) ,
|
1994-05-27 12:33:43 +00:00
|
|
|
virtual memory statistics (a la
|
2004-07-03 00:24:45 +00:00
|
|
|
.Xr vmstat 8 ) ,
|
1997-09-27 00:44:55 +00:00
|
|
|
.Tn TCP/IP
|
2001-07-15 08:06:20 +00:00
|
|
|
statistics,
|
1997-09-24 02:43:45 +00:00
|
|
|
and network connections (a la
|
2004-07-03 00:24:45 +00:00
|
|
|
.Xr netstat 1 ) .
|
1994-05-27 12:33:43 +00:00
|
|
|
.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
|
2004-07-02 22:22:35 +00:00
|
|
|
input line is passed to a per-display command interpreter.
|
|
|
|
This
|
1994-05-27 12:33:43 +00:00
|
|
|
allows each display to have certain display-specific commands.
|
|
|
|
.Pp
|
|
|
|
Command line options:
|
|
|
|
.Bl -tag -width "refresh_interval"
|
|
|
|
.It Fl Ns Ar display
|
|
|
|
The
|
|
|
|
.Fl
|
|
|
|
flag expects
|
|
|
|
.Ar display
|
|
|
|
to be one of:
|
1997-09-24 02:43:45 +00:00
|
|
|
.Ic icmp ,
|
2003-08-01 20:28:20 +00:00
|
|
|
.Ic icmp6 ,
|
2003-01-04 22:07:24 +00:00
|
|
|
.Ic ifstat ,
|
1994-05-27 12:33:43 +00:00
|
|
|
.Ic iostat ,
|
1997-09-27 00:44:55 +00:00
|
|
|
.Ic ip ,
|
2003-08-01 20:28:20 +00:00
|
|
|
.Ic ip6 ,
|
1997-09-27 00:44:55 +00:00
|
|
|
.Ic netstat ,
|
|
|
|
.Ic pigs ,
|
2015-10-24 09:34:40 +00:00
|
|
|
.Ic sctp ,
|
1997-09-27 00:44:55 +00:00
|
|
|
.Ic swap ,
|
|
|
|
.Ic tcp ,
|
2015-09-27 09:15:54 +00:00
|
|
|
.Ic vmstat ,
|
1994-05-27 12:33:43 +00:00
|
|
|
or
|
2015-09-27 09:15:54 +00:00
|
|
|
.Ic zarc ,
|
1994-05-27 12:33:43 +00:00
|
|
|
These displays can also be requested interactively (without the
|
|
|
|
.Dq Fl )
|
|
|
|
and are described in
|
|
|
|
full detail below.
|
|
|
|
.It Ar refresh-interval
|
|
|
|
The
|
|
|
|
.Ar refresh-value
|
|
|
|
specifies the screen refresh time interval in seconds.
|
2012-09-17 13:36:47 +00:00
|
|
|
Time interval can be fractional.
|
2014-05-09 16:20:55 +00:00
|
|
|
.It Ar display-commands
|
2016-12-05 13:23:22 +00:00
|
|
|
A list of commands specific to this display.
|
|
|
|
These commands can also be entered interactively and are described for
|
|
|
|
each display separately below.
|
|
|
|
If the command requires arguments, they can be specified as separate
|
|
|
|
command line arguments.
|
|
|
|
A command line argument
|
|
|
|
.Fl -
|
|
|
|
will finish display commands.
|
|
|
|
For example:
|
2014-05-09 16:20:55 +00:00
|
|
|
.Pp
|
|
|
|
.Dl Nm Fl ifstat Fl match Ar bge0,em1 Fl pps
|
|
|
|
.Pp
|
2014-07-29 19:49:27 +00:00
|
|
|
This will display statistics of packets per second for network interfaces
|
2014-05-09 16:20:55 +00:00
|
|
|
named as bge0 and em1.
|
|
|
|
.Pp
|
2016-12-05 13:23:22 +00:00
|
|
|
.Dl Nm Fl iostat Fl numbers Fl - Ar 2.1
|
2014-05-09 16:20:55 +00:00
|
|
|
.Pp
|
|
|
|
This will display all IO statistics in a numeric format and the information
|
|
|
|
will be refreshed each 2.1 seconds.
|
1994-05-27 12:33:43 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Certain characters cause immediate action by
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm .
|
1994-05-27 12:33:43 +00: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 \&:
|
|
|
|
Move the cursor to the command line and interpret the input
|
2004-07-02 22:22:35 +00:00
|
|
|
line typed as a command.
|
|
|
|
While entering a command the
|
1994-05-27 12:33:43 +00:00
|
|
|
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
|
|
|
|
.It Ic help
|
|
|
|
Print the names of the available displays on the command line.
|
|
|
|
.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
|
2004-07-02 22:22:35 +00:00
|
|
|
Start (continue) refreshing the screen.
|
|
|
|
If a second, numeric,
|
1994-05-27 12:33:43 +00:00
|
|
|
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
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm .
|
1994-05-27 12:33:43 +00:00
|
|
|
(This may be abbreviated to
|
2004-07-03 00:24:45 +00:00
|
|
|
.Ic q . )
|
1994-05-27 12:33:43 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The available displays are:
|
|
|
|
.Bl -tag -width Ic
|
|
|
|
.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.
|
1997-09-24 02:43:45 +00:00
|
|
|
.It Ic icmp
|
|
|
|
Display, in the lower window, statistics about messages received and
|
|
|
|
transmitted by the Internet Control Message Protocol
|
|
|
|
.Pq Dq Tn ICMP .
|
|
|
|
The left half of the screen displays information about received
|
|
|
|
packets, and the right half displays information regarding transmitted
|
|
|
|
packets.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ic icmp
|
|
|
|
display understands two commands:
|
|
|
|
.Ic mode
|
|
|
|
and
|
|
|
|
.Ic reset .
|
|
|
|
The
|
|
|
|
.Ic mode
|
|
|
|
command is used to select one of four display modes, given as its argument:
|
|
|
|
.Bl -tag -width absoluteXX -compact
|
|
|
|
.It Ic rate :
|
|
|
|
show the rate of change of each value in packets (the default)
|
|
|
|
per second
|
|
|
|
.It Ic delta :
|
|
|
|
show the rate of change of each value in packets per refresh interval
|
|
|
|
.It Ic since :
|
|
|
|
show the total change of each value since the display was last reset
|
|
|
|
.It Ic absolute :
|
|
|
|
show the absolute value of each statistic
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ic reset
|
|
|
|
command resets the baseline for
|
|
|
|
.Ic since
|
2004-07-02 22:22:35 +00:00
|
|
|
mode.
|
|
|
|
The
|
1997-09-24 02:43:45 +00:00
|
|
|
.Ic mode
|
|
|
|
command with no argument will display the current mode in the command
|
|
|
|
line.
|
2003-08-01 20:28:20 +00:00
|
|
|
.It Ic icmp6
|
|
|
|
This display is like the
|
|
|
|
.Ic icmp
|
|
|
|
display,
|
|
|
|
but displays statistics for IPv6 ICMP.
|
1997-09-27 00:44:55 +00:00
|
|
|
.It Ic ip
|
|
|
|
Otherwise identical to the
|
|
|
|
.Ic icmp
|
|
|
|
display, except that it displays
|
|
|
|
.Tn IP
|
|
|
|
and
|
|
|
|
.Tn UDP
|
|
|
|
statistics.
|
2003-08-01 20:28:20 +00:00
|
|
|
.It Ic ip6
|
|
|
|
Like the
|
|
|
|
.Ic ip
|
|
|
|
display,
|
|
|
|
except that it displays
|
|
|
|
.Tn IPv6
|
2010-08-16 15:18:30 +00:00
|
|
|
statistics.
|
2004-07-02 19:07:33 +00:00
|
|
|
It does not display
|
2003-08-01 20:28:20 +00:00
|
|
|
.Tn UDP statistics.
|
2015-10-24 09:34:40 +00:00
|
|
|
.It Ic sctp
|
|
|
|
Like
|
|
|
|
.Ic icmp ,
|
|
|
|
but with
|
|
|
|
.Tn SCTP
|
|
|
|
statistics.
|
1997-09-27 00:44:55 +00:00
|
|
|
.It Ic tcp
|
|
|
|
Like
|
|
|
|
.Ic icmp ,
|
|
|
|
but with
|
|
|
|
.Tn TCP
|
|
|
|
statistics.
|
1994-05-27 12:33:43 +00:00
|
|
|
.It Ic iostat
|
|
|
|
Display, in the lower window, statistics about processor use
|
2004-07-02 22:22:35 +00:00
|
|
|
and disk throughput.
|
|
|
|
Statistics on processor use appear as
|
1994-05-27 12:33:43 +00:00
|
|
|
bar graphs of the amount of time executing in user mode (``user''),
|
|
|
|
in user mode running low priority processes (``nice''), in
|
1994-12-03 10:06:40 +00:00
|
|
|
system mode (``system''), in interrupt mode (``interrupt''),
|
2004-07-02 22:22:35 +00:00
|
|
|
and idle (``idle'').
|
|
|
|
Statistics
|
1998-09-15 08:16:45 +00:00
|
|
|
on disk throughput show, for each drive, megabytes per second,
|
|
|
|
average number of disk transactions per second, and
|
2004-07-02 22:22:35 +00:00
|
|
|
average kilobytes of data per transaction.
|
|
|
|
This information may be
|
|
|
|
displayed as bar graphs or as rows of numbers which scroll downward.
|
|
|
|
Bar
|
1997-08-13 06:45:11 +00:00
|
|
|
graphs are shown by default.
|
1994-05-27 12:33:43 +00:00
|
|
|
.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
|
2001-07-15 08:06:20 +00:00
|
|
|
.Tn I/O
|
2004-07-02 22:22:35 +00:00
|
|
|
statistics in numeric form.
|
|
|
|
Values are
|
1994-05-27 12:33:43 +00:00
|
|
|
displayed in numeric columns which scroll downward.
|
|
|
|
.It Cm bars
|
|
|
|
Show the disk
|
|
|
|
.Tn I/O
|
|
|
|
statistics in bar graph form (default).
|
1998-09-15 08:16:45 +00:00
|
|
|
.It Cm kbpt
|
2000-03-02 14:54:02 +00:00
|
|
|
Toggle the display of kilobytes per transaction.
|
|
|
|
(the default is to
|
1998-09-15 08:16:45 +00:00
|
|
|
not display kilobytes per transaction).
|
1994-05-27 12:33:43 +00:00
|
|
|
.El
|
|
|
|
.It Ic swap
|
2001-07-15 08:06:20 +00:00
|
|
|
Show information about swap space usage on all the
|
1994-05-27 12:33:43 +00:00
|
|
|
swap areas compiled into the kernel.
|
|
|
|
The first column is the device name of the partition.
|
|
|
|
The next column is the total space available in the partition.
|
2001-07-15 08:06:20 +00:00
|
|
|
The
|
1994-05-27 12:33:43 +00:00
|
|
|
.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,
|
2005-07-31 03:30:48 +00:00
|
|
|
device interrupts, system name translation caching, disk
|
1994-05-27 12:33:43 +00:00
|
|
|
.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.
|
2006-10-12 10:54:34 +00:00
|
|
|
The first column reports on the number of kilobytes in physical pages
|
1994-05-27 12:33:43 +00:00
|
|
|
claimed by processes.
|
2006-10-12 10:54:34 +00:00
|
|
|
The second column reports the number of kilobytes in physical pages that
|
1994-05-27 12:33:43 +00:00
|
|
|
are devoted to read only text pages.
|
|
|
|
The third and fourth columns report the same two figures for
|
2006-10-12 10:54:34 +00:00
|
|
|
virtual pages, that is the number of kilobytes in pages that would be
|
1994-05-27 12:33:43 +00:00
|
|
|
needed if all processes had all of their pages.
|
2006-10-12 10:54:34 +00:00
|
|
|
Finally the last column shows the number of kilobytes in physical pages
|
1994-05-27 12:33:43 +00:00
|
|
|
on the free list.
|
|
|
|
.Pp
|
1997-02-15 21:01:38 +00:00
|
|
|
Below the memory display is a list of the
|
1994-05-27 12:33:43 +00: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').
|
1998-06-25 22:04:48 +00:00
|
|
|
The row also shows the average number of context switches
|
|
|
|
(`Csw'), traps (`Trp'; includes page faults), system calls (`Sys'),
|
|
|
|
interrupts (`Int'), network software interrupts (`Sof'), and page
|
|
|
|
faults (`Flt').
|
|
|
|
.Pp
|
|
|
|
Below the process queue length listing is a numerical listing and
|
1994-05-27 12:33:43 +00:00
|
|
|
a bar graph showing the amount of
|
1994-12-03 10:06:40 +00:00
|
|
|
system (shown as `='), interrupt (shown as `+'), user (shown as `>'),
|
1994-05-27 12:33:43 +00:00
|
|
|
nice (shown as `-'), and idle time (shown as ` ').
|
|
|
|
.Pp
|
1997-02-15 21:01:38 +00:00
|
|
|
Below the process display are statistics on name translations.
|
1994-05-27 12:33:43 +00: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
|
2006-04-30 22:05:02 +00:00
|
|
|
To the right of the name translations display are lines showing
|
|
|
|
the number of dirty buffers in the buffer cache (`dtbuf'),
|
|
|
|
desired maximum size of vnode cache (`desvn'),
|
|
|
|
number of vnodes actually allocated (`numvn'),
|
|
|
|
and
|
|
|
|
number of allocated vnodes that are free (`frevn').
|
|
|
|
.Pp
|
1997-02-15 21:01:38 +00:00
|
|
|
At the bottom left is the disk usage display.
|
1998-12-27 21:38:09 +00:00
|
|
|
It reports the number of
|
2001-07-15 08:06:20 +00:00
|
|
|
kilobytes per transaction, transactions per second, megabytes
|
1999-07-30 07:44:25 +00:00
|
|
|
per second and the percentage of the time the disk was busy averaged
|
|
|
|
over the refresh period of the display (by default, five seconds).
|
2004-07-02 22:22:35 +00:00
|
|
|
The system keeps statistics on most every storage device.
|
|
|
|
In general, up
|
|
|
|
to seven devices are displayed.
|
|
|
|
The devices displayed by default are the
|
|
|
|
first devices in the kernel's device list.
|
|
|
|
See
|
1998-12-27 21:38:09 +00:00
|
|
|
.Xr devstat 3
|
2001-07-15 08:06:20 +00:00
|
|
|
and
|
1998-12-27 21:38:09 +00:00
|
|
|
.Xr devstat 9
|
|
|
|
for details on the devstat system.
|
1997-02-15 21:01:38 +00:00
|
|
|
.Pp
|
1994-05-27 12:33:43 +00: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
|
1998-06-25 22:04:48 +00:00
|
|
|
Below the paging statistics is a column of lines regarding the virtual
|
2006-05-01 07:02:52 +00:00
|
|
|
memory system.
|
|
|
|
The first few lines describe,
|
|
|
|
in units (except as noted below)
|
|
|
|
of pages per second averaged over the sampling interval,
|
1998-06-25 22:04:48 +00:00
|
|
|
pages copied on write (`cow'),
|
|
|
|
pages zero filled on demand (`zfod'),
|
2006-05-01 07:02:52 +00:00
|
|
|
pages optimally zero filled on demand (`ozfod'),
|
|
|
|
the ratio of the (average) ozfod / zfod as a percentage (`%ozfod'),
|
|
|
|
pages freed by the page daemon (`daefr'),
|
|
|
|
pages freed by exiting processes (`prcfr'),
|
2006-04-29 21:30:23 +00:00
|
|
|
total pages freed (`totfr'),
|
2006-05-01 07:02:52 +00:00
|
|
|
pages reactivated from the free list (`react'),
|
|
|
|
the average number of
|
|
|
|
times per second that the page daemon was awakened (`pdwak'),
|
|
|
|
pages analyzed by the page daemon (`pdpgs'),
|
|
|
|
and
|
|
|
|
in-transit blocking page faults (`intrn').
|
|
|
|
Note that the units are special for `%ozfod' and `pdwak'.
|
|
|
|
The next few lines describe,
|
2006-10-12 10:54:34 +00:00
|
|
|
as amounts of memory in kilobytes,
|
1998-06-25 22:04:48 +00:00
|
|
|
pages wired down (`wire'),
|
|
|
|
active pages (`act'),
|
|
|
|
inactive pages (`inact'),
|
2016-11-10 19:55:45 +00:00
|
|
|
dirty pages queued for laundering (`laund'),
|
1998-06-25 22:04:48 +00:00
|
|
|
and
|
2006-05-01 07:02:52 +00:00
|
|
|
free pages (`free').
|
|
|
|
Note that the values displayed are the current transient ones;
|
|
|
|
they are not averages.
|
1994-05-27 12:33:43 +00:00
|
|
|
.Pp
|
2006-04-30 22:05:02 +00:00
|
|
|
At the bottom of this column is a line showing the
|
|
|
|
amount of virtual memory, in kilobytes, mapped into the buffer cache (`buf').
|
|
|
|
This statistic is not useful.
|
|
|
|
It exists only as a placeholder for the corresponding useful statistic
|
|
|
|
(the amount of real memory used to cache disks).
|
|
|
|
The most important component of the latter (the amount of real memory
|
|
|
|
used by the vm system to cache disks) is not available,
|
|
|
|
but can be guessed from the `inact' amount under some system loads.
|
1994-05-27 12:33:43 +00:00
|
|
|
.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.
|
|
|
|
.Pp
|
|
|
|
The following commands are specific to the
|
|
|
|
.Ic vmstat
|
|
|
|
display; 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
|
2015-09-27 09:15:54 +00:00
|
|
|
.It Ic zarc
|
|
|
|
display arc cache usage and hit/miss statistics.
|
1994-05-27 12:33:43 +00:00
|
|
|
.It Ic netstat
|
2004-07-02 22:22:35 +00:00
|
|
|
Display, in the lower window, network connections.
|
|
|
|
By default,
|
|
|
|
network servers awaiting requests are not displayed.
|
|
|
|
Each address
|
1994-05-27 12:33:43 +00:00
|
|
|
is displayed in the format ``host.port'', with each shown symbolically,
|
2004-07-02 22:22:35 +00:00
|
|
|
when possible.
|
|
|
|
It is possible to have addresses displayed numerically,
|
1994-05-27 12:33:43 +00:00
|
|
|
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
|
1997-12-04 03:44:46 +00:00
|
|
|
.Xr netstat 1 ) .
|
1994-05-27 12:33:43 +00:00
|
|
|
.It Cm numbers
|
|
|
|
Display network addresses numerically.
|
|
|
|
.It Cm names
|
|
|
|
Display network addresses symbolically.
|
1997-12-04 03:44:46 +00:00
|
|
|
.It Cm proto Ar protocol
|
|
|
|
Display only network connections using the indicated
|
|
|
|
.Ar protocol .
|
|
|
|
Supported protocols are ``tcp'', ``udp'', and ``all''.
|
1994-05-27 12:33:43 +00:00
|
|
|
.It Cm ignore Op Ar items
|
|
|
|
Do not display information about connections associated with
|
2004-07-02 22:22:35 +00:00
|
|
|
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
|
1994-05-27 12:33:43 +00:00
|
|
|
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
|
2004-07-02 22:22:35 +00:00
|
|
|
specified hosts or ports.
|
|
|
|
As for
|
2004-07-03 00:24:45 +00:00
|
|
|
.Ar ignore ,
|
1994-05-27 12:33:43 +00:00
|
|
|
.Op Ar items
|
|
|
|
may be names or numbers.
|
|
|
|
.It Cm show Op Ar ports\&|hosts
|
|
|
|
Show, on the command line, the currently selected protocols,
|
2004-07-02 22:22:35 +00:00
|
|
|
hosts, and ports.
|
|
|
|
Hosts and ports which are being ignored
|
|
|
|
are prefixed with a `!'.
|
|
|
|
If
|
1994-05-27 12:33:43 +00:00
|
|
|
.Ar ports
|
|
|
|
or
|
|
|
|
.Ar hosts
|
|
|
|
is supplied as an argument to
|
2004-07-03 00:24:45 +00:00
|
|
|
.Cm show ,
|
1994-05-27 12:33:43 +00:00
|
|
|
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
|
2003-01-04 22:07:24 +00:00
|
|
|
.It Ic ifstat
|
|
|
|
Display the network traffic going through active interfaces on the
|
2004-07-02 22:22:35 +00:00
|
|
|
system.
|
|
|
|
Idle interfaces will not be displayed until they receive some
|
2003-01-04 22:07:24 +00:00
|
|
|
traffic.
|
|
|
|
.Pp
|
|
|
|
For each interface being displayed, the current, peak and total
|
2004-07-02 22:22:35 +00:00
|
|
|
statistics are displayed for incoming and outgoing traffic.
|
|
|
|
By default,
|
2003-01-04 22:07:24 +00:00
|
|
|
the
|
|
|
|
.Ic ifstat
|
|
|
|
display will automatically scale the units being used so that they are
|
2004-07-02 22:22:35 +00:00
|
|
|
in a human-readable format.
|
|
|
|
The scaling units used for the current and
|
2003-01-04 22:07:24 +00:00
|
|
|
peak
|
|
|
|
traffic columns can be altered by the
|
|
|
|
.Ic scale
|
|
|
|
command.
|
2003-02-24 22:53:26 +00:00
|
|
|
.Bl -tag -width ".Cm scale Op Ar units"
|
2003-01-04 22:07:24 +00:00
|
|
|
.It Cm scale Op Ar units
|
|
|
|
Modify the scale used to display the current and peak traffic over all
|
2004-07-02 22:22:35 +00:00
|
|
|
interfaces.
|
|
|
|
The following units are recognised: kbit, kbyte, mbit,
|
2003-01-04 22:07:24 +00:00
|
|
|
mbyte, gbit, gbyte and auto.
|
2013-02-20 13:47:05 +00:00
|
|
|
.It Cm pps
|
|
|
|
Show statistics in packets per second instead of bytes/bits per second.
|
2013-02-25 17:32:10 +00:00
|
|
|
A subsequent call of
|
|
|
|
.Ic pps
|
2013-02-20 13:47:05 +00:00
|
|
|
switches this mode off.
|
|
|
|
.It Cm match Op Ar patterns
|
2013-02-25 17:32:10 +00:00
|
|
|
Display only interfaces that match pattern provided as an argument.
|
|
|
|
Patterns should be in shell syntax separated by whitespaces or commas.
|
2013-02-20 13:47:05 +00:00
|
|
|
If this command is called without arguments then all interfaces are displayed.
|
|
|
|
For example:
|
|
|
|
.Pp
|
|
|
|
.Dl match em0, bge1
|
|
|
|
.Pp
|
|
|
|
This will display em0 and bge1 interfaces.
|
|
|
|
.Pp
|
|
|
|
.Dl match em*, bge*, lo0
|
|
|
|
.Pp
|
2013-02-25 17:32:10 +00:00
|
|
|
This will display all
|
|
|
|
.Ic em
|
2013-02-20 13:47:05 +00:00
|
|
|
interfaces, all
|
|
|
|
.Ic bge
|
|
|
|
interfaces and the loopback interface.
|
2003-01-04 22:07:24 +00:00
|
|
|
.El
|
1994-05-27 12:33:43 +00:00
|
|
|
.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
|
2004-07-02 22:22:35 +00:00
|
|
|
insufficient for display.
|
|
|
|
For example, on a machine with 10
|
1994-05-27 12:33:43 +00:00
|
|
|
drives the
|
|
|
|
.Ic iostat
|
2004-07-02 22:22:35 +00:00
|
|
|
bar graph displays only 3 drives on a 24 line terminal.
|
|
|
|
When
|
1994-05-27 12:33:43 +00:00
|
|
|
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
|
2004-07-02 22:22:35 +00:00
|
|
|
information about disk drives.
|
|
|
|
These commands are used to
|
1994-05-27 12:33:43 +00:00
|
|
|
select a set of drives to report on, should your system have
|
|
|
|
more drives configured than can normally be displayed on the
|
|
|
|
screen.
|
|
|
|
.Pp
|
2000-12-19 16:00:12 +00:00
|
|
|
.Bl -tag -width Ar -compact
|
1994-05-27 12:33:43 +00:00
|
|
|
.It Cm ignore Op Ar drives
|
2004-07-02 22:22:35 +00:00
|
|
|
Do not display information about the drives indicated.
|
|
|
|
Multiple
|
1994-05-27 12:33:43 +00:00
|
|
|
drives may be specified, separated by spaces.
|
|
|
|
.It Cm display Op Ar drives
|
2004-07-02 22:22:35 +00:00
|
|
|
Display information about the drives indicated.
|
|
|
|
Multiple drives
|
1994-05-27 12:33:43 +00:00
|
|
|
may be specified, separated by spaces.
|
1998-09-15 08:16:45 +00:00
|
|
|
.It Cm only Op Ar drives
|
2004-07-02 22:22:35 +00:00
|
|
|
Display only the specified drives.
|
|
|
|
Multiple drives may be specified,
|
1998-09-15 08:16:45 +00:00
|
|
|
separated by spaces.
|
|
|
|
.It Cm drives
|
|
|
|
Display a list of available devices.
|
2001-02-01 16:38:02 +00:00
|
|
|
.It Cm match Xo
|
|
|
|
.Ar type , Ns Ar if , Ns Ar pass
|
|
|
|
.Op | Ar ...
|
|
|
|
.Xc
|
2004-07-02 22:22:35 +00:00
|
|
|
Display devices matching the given pattern.
|
|
|
|
The basic matching
|
1998-09-15 08:16:45 +00:00
|
|
|
expressions are the same as those used in
|
|
|
|
.Xr iostat 8
|
2004-07-02 22:22:35 +00:00
|
|
|
with one difference.
|
|
|
|
Instead of specifying multiple
|
1998-09-15 08:16:45 +00:00
|
|
|
.Fl t
|
2002-12-27 12:15:40 +00:00
|
|
|
arguments which are then ORed together, the user instead specifies multiple
|
2001-02-01 16:38:02 +00:00
|
|
|
matching expressions joined by the pipe
|
|
|
|
.Pq Ql \&|
|
|
|
|
character.
|
|
|
|
The comma
|
1998-09-15 08:16:45 +00:00
|
|
|
separated arguments within each matching expression are ANDed together, and
|
2004-07-02 22:22:35 +00:00
|
|
|
then the pipe separated matching expressions are ORed together.
|
|
|
|
Any
|
1998-09-15 08:16:45 +00:00
|
|
|
device matching the combined expression will be displayed, if there is room
|
2004-07-02 22:22:35 +00:00
|
|
|
to display it.
|
|
|
|
For example:
|
1998-09-15 08:16:45 +00:00
|
|
|
.Pp
|
2001-07-15 08:06:20 +00:00
|
|
|
.Dl match da,scsi | cd,ide
|
1998-09-15 08:16:45 +00:00
|
|
|
.Pp
|
|
|
|
This will display all SCSI Direct Access devices and all IDE CDROM devices.
|
|
|
|
.Pp
|
|
|
|
.Dl match da | sa | cd,pass
|
|
|
|
.Pp
|
|
|
|
This will display all Direct Access devices, all Sequential Access devices,
|
|
|
|
and all passthrough devices that provide access to CDROM drives.
|
1994-05-27 12:33:43 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
2002-05-09 11:47:42 +00:00
|
|
|
.Bl -tag -width /boot/kernel/kernel -compact
|
|
|
|
.It Pa /boot/kernel/kernel
|
1994-05-27 12:33:43 +00:00
|
|
|
For the namelist.
|
|
|
|
.It Pa /dev/kmem
|
|
|
|
For information in main memory.
|
|
|
|
.It Pa /etc/hosts
|
|
|
|
For host names.
|
|
|
|
.It Pa /etc/networks
|
|
|
|
For network names.
|
|
|
|
.It Pa /etc/services
|
|
|
|
For port names.
|
|
|
|
.El
|
2005-01-18 13:43:56 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr netstat 1 ,
|
|
|
|
.Xr kvm 3 ,
|
|
|
|
.Xr icmp 4 ,
|
|
|
|
.Xr icmp6 4 ,
|
|
|
|
.Xr ip 4 ,
|
|
|
|
.Xr ip6 4 ,
|
|
|
|
.Xr tcp 4 ,
|
|
|
|
.Xr udp 4 ,
|
2005-05-26 17:54:16 +00:00
|
|
|
.Xr gstat 8 ,
|
2005-01-18 13:43:56 +00:00
|
|
|
.Xr iostat 8 ,
|
|
|
|
.Xr vmstat 8
|
1994-05-27 12:33:43 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
1997-08-13 06:45:11 +00:00
|
|
|
.Nm
|
1994-05-27 12:33:43 +00:00
|
|
|
program appeared in
|
|
|
|
.Bx 4.3 .
|
1997-09-24 02:43:45 +00:00
|
|
|
The
|
1997-09-27 00:44:55 +00:00
|
|
|
.Ic icmp ,
|
|
|
|
.Ic ip ,
|
|
|
|
and
|
|
|
|
.Ic tcp
|
|
|
|
displays appeared in
|
1997-09-24 02:43:45 +00:00
|
|
|
.Fx 3.0 ;
|
|
|
|
the notion of having different display modes for the
|
1997-09-27 00:44:55 +00:00
|
|
|
.Tn ICMP ,
|
1998-09-09 03:07:03 +00:00
|
|
|
.Tn IP ,
|
1997-09-27 00:44:55 +00:00
|
|
|
.Tn TCP ,
|
|
|
|
and
|
|
|
|
.Tn UDP
|
1997-09-24 02:43:45 +00:00
|
|
|
statistics was stolen from the
|
|
|
|
.Fl C
|
|
|
|
option to
|
|
|
|
.Xr netstat 1
|
|
|
|
in Silicon Graphics'
|
|
|
|
.Tn IRIX
|
|
|
|
system.
|
1994-05-27 12:33:43 +00:00
|
|
|
.Sh BUGS
|
|
|
|
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).
|