Wed Mar 29 21:44:35 2023 UTC ()
systat(1): try to give this page a quick facelift

... too bad what it really needs is reconstructive surgery.  I tried
to fix the most obvious problems (unsorted lists, obviously wrong
markup, pleonastic wording that drowns out useful information in
repetition and lifetime supply of quote marks).

This page really needs a native speaker to take some loving care of it.


(uwe)
diff -r1.53 -r1.54 src/usr.bin/systat/systat.1

cvs diff -r1.53 -r1.54 src/usr.bin/systat/systat.1 (expand / switch to unified diff)

--- src/usr.bin/systat/systat.1 2023/03/29 19:40:18 1.53
+++ src/usr.bin/systat/systat.1 2023/03/29 21:44:35 1.54
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: systat.1,v 1.53 2023/03/29 19:40:18 kre Exp $ 1.\" $NetBSD: systat.1,v 1.54 2023/03/29 21:44:35 uwe Exp $
2.\" 2.\"
3.\" Copyright (c) 1985, 1990, 1993 3.\" Copyright (c) 1985, 1990, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the 12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution. 13.\" documentation and/or other materials provided with the distribution.
14.\" 3. Neither the name of the University nor the names of its contributors 14.\" 3. Neither the name of the University nor the names of its contributors
@@ -19,196 +19,193 @@ @@ -19,196 +19,193 @@
19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.\" 29.\"
30.\" @(#)systat.1 8.2 (Berkeley) 12/30/93 30.\" @(#)systat.1 8.2 (Berkeley) 12/30/93
31.\" 31.\"
32.Dd August 21, 2021 32.Dd March 29, 2023
33.Dt SYSTAT 1 33.Dt SYSTAT 1
34.Os 34.Os
35.Sh NAME 35.Sh NAME
36.Nm systat 36.Nm systat
37.Nd display system statistics in a full-screen view 37.Nd display system statistics in a full-screen view
38.Sh SYNOPSIS 38.Sh SYNOPSIS
39.Nm 39.Nm
40.Op Fl bnz 40.Op Fl bnz
41.Op Fl M Ar core 41.Op Fl M Ar core
42.Op Fl N Ar system 42.Op Fl N Ar system
43.Op Fl t Ar turns 43.Op Fl t Ar turns
44.Op Fl w Ar wait 44.Op Fl w Ar wait
45.Op Ar display 45.Op Ar display
46.Op Ar refresh-interval 46.Op Ar wait
47.Sh DESCRIPTION 47.Sh DESCRIPTION
48.Nm 48.Nm
49displays various system statistics in a screen oriented fashion 49displays various system statistics in a screen oriented fashion
50using the curses screen display library, 50using the
51.Xr curses 3 . 51.Xr curses 3
 52screen display library.
52.Pp 53.Pp
53While 54While
54.Nm 55.Nm
55is running the screen is usually divided into two windows (an exception 56is running the screen is usually divided into two windows
56is the vmstat display which uses the entire screen). 57.Pq an exception is the vmstat display which uses the entire screen .
57The upper window depicts the current system load average. 58The upper window depicts the current system load average.
58The information displayed in the lower window may vary, depending on 59The information displayed in the lower window may vary, depending on
59user commands. 60user commands.
60The last line on the screen is reserved for user input and error messages. 61The last line on the screen is reserved for user input and error messages.
61.Pp 62.Pp
62By default 63By default
63.Nm 64.Nm
64displays the processes getting the largest percentage of the processor 65displays the processes getting the largest percentage of the processor
65in the lower window. 66in the lower window.
66Other displays show more detailed process information, 67Other displays show more detailed process information,
67swap space usage, 68swap space usage,
68disk usage statistics (a la 69disk usage statistics
69.Xr df 1 ) , 70.Pq a\~la Xr df 1 ,
70disk I/O statistics (a la 71disk I/O statistics
71.Xr iostat 8 ) , 72.Pq a\~la Xr iostat 8 ,
72virtual memory statistics (a la 73virtual memory statistics
73.Xr vmstat 1 ) , 74.Pq a\~la Xr vmstat 1 ,
74network 75network mbuf utilization,
75.Qq Ic mbufs 76network interface traffic,
76utilization, network 77and network connections
77.Qq Ic ifstat  78.Pq a\~la Xr netstat 1 .
78traffic, and network connections (a la 
79.Xr netstat 1 ) . 
80.Pp 79.Pp
81Input is interpreted at two different levels. 80Input is interpreted at two different levels.
82A ``global'' command interpreter processes all keyboard input. 81A global command interpreter processes all keyboard input.
83If this command interpreter fails to recognize a command, the 82If this command interpreter fails to recognize a command, the
84input line is passed to a per-display command interpreter. 83input line is passed to a per-display command interpreter.
85This allows each display to have certain display-specific commands. 84This allows each display to have certain display-specific commands.
86.Pp 85.Pp
87Command line options: 86Command line options:
88.Bl -tag -width "refresh_interval" 87.Bl -tag -width Fl
 88.It Fl b
 89Show the chosen display once and exit.
89.It Fl M Ar core 90.It Fl M Ar core
90Extract values associated with the name list from 91Extract values associated with the name list from
91.Ar core 92.Ar core
92instead of the default 93instead of the default
93.Pa /dev/mem . 94.Pa /dev/mem .
94.It Fl N Ar system 95.It Fl N Ar system
95Extract the name list from 96Extract the name list from
96.Ar system 97.Ar system
97instead of the default 98instead of the default
98.Pa /netbsd . 99.Pa /netbsd .
99.It Fl b 
100Show the chosen display once and exit. 
101.It Fl n 100.It Fl n
102Do not resolve IP addresses into string hostnames 101Do not resolve IP addresses into string hostnames
103.Pq FQDNs 102.Pf ( Tn FQDN Ns s ) .
104on 
105.Ic netstat . 
106It has the same effect as 103It has the same effect as
107.Ic numbers 104.Ic numbers
108subcommand in 105subcommand in
109.Ic netstat . 106.Ic netstat .
110.It Fl w Ar wait 
111See 
112.Ar refresh-interval . 
113.It Fl t Ar turns 107.It Fl t Ar turns
114How many refreshes to show each screen in 'all' display mode. 108How many refresh cycles to show each screen in
 109.Sq all
 110display mode.
 111The default is 2.
 112.It Fl w Ar wait
 113Set the screen refresh interval to
 114.Ar wait
 115seconds.
 116Floating point numbers are accepted.
 117The default is 1\~second.
 118.It Fl z
 119Display 0 instead of space when there is no data.
115.It Ar display 120.It Ar display
116The 121The
117.Ar display 122.Ar display
118argument expects to be one of: 123argument expects to be one of:
119.Ic all , 124.Ic all ,
120.Ic bufcache , 125.Ic bufcache ,
121.Ic df , 126.Ic df ,
122.Ic ifstat , 127.Ic ifstat ,
123.Ic inet.icmp , 128.Ic inet.icmp ,
124.Ic inet.ip , 129.Ic inet.ip ,
125.Ic inet.tcp , 130.Ic inet.tcp ,
126.Ic inet.tcpsyn , 131.Ic inet.tcpsyn ,
127.Ic inet6.ip6 , 132.Ic inet6.ip6 ,
128.Ic iostat , 133.Ic iostat ,
129.Ic mbufs , 134.Ic mbufs ,
130.Ic netstat , 135.Ic netstat ,
131.Ic pigs , 136.Ic pigs ,
132.Ic ps , 137.Ic ps ,
133.Ic swap , 138.Ic swap ,
134.Ic syscall 139.Ic syscall
135or 140or
136.Ic vmstat . 141.Ic vmstat .
137These displays can also be requested interactively and are described in 142These displays can also be requested interactively and are described in
138full detail below. 143full detail below.
139.It Ar refresh-interval 144.It Ar wait
140The 145The same as
141.Ar refresh-interval 146.Fl w Ar wait .
142specifies the screen refresh time interval in seconds. 147This form is provided for backwards compatibility.
143This is provided for backwards compatibility, and overrides the 
144.Ar refresh-interval 
145specified with the 
146.Fl w 
147flag. 
148.It Fl z 
149Display 0 instead of space when there is no data. 
150.El 148.El
151.Pp 149.Pp
152Certain characters cause immediate action by 150Certain characters cause immediate action by
153.Nm . 151.Nm .
154These are 152These are
155.Bl -tag -width Fl 153.Bl -tag -width Ic
156.It Ic \&^L 154.It Ic \&^L
157Refresh the screen. 155Refresh the screen.
158.It Ic \&^G 156.It Ic \&^G
159Print the name of the current ``display'' being shown in 157Print the name of the current display being shown in
160the lower window and the refresh interval. 158the lower window and the refresh interval.
161.It Ic \&^Z 159.It Ic \&^Z
162Stop 160Suspend
163.Nm . 161.Nm .
164.It Ic \&? , Ic h 162.It Ic \&? , Ic h
165Print the names of the available displays on the command line. 163Print the names of the available displays on the command line.
166.It Ic \&: 164.It Ic \&:
167Move the cursor to the command line and interpret the input 165Move the cursor to the command line and interpret the input
168line typed as a command. 166line typed as a command.
169While entering a command the current character erase, word erase, 167While entering a command the current character erase, word erase,
170and line kill characters may be used. 168and line kill characters may be used.
171.El 169.El
172.Pp 170.Pp
173The following commands are interpreted by the ``global'' 171The following commands are interpreted by the global
174command interpreter. 172command interpreter.
175.Bl -tag -width Fl 173.Bl -tag -width Ic
176.It Ic help Ar key 174.It Ic help Op Ar key
177Print the names of the available displays on the command line. 175Print the names of the available displays on the command line.
178It will print long names as 176It will print long names as
179.Dq Ic inet.* . 177.Ql inet.* .
180To print items under 178To print items under
181.Dq Ic inet , 179.Ic inet ,
182give 180give
183.Ic inet 181.Ic inet
184as 182as
185.Ar key . 183.Ar key .
186.It Ic load 184.It Ic load
187Print the load average over the past 1, 5, and 15 minutes 185Print the load average over the past 1, 5, and 15 minutes
188on the command line. 186on the command line.
189.It Ic stop 187.It Ic quit
190Stop refreshing the screen. 188Exit
 189.Nm .
 190.Pq This may be abbreviated to Ic q .
191.It Oo Ic start Oc Oo Ar number Oc 191.It Oo Ic start Oc Oo Ar number Oc
192Start (continue) refreshing the screen. 192Start (continue) refreshing the screen.
193If a second, numeric, argument is provided it is interpreted as a 193If a second, numeric, argument is provided it is interpreted as a
194refresh interval in seconds. 194refresh interval in seconds.
195Supplying only a number will set the refresh interval to this 195Supplying only a number will set the refresh interval to this
196value. 196value.
197.It Ic quit 197.It Ic stop
198Exit 198Stop refreshing the screen.
199.Nm . 
200(This may be abbreviated to 
201.Ic q . ) 
202.El 199.El
203.Pp 200.Pp
204The available displays are: 201The available displays are:
205.Bl -tag -width Ic 202.Bl -tag -width Ic
206.It Ic all 203.It Ic all
207Cycle through all displays automatically. 204Cycle through all displays automatically.
208At each display, wait some 205At each display, wait some
209refresh-turns, then switch to the next display. 206refresh-turns, then switch to the next display.
210Duration of one refresh-turn is adjustable with the 207Duration of one refresh-turn is adjustable with the
211.Fl w 208.Fl w
212option, number of refresh-turns can be changed with the 209option, number of refresh-turns can be changed with the
213.Fl t 210.Fl t
214option. 211option.
@@ -216,97 +213,110 @@ option. @@ -216,97 +213,110 @@ option.
216Display, in the lower window, statistics about the file system buffers. 213Display, in the lower window, statistics about the file system buffers.
217Statistics for each file system that has active buffers include the number 214Statistics for each file system that has active buffers include the number
218of buffers for that file system, the number of active kilobytes in those 215of buffers for that file system, the number of active kilobytes in those
219buffers and the total size of the buffers for that file system. 216buffers and the total size of the buffers for that file system.
220.It Ic df 217.It Ic df
221Lists disk usage statistics for all filesystems, 218Lists disk usage statistics for all filesystems,
222including the available free space as well as a bar 219including the available free space as well as a bar
223graph indicating the used capacity. 220graph indicating the used capacity.
224.Pp 221.Pp
225The following commands are specific to the 222The following commands are specific to the
226.Ic df 223.Ic df
227display: 224display:
228.Pp 225.Pp
229.Bl -tag -width Fl -compact 226.Bl -tag -width Fl
230.It Cm all 227.It Cm all
231Displays information for all filesystems, including 228Displays information for all filesystems, including
232kernfs, procfs and null-mounts. 229kernfs, procfs and null-mounts.
233.It Cm some 230.It Cm some
234Suppress information about procfs, kernfs and null-mounts (default). 231Suppress information about procfs, kernfs and null-mounts (default).
235.El 232.El
236.It Ic ifstat 233.It Ic ifstat
237Display the network traffic going through active interfaces on the 234Display the network traffic going through active interfaces on the
238system. 235system.
239Idle interfaces will not be displayed until they receive some 236Idle interfaces will not be displayed until they receive some
240traffic. 237traffic.
241.Pp 238.Pp
242For each interface being displayed, the current, peak and total 239For each interface being displayed, the current, peak and total
243statistics are displayed for incoming and outgoing traffic. 240statistics are displayed for incoming and outgoing traffic.
244By default, 241By default,
245the 242the
246.Ic ifstat 243.Ic ifstat
247display will automatically scale the units being used so that they are 244display will automatically scale the units being used so that they are
248in a human-readable format. 245in a human-readable format.
249The scaling units used for the current and 246The scaling units used for the current and
250peak 247peak
251traffic columns can be altered by the 248traffic columns can be altered by the
252.Ic scale 249.Ic scale
253command. 250command.
254.Bl -tag -width ".Cm scale Op Ar units" 251.Bl -tag -width Cm
255.It Cm scale Op Ar units 252.It Cm scale Op Ar units
256Modify the scale used to display the current and peak traffic over all 253Modify the scale used to display the current and peak traffic over all
257interfaces. 254interfaces.
258The following units are recognised: kbit, kbyte, mbit, 255The following units are recognised:
259mbyte, gbit, gbyte and auto. 256.Ic kbit , kbyte , mbit , mbyte , gbit , gbyte
 257and
 258.Ic auto .
260.It Cm pps 259.It Cm pps
261Show statistics in packets per second instead of bytes/bits per second. 260Show statistics in packets per second instead of bytes or bits per second.
262A subsequent call of 261A subsequent call of
263.Ic pps 262.Ic pps
264switches this mode off. 263switches this mode off.
265.It Cm match Op Ar patterns 264.It Cm match Op Ar pattern ...
266Display only interfaces that match pattern provided as an argument. 265Display only interfaces that match
267Patterns should be in shell syntax separated by whitespaces or commas. 266.Ar pattern\^ Ns s
 267provided as an argument.
 268Patterns should be in shell
 269.Xr glob 7
 270syntax separated by whitespaces or commas.
268If this command is called without arguments then all interfaces are displayed. 271If this command is called without arguments then all interfaces are displayed.
269For example: 272For example:
270.Pp 273.Pp
271.Dl match re0, bge1 274.Dl match re0, bge1
272.Pp 275.Pp
273This will display re0 and bge1 interfaces. 276This will display
 277.Li re0
 278and
 279.Li bge1
 280interfaces.
274.Pp 281.Pp
275.Dl match re*, bge*, lo0 282.Dl match re* bge* lo0
276.Pp 283.Pp
277This will display all 284This will display all
278.Ic re 285.Li re
279interfaces, all 286interfaces, all
280.Ic bge 287.Li bge
281interfaces and the loopback interface. 288interfaces and the loopback interface.
282.El 289.El
283.It Ic inet.icmp 290.It Ic inet.icmp
284Display ICMP statistics. 291Display ICMP statistics.
285.It Ic inet.ip 292.It Ic inet.ip
286Display IPv4 and UDP statistics. 293Display IPv4 and UDP statistics.
287.It Ic inet.tcp 294.It Ic inet.tcp
288Display TCP statistics. 295Display TCP statistics.
289.It Ic inet.tcpsyn 296.It Ic inet.tcpsyn
290Display statistics about the TCP ``syncache''. 297Display statistics about the TCP syncache.
291.It Ic inet6.ip6 298.It Ic inet6.ip6
292Display IPv6 statistics. 299Display IPv6 statistics.
293.It Ic iostat 300.It Ic iostat
294Display, in the lower window, statistics about processor use 301Display, in the lower window, statistics about processor use
295and disk throughput. 302and disk throughput.
296Statistics on processor use appear as bar graphs of the amount of 303Statistics on processor use appear as bar graphs of the amount of
297time executing in user mode (``user''), in user mode running low 304time executing in user mode,
298priority processes (``nice''), in system mode (``system''), and 305in user mode running low priority
299idle (``idle''). 306.Pq Dq nice
 307processes,
 308in system mode,
 309and idle.
300Statistics on disk throughput show, for each drive, kilobytes of 310Statistics on disk throughput show, for each drive, kilobytes of
301data transferred, number of disk transactions performed, and time 311data transferred, number of disk transactions performed, and time
302spent in disk accesses in milliseconds. 312spent in disk accesses in milliseconds.
303This information may be displayed as bar graphs or as rows of 313This information may be displayed as bar graphs or as rows of
304numbers which scroll downward. 314numbers which scroll downward.
305Bar graphs are shown by default; 315Bar graphs are shown by default;
306.Pp 316.Pp
307The following commands are specific to the 317The following commands are specific to the
308.Ic iostat 318.Ic iostat
309display; the minimum unambiguous prefix may be supplied. 319display; the minimum unambiguous prefix may be supplied.
310.Pp 320.Pp
311.Bl -tag -width Fl -compact 321.Bl -tag -width Fl -compact
312.It Cm numbers 322.It Cm numbers
@@ -319,109 +329,123 @@ Show the disk I/O statistics in bar grap @@ -319,109 +329,123 @@ Show the disk I/O statistics in bar grap
319Toggle the display of time in disk activity (the default is to 329Toggle the display of time in disk activity (the default is to
320not display time). 330not display time).
321.It Cm all 331.It Cm all
322Show the read and write statistics combined (default). 332Show the read and write statistics combined (default).
323.It Cm rw 333.It Cm rw
324Show the read and write statistics separately. 334Show the read and write statistics separately.
325.El 335.El
326.It Ic mbufs 336.It Ic mbufs
327Display, in the lower window, the number of mbufs allocated 337Display, in the lower window, the number of mbufs allocated
328for particular uses, i.e. data, socket structures, etc. 338for particular uses, i.e. data, socket structures, etc.
329.It Ic netstat 339.It Ic netstat
330Display, in the lower window, network connections. 340Display, in the lower window, network connections.
331By default, network servers awaiting requests are not displayed. 341By default, network servers awaiting requests are not displayed.
332Each address is displayed in the format ``host.port'', with each 342Each address is displayed in the format
 343.Ar host Ns Li . Ns Ar port ,
 344with each
333shown symbolically, when possible. 345shown symbolically, when possible.
334It is possible to have addresses displayed numerically, 346It is possible to have addresses displayed numerically,
335limit the display to a set of ports, hosts, and/or protocols 347limit the display to a set of ports, hosts, and/or protocols
336(the minimum unambiguous prefix may be supplied): 348.Pq the minimum unambiguous prefix may be supplied :
337.Pp 349.Pp
338.Bl -tag -width Ar -compact 350.Bl -tag -width Cm
339.It Cm all 351.It Cm all
340Toggle the displaying of server processes awaiting requests (this 352Toggle the displaying of server processes awaiting requests
341is the equivalent of the 353.Po
 354this is the equivalent of the
342.Fl a 355.Fl a
343flag to 356flag to
344.Ar netstat 1 ) . 357.Xr netstat 1
345.It Cm numbers 358.Pc .
346Display network addresses numerically. 
347.It Cm names 
348Display network addresses symbolically. 
349.It Ar protocol 
350Display only network connections using the indicated protocol 
351(currently either ``tcp'' or ``udp''). 
352.It Cm ignore Op Ar items 
353Do not display information about connections associated with 
354the specified hosts or ports. 
355Hosts and ports may be specified by name (``vangogh'', ``ftp''), 
356or numerically. 
357Host addresses use the Internet dot notation (``128.32.0.9''). 
358Multiple items may be specified with a single command by separating 
359them with spaces. 
360.It Cm display Op Ar items 359.It Cm display Op Ar items
361Display information about the connections associated with the 360Display information about the connections associated with the
362specified hosts or ports. 361specified hosts or ports.
 362Hosts and ports may be specified by name
 363.Pq Ql vangogh , ftp ,
 364or numerically.
 365Host addresses use the Internet dot notation
 366.Pq Ql 128.32.0.9 .
 367Multiple items may be specified with a single command by separating
 368them with spaces.
 369.It Cm ignore Op Ar items
 370Do not display information about connections associated with
 371the specified hosts or ports.
363As for 372As for
364.Ar ignore , 373.Ic display ,
365.Op Ar items 374the
 375.Ar items
366may be names or numbers. 376may be names or numbers.
367.It Cm show Op Ar ports\&|hosts 377.It Cm names
 378Display network addresses symbolically.
 379.It Cm numbers
 380Display network addresses numerically.
 381.It Ar protocol
 382Display only network connections using the indicated protocol
 383.Po
 384currently either
 385.Ic tcp
 386or
 387.Ic udp
 388.Pc .
 389.It Cm show Op Cm hosts No \&| Cm ports
368Show, on the command line, the currently selected protocols, 390Show, on the command line, the currently selected protocols,
369hosts, and ports. 391hosts, and ports.
370Hosts and ports which are being ignored are prefixed with a `!'. 392Hosts and ports which are being ignored are prefixed with a
 393.Ql \&! .
371If 394If
372.Ar ports 395.Cm ports
373or 396or
374.Ar hosts 397.Cm hosts
375is supplied as an argument to 398is supplied as an argument to
376.Cm show , 399.Cm show ,
377then only the requested information will be displayed. 400then only the requested information will be displayed.
378.It Cm reset 401.It Cm reset
379Reset the port, host, and protocol matching mechanisms to the default 402Reset the port, host, and protocol filters, show everything.
380(any protocol, port, or host). 
381.El 403.El
382.It Ic pigs 404.It Ic pigs
383Display, in the lower window, those processes which are getting the 405Display, in the lower window, those processes which are getting the
384largest portion of the processor (the default display). 406largest portion of the processor (the default display).
385When less than 100% of the 407When less than 100% of the
386processor is scheduled to user processes, the remaining time 408processor is scheduled to user processes, the remaining time
387is accounted to the ``idle'' process. 409is accounted to the idle process.
388.It Ic ps 410.It Ic ps
389Display, in the lower window, the same information provided 411Display, in the lower window, the same information provided
390by the command 412by the command
391.Xr ps 1 413.Xr ps 1
392with the flags 414with the flags
393.Fl aux . 415.Fl aux .
394.Pp 416.Pp
395The following command is specific to the 417The following command is specific to the
396.Ic ps 418.Ic ps
397display; the minimum unambiguous prefix may be supplied. 419display; the minimum unambiguous prefix may be supplied.
398.Pp 420.Pp
399.Bl -tag -width Fl -compact 421.Bl -tag -width Fl -compact
400.It Cm user Ar name 422.It Cm user Ar name
401Limit the list of processes displayed to those owned by user 423Limit the list of processes displayed to those owned by user
402.Ar name . 424.Ar name .
403If 425If
404.Ar name 426.Ar name
405is specified as `+', processes owned by any user are displayed (default). 427is specified as
 428.Ql \&+ ,
 429processes owned by any user are displayed (default).
406.El 430.El
407.It Ic swap 431.It Ic swap
408Show information about swap space usage on all the 432Show information about swap space usage on all the
409swap areas configured with 433swap areas configured with
410.Xr swapctl 8 . 434.Xr swapctl 8 .
411The first column is the device name of the partition. 435The first column is the device name of the partition.
412The next column is the total space available in the partition. 436The next column is the total space available in the partition.
413The 437The
414.Ar Used 438.Dq Used
415column indicates the total blocks used so far; 439column indicates the total blocks used so far;
416the graph shows the percentage of space in use on each partition. 440the graph shows the percentage of space in use on each partition.
417If there are more than one swap partition in use, 441If there are more than one swap partition in use,
418a total line is also shown. 442a total line is also shown.
419Areas known to the kernel, but not in use are shown as not available. 443Areas known to the kernel, but not in use are shown as not available.
420.It Ic syscall 444.It Ic syscall
421Show per system call statistics. 445Show per system call statistics.
422The display consists of several columns of system call name and counts. 446The display consists of several columns of system call name and counts.
423.Pp 447.Pp
424In order to stop entries moving around the screen too much, an infinite 448In order to stop entries moving around the screen too much, an infinite
425response filter is applied to the values before they are sorted. 449response filter is applied to the values before they are sorted.
426.Pp 450.Pp
427The following commands are specific to the 451The following commands are specific to the
@@ -576,27 +600,30 @@ Thus this figure is most interesting whe @@ -576,27 +600,30 @@ Thus this figure is most interesting whe
576a long time period, such as from boot time 600a long time period, such as from boot time
577(see below on getting such a display). 601(see below on getting such a display).
578.Pp 602.Pp
579To the left of the column of paging statistics is a breakdown 603To the left of the column of paging statistics is a breakdown
580of the interrupts being handled by the system. 604of the interrupts being handled by the system.
581At the top of the list is the total interrupts per second 605At the top of the list is the total interrupts per second
582over the time interval. 606over the time interval.
583The rest of the column breaks down the total on a device 607The rest of the column breaks down the total on a device
584by device basis. 608by device basis.
585Only devices that have interrupted at least once since boot time are shown. 609Only devices that have interrupted at least once since boot time are shown.
586.El 610.El
587.Pp 611.Pp
588Commands to switch between displays may be abbreviated to the 612Commands to switch between displays may be abbreviated to the
589minimum unambiguous prefix; for example, ``io'' for ``iostat''. 613minimum unambiguous prefix; for example,
 614.Ic io
 615for
 616.Ic iostat .
590Certain information may be discarded when the screen size is 617Certain information may be discarded when the screen size is
591insufficient for display. 618insufficient for display.
592For example, on a machine with 10 drives the 619For example, on a machine with 10 drives the
593.Ic iostat 620.Ic iostat
594bar graph displays only 3 drives on a 24 line terminal. 621bar graph displays only 3 drives on a 24 line terminal.
595When a bar graph would overflow the allotted screen space it is 622When a bar graph would overflow the allotted screen space it is
596truncated and the actual value is printed ``over top'' of the bar. 623truncated and the actual value is printed ``over top'' of the bar.
597.Pp 624.Pp
598The following commands are common to each display which shows 625The following commands are common to each display which shows
599information about disk drives. 626information about disk drives.
600These commands are used to select a set of drives to report on, 627These commands are used to select a set of drives to report on,
601should your system have more drives configured than can normally 628should your system have more drives configured than can normally
602be displayed on the screen. 629be displayed on the screen.
@@ -640,31 +667,33 @@ Reset running statistics to zero. @@ -640,31 +667,33 @@ Reset running statistics to zero.
640.Bl -tag -width /etc/networks -compact 667.Bl -tag -width /etc/networks -compact
641.It Pa /netbsd 668.It Pa /netbsd
642For the namelist. 669For the namelist.
643.It Pa /dev/kmem 670.It Pa /dev/kmem
644For information in main memory. 671For information in main memory.
645.It Pa /etc/hosts 672.It Pa /etc/hosts
646For host names. 673For host names.
647.It Pa /etc/networks 674.It Pa /etc/networks
648For network names. 675For network names.
649.It Pa /etc/services 676.It Pa /etc/services
650For port names. 677For port names.
651.El 678.El
652.Sh NOTES 679.Sh NOTES
653Much of the information that 680Most of the information shown by
654.Nm 681.Nm
655.Ic vmstat 682.Ic vmstat
656uses is obtained from 683is obtained from the
657.Cm struct vmmeter cnt . 684.Ql vm.vmmeter
 685.Xr sysctl 7
 686node.
658.Sh SEE ALSO 687.Sh SEE ALSO
659.Xr df 1 , 688.Xr df 1 ,
660.Xr netstat 1 , 689.Xr netstat 1 ,
661.Xr ps 1 , 690.Xr ps 1 ,
662.Xr top 1 , 691.Xr top 1 ,
663.Xr vmstat 1 , 692.Xr vmstat 1 ,
664.Xr iostat 8 , 693.Xr iostat 8 ,
665.Xr pstat 8 694.Xr pstat 8
666.Sh HISTORY 695.Sh HISTORY
667The 696The
668.Nm 697.Nm
669program appeared in 698program appeared in
670.Bx 4.3 . 699.Bx 4.3 .