| SYSTAT(1) | General Commands Manual | SYSTAT(1) |
systat —
systat |
[-bnz] [-M
core] [-N
system] [-t
turns] [-w
wait] [display]
[refresh-interval] |
systat displays various system statistics in a screen
oriented fashion using the curses screen display library,
curses(3).
While systat 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.
By default systat displays the processes
getting the largest percentage of the processor in the lower window. Other
displays show more detailed process information, swap space usage, disk
usage statistics (a la df(1)),
disk I/O statistics (a la
iostat(8)), virtual memory
statistics (a la vmstat(1)),
network ``mbuf'' utilization, network 'ifstat' traffic, and network
connections (a la
netstat(1)).
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.
Command line options:
-M
core-N
system-b-nnetstat. It has the same effect as
numbers subcommand in
netstat.-w
wait-t
turnsall, bufcache,
df, ifstat,
inet.icmp, inet.ip,
inet.tcp, inet.tcpsyn,
inet6.ip6, iostat,
mbufs, netstat,
pigs, ps,
swap, syscall or
vmstat. These displays can also be requested
interactively and are described in full detail below.-w flag.-zCertain characters cause immediate action by
systat. These are
^L^G^Zsystat.?,
h:The following commands are interpreted by the ``global'' command interpreter.
help
keyinet.*”. To
print items under “inet”, give
inet as key.loadstopstart] [number]quitsystat. (This may be abbreviated to
q.)The available displays are:
all-w option,
number of refresh-turns can be changed with the -t
option.bufcachedfThe following commands are specific to the
df display:
ifstatFor each interface being displayed, the current, peak and
total statistics are displayed for incoming and outgoing traffic. By
default, the ifstat display will automatically
scale the units being used so that they are in a human-readable format.
The scaling units used for the current and peak traffic columns can be
altered by the scale command.
scale
[units]ppspps switches this
mode off.match
[patterns]match re0, bge1This will display re0 and bge1 interfaces.
match re*, bge*,
lo0This will display all re
interfaces, all bge interfaces and the
loopback interface.
inet.icmpinet.ipinet.tcpinet.tcpsyninet6.ip6iostatThe following commands are specific to the
iostat display; the minimum unambiguous prefix
may be supplied.
numbersbarssecsallrwmbufsnetstatall-a flag to
netstat 1).numbersnamesignore
[items]display
[items]show
[ports|hosts]show, then only the
requested information will be displayed.resetpigsps-aux.
The following command is specific to the
ps display; the minimum unambiguous prefix may
be supplied.
user
nameswapsyscallIn order to stop entries moving around the screen too much, an infinite response filter is applied to the values before they are sorted.
The following commands are specific to the
syscall display:
sort
namesort
countsort
syscallshow
countshow
timevmstatThe 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 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.
Below the memory display is a list of the 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'). 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 ` ').
To the right of the process statistics is a column that lists the average number of context switches (`Csw'), traps (`Traps'; includes page faults), system calls (`SysCa'), interrupts (`Intr'), network software interrupts (`Soft'), page faults (`Fault').
Below this 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 pages of memory and swap. The third column gives the number of pages of free memory and swap.
Below the memory display are statistics on name translations. 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.
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. If there are more than five disks, and the terminal window has more than 24 lines, the disks display will be flipped so that more of the disk statistics are visible.
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.
Below the paging statistics is another columns of paging data. From top to bottom, these represent:
forks’fork() callsfkppw’fork() calls where parent waitsfksvm’fork() calls where vmspace is
sharedpwait’relck’uvmfault_relock() is
calledrlkok’uvmfault_relock() is a
successnoram’ndcpy’fltcp’zfod’cow’fmin’ftarg’itarg’flnan’pdfre’pdscn’Note that the `%zfod' percentage is usually less than 100%, 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).
To the left of the column of paging statistics 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.
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
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.
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. Drives may be specified as drive names or as patterns specified in the notation described by fnmatch(3).
display
[drives]ignore
[drives]drives
[drives]The following commands are specific to the
inet.*, inet6.*,
syscall and vmstat displays;
the minimum unambiguous prefix may be supplied.
systat
vmstat uses is obtained from struct
vmmeter cnt.
systat program appeared in
4.3BSD.
Certain displays presume a minimum of 80 characters per line.
The vmstat display looks out of place
because it is (it was added in as a separate display from what used to be a
different program).
The -b option requires a real terminal and
could be converted to simply output to standard output.
| August 21, 2021 | NetBSD 10.1 |