| SYSTAT(1) | General Commands Manual | SYSTAT(1) |
systat — display
system statistics
systat |
[-aBbhiNn] [-d
count] [-s
delay] [-w
width] [view]
[delay] |
systat displays various system statistics
in a screen-oriented fashion using the
curses(3) screen display
library.
While systat is running, the
screen is divided into different areas. The top line displays the current
number of users, the three system load average figures over the last 1, 5,
and 15 minute intervals, the host name, and the system time. The bottom line
of the screen is reserved for user input and error messages. The information
displayed in the rest of the screen comprises a
view, and is the
main interface for displaying different types of system statistics. The
vmstat view is the default.
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.
The options are as follows:
-a-Bcpu, where initial calculations are
useless.-b-d
count-h-i-N-n option.-n-s
delay-w
widthvmstat, pigs,
ifstat, iostat,
sensors, mbufs,
netstat, swap,
states, rules,
queues, pf,
pool, pcache,
malloc, buckets,
nfsclient, nfsserver,
cpu, or uvm. These
displays can also be requested interactively and are described in full
detail below. view may be abbreviated to the minimum
unambiguous prefix; for example, “io” for
“iostat”.-s flag.
The default interval is 5 seconds.Certain characters cause immediate action by
systat. These are:
:hopsystat.qsystat.rs,^A |
⟨Home⟩^B |
⟨right arrow⟩^E |
⟨End⟩^F |
⟨left arrow⟩^G^L^N |
⟨down arrow⟩^P |
⟨up arrow⟩^V |
⟨Page Down⟩Alt-V
| ⟨Page Up⟩The following commands are interpreted by the “global” command interpreter.
helphumanorderquitsystat. (This may be abbreviated to
q.)stopstart] [number]view may be abbreviated to the minimum unambiguous prefix. The available views are:
bucketsvmstat
-m.cpuifstatup|dn[:U|D].
‘up’ and ‘dn’ represent whether the interface
is up or down. ‘U’ and ‘D’ represent whether
the interface is connected or not; in the case of
carp(4) interfaces, whether the
interface is in master or backup state, respectively.
The character B changes the counter
view between bytes and bits. Pressing b displays
statistics as calculated from boot time. r
changes the counters to show their totals as calculated between display
refreshes. t changes the counters to show the
average per second over the display refresh interval; this is the
default. d displays input and output queue
drops. e displays input and output errors.
f displays input and output queue drops plus
errors. This is the default view.
iostatb displays statistics as
calculated from boot time. t changes the counters
to show the average per second over the display refresh interval; this is
the default.mallocvmstat
-m. Available orderings are:
name, inuse,
memuse, and requests.mbufsnetstatall-a flag to
netstat(1)).namesnumbersresettcp
|
udp
|
othernfsclientnfsstat -c.nfsservernfsstat -s.pfpfctl -s
info option.pigspoolvmstat
-m. Available orderings are:
name, requests,
size, and number of pages.
By default only the statistics of active pools are displayed
but pressing A changes the view to show all of
them.
pcachequeuespfctl -s
queue.rulespfctl -s
rules.sensorsstatespfctl -s
states. Available orderings are:
none, bytes,
expiry, packets,
age, source address,
source port, destination
address, destination port,
rate, and peak
columns.swapvmstatBelow the top 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 amount of physical memory claimed by processes. The second column reports the same figure for virtual memory, that is, the amount of memory that would be needed if all processes were resident at the same time. Finally, the last column shows the amount of physical memory 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 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 interrupt (shown as
‘|’), spinning (shown as
‘@’), system (shown as
‘=’), user plus nice (shown as
‘>’), and idle time (shown as
‘ ’).
To the right of the Proc display are statistics about Context switches (“Csw”), Traps (“Trp”), Syscalls (“Sys”), Interrupts (“Int”), Soft interrupts (“Sof”), and Faults (“Flt”) which have occurred during the last refresh interval.
Below the CPU usage graph 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, and the time spent in disk accesses.
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.
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.
Below the Interrupts display are the average number of input and output packets per second for all interfaces over the last refresh interval.
Below the SWAPPING display and slightly to the left of the Interrupts display is a list of virtual memory statistics. The abbreviations are:
uvmfstat(1), kill(1), netstat(1), nfsstat(1), ps(1), top(1), iostat(8), pfctl(8), pstat(8), renice(8), sysctl(8), vmstat(8)
The systat program first 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 rather than created as a new
program).
| February 25, 2025 | openbsd |