[BACK]Return to systat.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / systat

Annotation of src/usr.bin/systat/systat.1, Revision 1.118

1.118   ! kn          1: .\"    $OpenBSD: systat.1,v 1.117 2020/04/23 07:57:27 mpi Exp $
1.2       deraadt     2: .\"    $NetBSD: systat.1,v 1.6 1996/05/10 23:16:39 thorpej Exp $
1.1       deraadt     3: .\"
                      4: .\" Copyright (c) 1985, 1990, 1993
                      5: .\"    The Regents of the University of California.  All rights reserved.
                      6: .\"
                      7: .\" Redistribution and use in source and binary forms, with or without
                      8: .\" modification, are permitted provided that the following conditions
                      9: .\" are met:
                     10: .\" 1. Redistributions of source code must retain the above copyright
                     11: .\"    notice, this list of conditions and the following disclaimer.
                     12: .\" 2. Redistributions in binary form must reproduce the above copyright
                     13: .\"    notice, this list of conditions and the following disclaimer in the
                     14: .\"    documentation and/or other materials provided with the distribution.
1.28      millert    15: .\" 3. Neither the name of the University nor the names of its contributors
1.1       deraadt    16: .\"    may be used to endorse or promote products derived from this software
                     17: .\"    without specific prior written permission.
                     18: .\"
                     19: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     20: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     21: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     22: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     23: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     24: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     25: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     26: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     27: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     28: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     29: .\" SUCH DAMAGE.
                     30: .\"
                     31: .\"    @(#)systat.1    8.2 (Berkeley) 12/30/93
                     32: .\"
1.118   ! kn         33: .Dd $Mdocdate: April 23 2020 $
1.1       deraadt    34: .Dt SYSTAT 1
1.12      aaron      35: .Os
1.1       deraadt    36: .Sh NAME
                     37: .Nm systat
1.41      jmc        38: .Nd display system statistics
1.1       deraadt    39: .Sh SYNOPSIS
                     40: .Nm systat
1.113     martijn    41: .Op Fl aBbhiNn
1.62      matthieu   42: .Op Fl d Ar count
                     43: .Op Fl s Ar delay
                     44: .Op Fl w Ar width
                     45: .Op Ar view
                     46: .Op Ar delay
1.1       deraadt    47: .Sh DESCRIPTION
1.13      aaron      48: .Nm
1.73      jmc        49: displays various system statistics in a screen-oriented fashion
                     50: using the
                     51: .Xr curses 3
                     52: screen display library.
1.1       deraadt    53: .Pp
                     54: While
1.13      aaron      55: .Nm
1.86      lum        56: is running, the screen is divided into different areas.
                     57: The top line displays the current number of users, the
                     58: three system load average figures over the last 1, 5, and
1.115     schwarze   59: 15 minute intervals, the host name, and the system time.
1.73      jmc        60: The bottom line of the screen is reserved for
                     61: user input and error messages.
                     62: The information displayed in the rest of the screen
                     63: comprises a
                     64: .Em view ,
                     65: and is the main interface for
1.76      jmc        66: displaying different types of system statistics.
1.73      jmc        67: The
                     68: .Ic vmstat
                     69: view is the default.
1.77      jmc        70: .Pp
                     71: Certain information may be discarded when the screen size is
                     72: insufficient for display.
                     73: For example, on a machine with 10 drives the
                     74: .Ic iostat
                     75: bar graph displays only 3 drives on a 24 line terminal.
1.76      jmc        76: .\".Pp
                     77: .\"Input is interpreted at two different levels.
                     78: .\"A
                     79: .\".Dq global
                     80: .\"command interpreter processes all keyboard input.
                     81: .\"If this command interpreter fails to recognize a command, the
                     82: .\"input line is passed to a per-display command interpreter.
                     83: .\"This allows each display to have certain display-specific commands.
1.1       deraadt    84: .Pp
1.16      aaron      85: The options are as follows:
1.62      matthieu   86: .Bl -tag -width Ds
1.64      jmc        87: .It Fl a
1.62      matthieu   88: Display all lines.
1.96      reyk       89: .It Fl B
                     90: Raw, non-interactive mode.
                     91: The default is to exit after two screen updates,
                     92: with statistics only ever displayed once.
                     93: Useful for views such as
                     94: .Ic cpu ,
                     95: where initial calculations are useless.
1.62      matthieu   96: .It Fl b
1.88      lum        97: Raw, non-interactive mode.
1.96      reyk       98: The default is to exit after one screen update,
                     99: with statistics displayed every update.
1.62      matthieu  100: .It Fl d Ar count
                    101: Exit after
                    102: .Ar count
                    103: screen updates.
1.113     martijn   104: .It Fl h
                    105: Human readable mode, where applicable.
1.62      matthieu  106: .It Fl i
                    107: Interactive mode.
1.81      sthen     108: .It Fl N
                    109: Resolve network addresses to names.
                    110: This is the opposite of the
                    111: .Fl n
                    112: option.
1.34      itojun    113: .It Fl n
1.73      jmc       114: Do not try to reverse map IP addresses.
1.81      sthen     115: This is the default.
1.62      matthieu  116: .It Fl s Ar delay
1.31      jmc       117: Specifies the screen refresh time interval in seconds.
1.62      matthieu  118: This option is overridden by the final
1.64      jmc       119: .Ar delay
1.73      jmc       120: argument, if given.
1.31      jmc       121: The default interval is 5 seconds.
1.62      matthieu  122: .It Fl w Ar width
1.94      okan      123: Specifies the maximum width of the output in raw, non-interactive mode.
1.62      matthieu  124: .It Ar view
1.1       deraadt   125: The
1.62      matthieu  126: .Ar view
1.2       deraadt   127: argument expects to be one of:
1.62      matthieu  128: .Ic vmstat ,
1.1       deraadt   129: .Ic pigs ,
1.62      matthieu  130: .Ic ifstat ,
1.1       deraadt   131: .Ic iostat ,
1.49      deraadt   132: .Ic sensors ,
1.1       deraadt   133: .Ic mbufs ,
1.62      matthieu  134: .Ic netstat ,
                    135: .Ic swap ,
                    136: .Ic states ,
                    137: .Ic rules ,
1.68      canacar   138: .Ic queues ,
1.71      canacar   139: .Ic pf ,
                    140: .Ic pool ,
1.102     dlg       141: .Ic pcache ,
1.71      canacar   142: .Ic malloc ,
1.80      jmc       143: .Ic buckets ,
                    144: .Ic nfsclient ,
1.96      reyk      145: .Ic nfsserver ,
1.105     krw       146: .Ic cpu ,
1.1       deraadt   147: or
1.105     krw       148: .Ic uvm .
1.2       deraadt   149: These displays can also be requested interactively and are described in
1.1       deraadt   150: full detail below.
1.62      matthieu  151: .Ar view
1.53      jmc       152: may be abbreviated to the minimum unambiguous prefix;
                    153: for example,
1.50      jmc       154: .Dq io
                    155: for
                    156: .Dq iostat .
1.62      matthieu  157: .It Ar delay
1.1       deraadt   158: The
1.62      matthieu  159: .Ar delay
1.73      jmc       160: argument specifies the screen refresh time interval in seconds.
                    161: This is provided for backwards compatibility, and overrides any
1.31      jmc       162: interval specified with the
1.73      jmc       163: .Fl s
1.2       deraadt   164: flag.
1.31      jmc       165: The default interval is 5 seconds.
1.1       deraadt   166: .El
                    167: .Pp
                    168: Certain characters cause immediate action by
1.61      jmc       169: .Nm .
1.63      sobrado   170: These are:
1.114     schwarze  171: .Bl -tag -width Ds
1.1       deraadt   172: .It Ic \&:
                    173: Move the cursor to the command line and interpret the input
1.16      aaron     174: line typed as a command.
                    175: While entering a command the
1.1       deraadt   176: current character erase, word erase, and line kill characters
                    177: may be used.
1.69      canacar   178: .It Ic o
                    179: Select the next ordering which sorts the rows according to a
1.70      jmc       180: combination of columns.
                    181: Available orderings depend on the view.
                    182: Not all views support orderings.
1.66      canacar   183: .It Ic p
                    184: Pause
                    185: .Nm .
1.59      jmc       186: .It Ic q
1.73      jmc       187: Quit
1.66      canacar   188: .Nm .
1.69      canacar   189: .It Ic r
                    190: Reverse the selected ordering if supported by the view.
1.91      mpf       191: .It Ic \&,
                    192: Print numbers with thousand separators, where applicable.
1.100     bentley   193: .It Ic ^A | Aq Ic Home
1.66      canacar   194: Jump to the beginning of the current view.
1.100     bentley   195: .It Ic ^B | Aq Ic right arrow
1.84      jmc       196: Select the previous view.
1.100     bentley   197: .It Ic ^E | Aq Ic End
1.66      canacar   198: Jump to the end of the current view.
1.100     bentley   199: .It Ic ^F | Aq Ic left arrow
1.66      canacar   200: Select the next view.
                    201: .It Ic ^G
                    202: Print the name of the current
1.73      jmc       203: view being shown and the refresh interval.
1.66      canacar   204: .It Ic ^L
                    205: Refresh the screen.
1.100     bentley   206: .It Ic ^N | Aq Ic down arrow
1.66      canacar   207: Scroll current view down by one line.
1.100     bentley   208: .It Ic ^P | Aq Ic up arrow
1.66      canacar   209: Scroll current view up by one line.
1.100     bentley   210: .It Ic ^V | Aq Ic Page Down
1.66      canacar   211: Scroll current view down by one page.
1.100     bentley   212: .It Ic Alt-V | Aq Ic Page Up
1.66      canacar   213: Scroll current view up by one page.
1.1       deraadt   214: .El
                    215: .Pp
1.13      aaron     216: The following commands are interpreted by the
                    217: .Dq global
1.1       deraadt   218: command interpreter.
1.114     schwarze  219: .Bl -tag -width Ds
1.1       deraadt   220: .It Ic help
1.73      jmc       221: Print the names of the available views on the command line.
1.113     martijn   222: .It Ic human
                    223: Toggle human readable mode, where applicable.
1.103     martijn   224: .It Ic order
                    225: Print the names of the available orderings on the command line.
1.52      jmc       226: .It Ic quit
1.73      jmc       227: Quit
1.61      jmc       228: .Nm .
1.52      jmc       229: (This may be abbreviated to
                    230: .Ic q . )
1.1       deraadt   231: .It Ic stop
                    232: Stop refreshing the screen.
                    233: .It Xo
                    234: .Op Ic start
                    235: .Op Ar number
                    236: .Xc
1.16      aaron     237: Start (continue) refreshing the screen.
                    238: If a second, numeric,
1.1       deraadt   239: argument is provided it is interpreted as a refresh interval
                    240: (in seconds).
                    241: Supplying only a number will set the refresh interval to this
                    242: value.
                    243: .El
                    244: .Pp
1.73      jmc       245: .Ar view
1.53      jmc       246: may be abbreviated to the minimum unambiguous prefix.
1.73      jmc       247: The available views are:
1.52      jmc       248: .Bl -tag -width "netstatXXX"
1.71      canacar   249: .It Ic buckets
                    250: Display kernel
                    251: .Xr malloc 9
                    252: bucket statistics similar to the output of
                    253: .Cm vmstat Fl m .
1.96      reyk      254: .It Ic cpu
                    255: Display information about the average usage of each CPU,
                    256: similar to the output provided by
                    257: .Xr top 1 .
1.52      jmc       258: .It Ic ifstat
1.73      jmc       259: Display interface statistics.
1.52      jmc       260: The
                    261: .Dq State
                    262: column has the format
                    263: .Sm off
                    264: .Xo
1.100     bentley   265: .Cm up | dn
                    266: .Bq : Cm U | D .
1.52      jmc       267: .Xc
                    268: .Sm on
                    269: .Sq up
                    270: and
                    271: .Sq dn
                    272: represent whether the interface is up or down.
                    273: .Sq U
                    274: and
                    275: .Sq D
                    276: represent whether the interface is connected or not;
                    277: in the case of
                    278: .Xr carp 4
                    279: interfaces, whether the interface is in master or backup state, respectively.
1.92      lum       280: .Pp
1.91      mpf       281: The character
                    282: .Ic B
                    283: changes the counter view between bytes and bits.
1.92      lum       284: Pressing
                    285: .Ic b
                    286: displays statistics as calculated from boot time.
                    287: .Ic r
                    288: changes the counters to show their totals as calculated
                    289: between display refreshes.
                    290: .Ic t
                    291: changes the counters to show the average per second over
                    292: the display refresh interval;
                    293: this is the default.
1.111     dlg       294: .Ic d
                    295: displays input and output queue drops.
                    296: .Ic e
                    297: displays input and output errors.
                    298: .Ic f
                    299: displays input and output queue drops plus errors.
                    300: This is the default view.
1.52      jmc       301: .It Ic iostat
1.73      jmc       302: Display statistics about disk throughput.
1.52      jmc       303: Statistics
1.109     jmc       304: on disk throughput show, for each drive, data transferred in bytes,
1.52      jmc       305: number of disk transactions performed, and time spent in disk accesses
1.56      otto      306: (in fractions of a second).
1.112     tedu      307: Pressing
                    308: .Ic b
                    309: displays statistics as calculated from boot time.
                    310: .Ic t
                    311: changes the counters to show the average per second over
                    312: the display refresh interval;
                    313: this is the default.
1.71      canacar   314: .It Ic malloc
                    315: Display kernel
                    316: .Xr malloc 9
                    317: type statistics similar to the output of
                    318: .Cm vmstat Fl m .
                    319: Available orderings are:
                    320: .Ic name ,
                    321: .Ic inuse ,
                    322: .Ic memuse ,
                    323: and
                    324: .Ic requests .
1.72      jmc       325: .It Ic mbufs
1.78      canacar   326: Display mbuf usage information from kernel pools
                    327: and mbuf cluster pool statistics of each network interface.
1.52      jmc       328: .It Ic netstat
1.73      jmc       329: Display network connections.
1.93      okan      330: Each address
                    331: is displayed numerically in the format
                    332: .Dq host:port .
1.52      jmc       333: By default, network servers awaiting requests are not displayed.
1.93      okan      334: It is also possible to have addresses displayed symbolically,
                    335: when possible, and limit the display to a set of protocols
                    336: (the minimum unambiguous prefix may be supplied):
                    337: .Bl -tag -width Ar
                    338: .It Cm all
                    339: Toggle the displaying of server processes awaiting requests (this
                    340: is the equivalent of the
                    341: .Fl a
                    342: flag to
                    343: .Xr netstat 1 ) .
                    344: .It Cm names
                    345: Display network addresses symbolically.
                    346: .It Cm numbers
                    347: Display network addresses numerically.
                    348: .It Cm reset
                    349: Reset matching mechanisms to the default.
1.76      jmc       350: .\".It Cm show Oo
1.100     bentley   351: .\".Ar protocols | ports | hosts
1.76      jmc       352: .\".Oc
                    353: .\"Show, on the command line, the currently selected protocols,
                    354: .\"hosts, and ports.
                    355: .\"Protocols, hosts and ports which are being ignored are prefixed with a
                    356: .\".Ql \&! .
                    357: .\"If an argument is supplied to
                    358: .\".Cm show ,
                    359: .\"then only the requested information will be displayed.
1.101     claudio   360: .It Cm tcp | udp | other
1.93      okan      361: Display only network connections using the indicated protocol.
                    362: .El
1.79      jasper    363: .It Ic nfsclient
1.80      jmc       364: Display statistics about NFS client activity.
1.84      jmc       365: Output resembles
1.79      jasper    366: .Cm nfsstat Fl c .
                    367: .It Ic nfsserver
1.80      jmc       368: Display statistics about NFS server activity.
1.84      jmc       369: Output resembles
1.79      jasper    370: .Cm nfsstat Fl s .
1.62      matthieu  371: .It Ic pf
1.64      jmc       372: Display filter information about
1.62      matthieu  373: .Xr pf 4 ,
                    374: similar to the output of
1.64      jmc       375: .Cm pfctl Fl s Cm info
1.62      matthieu  376: option.
1.1       deraadt   377: .It Ic pigs
1.73      jmc       378: Display those processes resident in main
1.1       deraadt   379: memory and getting the
1.73      jmc       380: largest portion of the processor.
1.1       deraadt   381: When less than 100% of the
                    382: processor is scheduled to user processes, the remaining time
1.13      aaron     383: is accounted to the
                    384: .Dq idle
                    385: process.
1.68      canacar   386: .It Ic pool
                    387: Display kernel
                    388: .Xr pool 9
                    389: statistics similar to the output of
                    390: .Cm vmstat Fl m .
1.69      canacar   391: Available orderings are:
1.75      canacar   392: .Ic name ,
                    393: .Ic requests ,
1.76      jmc       394: .Ic size ,
1.69      canacar   395: and
1.75      canacar   396: .Ic number of pages .
1.98      mpi       397: .Pp
                    398: By default only the statistics of active pools are displayed but pressing
                    399: .Ic A
                    400: changes the view to show all of them.
1.102     dlg       401: .It Ic pcache
                    402: Display kernel
                    403: .Xr pool 9
                    404: per CPU cache statistics.
1.104     martijn   405: Ordering is available on all columns.
1.62      matthieu  406: .It Ic queues
1.97      henning   407: Display statistics about the active queues,
                    408: similar to the output of
1.62      matthieu  409: .Cm pfctl Fl s Cm queue .
                    410: .It Ic rules
1.64      jmc       411: Display pf rules statistics, similar to the output of
1.62      matthieu  412: .Cm pfctl Fl s Cm rules .
1.52      jmc       413: .It Ic sensors
1.73      jmc       414: Display the current values of available hardware sensors,
1.52      jmc       415: in a format similar to that of
                    416: .Xr sysctl 8 .
1.62      matthieu  417: .It Ic states
1.64      jmc       418: Display pf states statistics, similar to the output of
1.62      matthieu  419: .Cm pfctl Fl s Cm states .
1.69      canacar   420: Available orderings are:
                    421: .Ic none ,
                    422: .Ic bytes ,
                    423: .Ic expiry ,
                    424: .Ic packets ,
                    425: .Ic age ,
                    426: .Ic source address ,
                    427: .Ic source port ,
                    428: .Ic destination address ,
                    429: .Ic destination port ,
                    430: .Ic rate ,
                    431: and
                    432: .Ic peak
                    433: columns.
1.1       deraadt   434: .It Ic swap
1.12      aaron     435: Show information about swap space usage on all the
1.1       deraadt   436: swap areas compiled into the kernel.
                    437: The first column is the device name of the partition.
                    438: The next column is the total space available in the partition.
1.12      aaron     439: The
1.1       deraadt   440: .Ar Used
                    441: column indicates the total blocks used so far;
                    442: the graph shows the percentage of space in use on each partition.
1.8       aaron     443: If there is more than one swap partition in use,
1.1       deraadt   444: a total line is also shown.
1.8       aaron     445: Areas known to the kernel but not in use are shown as not available.
1.1       deraadt   446: .It Ic vmstat
                    447: Take over the entire display and show a (rather crowded) compendium
                    448: of statistics related to virtual memory usage, process scheduling,
1.84      jmc       449: device interrupts, system name translation caching, disk I/O, etc.
1.73      jmc       450: This view is the default.
1.1       deraadt   451: .Pp
1.86      lum       452: Below the top line are statistics on memory utilization.
1.1       deraadt   453: The first row of the table reports memory usage only among
1.8       aaron     454: active processes, that is, processes that have run in the previous
1.1       deraadt   455: twenty seconds.
                    456: The second row reports on memory usage of all processes.
1.47      millert   457: The first column reports on the amount of physical memory
1.1       deraadt   458: claimed by processes.
1.29      jmc       459: The second column reports the same figure for
1.47      millert   460: virtual memory, that is, the amount of memory that would be
                    461: needed if all processes were resident at the same time.
                    462: Finally, the last column shows the amount of physical memory
1.1       deraadt   463: on the free list.
                    464: .Pp
1.5       flipk     465: Below the memory display is a list of the average number of processes
1.13      aaron     466: (over the last refresh interval) that are runnable
                    467: .Pq Sq r ,
                    468: in disk wait other than paging
                    469: .Pq Sq d ,
                    470: sleeping
                    471: .Pq Sq s ,
                    472: and swapped out but desiring to run
                    473: .Pq Sq w .
1.1       deraadt   474: Below the queue length listing is a numerical listing and
                    475: a bar graph showing the amount of
1.40      dlg       476: interrupt (shown as
1.100     bentley   477: .Ql | ) ,
1.110     bluhm     478: spinning (shown as
                    479: .Ql @ ) ,
1.16      aaron     480: system (shown as
                    481: .Ql = ) ,
1.110     bluhm     482: user plus nice (shown as
1.100     bentley   483: .Ql > ) ,
1.16      aaron     484: and idle time (shown as
1.29      jmc       485: .Ql \ \& ) .
1.1       deraadt   486: .Pp
1.12      aaron     487: To the right of the Proc display are statistics about
1.16      aaron     488: Context switches
                    489: .Pq Dq Csw ,
                    490: Traps
                    491: .Pq Dq Trp ,
                    492: Syscalls
                    493: .Pq Dq Sys ,
                    494: Interrupts
                    495: .Pq Dq Int ,
                    496: Soft interrupts
                    497: .Pq Dq Sof ,
                    498: and Faults
                    499: .Pq Dq Flt
1.7       deraadt   500: which have occurred during the last refresh interval.
1.5       flipk     501: .Pp
1.83      jmc       502: Below the CPU usage graph are statistics on name translations.
1.1       deraadt   503: It lists the number of names translated in the previous interval,
                    504: the number and percentage of the translations that were
                    505: handled by the system wide name translation cache, and
                    506: the number and percentage of the translations that were
                    507: handled by the per process name translation cache.
                    508: .Pp
1.5       flipk     509: At the bottom left is the disk usage display.
                    510: It reports the number of seeks, transfers, number
                    511: of kilobyte blocks transferred per second averaged over the
1.90      lum       512: refresh period of the display, and
1.5       flipk     513: the time spent in disk accesses.
                    514: .Pp
1.1       deraadt   515: Under the date in the upper right hand quadrant are statistics
                    516: on paging and swapping activity.
                    517: The first two columns report the average number of pages
                    518: brought in and out per second over the last refresh interval
                    519: due to page faults and the paging daemon.
                    520: The third and fourth columns report the average number of pages
                    521: brought in and out per second over the last refresh interval
                    522: due to swap requests initiated by the scheduler.
                    523: The first row of the display shows the average
1.8       aaron     524: number of disk transfers per second over the last refresh interval.
                    525: The second row of the display shows the average
1.1       deraadt   526: number of pages transferred per second over the last refresh interval.
                    527: .Pp
                    528: Running down the right hand side of the display is a breakdown
                    529: of the interrupts being handled by the system.
                    530: At the top of the list is the total interrupts per second
                    531: over the time interval.
                    532: The rest of the column breaks down the total on a device
                    533: by device basis.
                    534: Only devices that have interrupted at least once since boot time are shown.
1.83      jmc       535: .Pp
1.89      lum       536: Below the Interrupts display are
                    537: the average number of input and output packets per second
                    538: for all interfaces over the last refresh interval.
1.5       flipk     539: .Pp
                    540: Below the SWAPPING display and slightly to the left of the Interrupts
1.18      aaron     541: display is a list of virtual memory statistics.
                    542: The abbreviations are:
1.36      jmc       543: .Pp
1.38      niallo    544: .Bl -tag -compact -width "kmapentXX" -offset indent
1.21      deraadt   545: .It forks
                    546: process forks
                    547: .It fkppw
                    548: forks where parent waits
                    549: .It fksvm
                    550: forks where vmspace is shared
                    551: .It pwait
                    552: fault had to wait on a page
                    553: .It relck
                    554: fault relock called
                    555: .It rlkok
                    556: fault relock is successful
                    557: .It noram
                    558: faults out of ram
                    559: .It ndcpy
                    560: number of times fault clears "need copy"
                    561: .It fltcp
                    562: number of times fault promotes with copy
                    563: .It zfod
                    564: fault promotes with zerofill
1.5       flipk     565: .It cow
1.21      deraadt   566: number of times fault anon cow
                    567: .It fmin
                    568: min number of free pages
                    569: .It ftarg
                    570: target number of free pages
                    571: .It itarg
                    572: target number of inactive pages
                    573: .It wired
                    574: wired pages
1.25      deraadt   575: .It pdfre
1.21      deraadt   576: pages daemon freed since boot
                    577: .It pdscn
                    578: pages daemon scanned since boot
1.108     krw       579: .It pzidl
1.38      niallo    580: number of zeroed pages
1.108     krw       581: .It kmape
1.38      niallo    582: number of kernel map entries
1.5       flipk     583: .El
1.105     krw       584: .It Ic uvm
1.106     jmc       585: Display statistics relevant to the UVM subsystem.
1.105     krw       586: The statistics are divided into eight groups.
                    587: .Pp
1.106     jmc       588: .Bl -tag -compact -width "reserve_pagedaemon" -offset indent
                    589: .It Page Counters:
1.105     krw       590: .It npages
1.106     jmc       591: pages managed by UVM
1.105     krw       592: .It free
                    593: free pages
                    594: .It active
                    595: active pages
                    596: .It inactive
                    597: freed pages that may be wanted back
                    598: .It paging
                    599: pages in the process of being paged out
                    600: .It wired
                    601: wired pages
                    602: .It zeropages
                    603: zero'd pages
                    604: .It reserve_pagedaemon
                    605: pages reserved for pagedaemon
                    606: .It reserve_kernel
                    607: pages reserved for kernel.
                    608: .It vnodepages
                    609: pages used by vnode page cache
                    610: .It vtextpages
                    611: pages used by vtext vnodes
                    612: .Pp
1.106     jmc       613: .It Stats Counters:
1.105     krw       614: .It faults
                    615: page fault count
                    616: .It traps
                    617: trap count
                    618: .It intrs
                    619: interrupt count
                    620: .It swtch
                    621: context switch count
                    622: .It softs
                    623: software interrupt count
                    624: .It syscalls
                    625: system calls
                    626: .It pageins
                    627: pagein operation count
                    628: .It pgswapin
                    629: pages swapped in
                    630: .It pgswapout
                    631: pages swapped out
                    632: .It forks
                    633: forks.
                    634: .It forks_ppwait
                    635: forks where parent waits
                    636: .It forks_sharevm
                    637: forks where vmspace is shared
                    638: .It pga_zerohit
                    639: pagealloc found requested zero'd pages
                    640: .It pga_zeromiss
                    641: pagealloc failed to obtain zero'd pages
                    642: .Pp
1.106     jmc       643: .It Fault Counters:
1.105     krw       644: .It fltnoram
                    645: fault was out of ram
                    646: .It fltnoanon
                    647: fault was out of anons
                    648: .It fltnoamap
                    649: fault was out of amap chunks
                    650: .It fltpgwait
                    651: fault had to wait on a page
                    652: .It fltpgrele
                    653: fault found a released page
                    654: .It fltrelck
                    655: fault relock called
                    656: .It fltrelckok
                    657: fault relock was a success
                    658: .It fltanget
                    659: fault got anon page
                    660: .It fltanretry
                    661: fault retried an anon get
                    662: .It fltamcopy
                    663: fault cleared "needs copy"
                    664: .It fltnamap
                    665: fault mapped a neighbor anon page
                    666: .It fltnomap
                    667: fault mapped a neighbor obj page
                    668: .It fltlget
                    669: fault did a locked pgo_get
                    670: .It fltget
                    671: fault did an unlocked get
                    672: .It flt_anon
                    673: fault anon (case 1a)
                    674: .It flt_acow
                    675: fault anon cow (case 1b)
                    676: .It flt_obj
                    677: fault was on object page (2a)
                    678: .It flt_prcopy
                    679: fault promotes with copy (2b)
                    680: .It flt_przero
                    681: fault promotes with zerofill (2b)
                    682: .Pp
1.106     jmc       683: .It Pageout Params:
1.105     krw       684: .It freemin
                    685: minimum number of free pages
                    686: .It freetarg
                    687: target number of free pages
                    688: .It inactarg
                    689: target number of inactive pages
                    690: .It wiredmax
                    691: maximum number of wired pages
                    692: .It anonmin
                    693: mininumu threshold for anon pages
                    694: .It vtextmin
                    695: minimum threshold for vtext pages
                    696: .It vnodemin
                    697: minimum threshold for vnode pages
                    698: .It anonminpct
                    699: minimum percent anon pages
                    700: .It vtextminpct
                    701: minimum percent vtext pages
                    702: .It vnodeminpct
                    703: minimum percent vnode pages
                    704: .Pp
1.106     jmc       705: .It Swap Counters:
1.105     krw       706: .It nswapdev
                    707: configured swap devices
                    708: .It swpages
                    709: PAGE_SIZE'ed swap pages
                    710: .It swpginuse
                    711: swap pages in use
                    712: .It swpgonly
                    713: in use swap pages not in RAM
                    714: .It nswget
1.117     mpi       715: swap pages moved from disk to RAM
1.105     krw       716: .It nanon
                    717: total anon's
                    718: .Pp
1.106     jmc       719: .It Daemon Counters:
1.105     krw       720: .It pdwoke
                    721: times daemon woke up
                    722: .It pdrevs
                    723: times daemon rev'd clock hand
                    724: .It pdswout
                    725: times daemon called for swapout
                    726: .It pdfreed
                    727: pages daemon freed since boot
                    728: .It pdscans
                    729: pages daemon scanned since boot
                    730: .It pdanscan
                    731: anonymous pages scanned by daemon
                    732: .It pdobscan
                    733: object pages scanned by daemon
                    734: .It pdreact
                    735: pages daemon reactivated since boot
                    736: .It pdbusy
                    737: times daemon found a busy page
                    738: .It pdpageouts
                    739: times daemon started a pageout
                    740: .It  pdpending
                    741: times daemon got a pending pagout
                    742: .It pddeact
                    743: pages daemon deactivates
                    744: .Pp
1.106     jmc       745: .It Misc Counters:
1.105     krw       746: .It fpswtch
                    747: FPU context switches
                    748: .It kmapent
                    749: kernel map entries
                    750: .Pp
1.106     jmc       751: .It Constants:
1.105     krw       752: .It pagesize
                    753: size of a page, always a power of 2
                    754: .It pagemask
                    755: page mask
                    756: .It pageshift
                    757: page shift
1.106     jmc       758: .El
1.35      markus    759: .El
1.74      jmc       760: .\".Pp
                    761: .\"The following commands are specific to the
                    762: .\".Ic vmstat
                    763: .\"and
                    764: .\".Ic ifstat
                    765: .\"views; the minimum unambiguous prefix may be supplied.
                    766: .\".Pp
                    767: .\".Bl -tag -width Ds -compact
                    768: .\".It Cm boot
                    769: .\"Display cumulative statistics since the system was booted.
                    770: .\".It Cm run
                    771: .\"Display statistics as a running total from the point this
                    772: .\"command is given.
                    773: .\".It Cm time
                    774: .\"Display statistics averaged over the refresh interval (the default).
                    775: .\".It Cm zero
                    776: .\"Reset running statistics to zero.
                    777: .\".El
                    778: .\".Pp
                    779: .\"The following commands are common to each view which shows
                    780: .\"information about disk drives.
                    781: .\"These commands are used to select a set of drives to report on,
                    782: .\"should a system have more drives configured
                    783: .\"than can normally be displayed on the screen.
                    784: .\".Pp
                    785: .\".Bl -tag -width Tx -compact
                    786: .\".It Cm display Op Ar drives
                    787: .\"Display information about the drives indicated.
                    788: .\"Multiple drives may be specified, separated by spaces.
                    789: .\".It Cm ignore Op Ar drives
                    790: .\"Do not display information about the drives indicated.
                    791: .\"Multiple drives may be specified, separated by spaces.
                    792: .\".El
1.1       deraadt   793: .Sh FILES
1.99      schwarze  794: .Bl -tag -width "/etc/servicesXXX" -compact
1.1       deraadt   795: .It Pa /etc/hosts
1.73      jmc       796: Host names.
1.62      matthieu  797: .It Pa /etc/pf.conf
1.73      jmc       798: .Xr pf 4
                    799: configuration.
1.1       deraadt   800: .It Pa /etc/services
1.73      jmc       801: Port names.
1.1       deraadt   802: .El
1.15      aaron     803: .Sh SEE ALSO
1.85      jmc       804: .Xr fstat 1 ,
1.15      aaron     805: .Xr kill 1 ,
1.37      jmc       806: .Xr netstat 1 ,
1.79      jasper    807: .Xr nfsstat 1 ,
1.15      aaron     808: .Xr ps 1 ,
                    809: .Xr top 1 ,
1.37      jmc       810: .Xr iostat 8 ,
1.62      matthieu  811: .Xr pfctl 8 ,
1.37      jmc       812: .Xr pstat 8 ,
                    813: .Xr renice 8 ,
1.48      deanna    814: .Xr sysctl 8 ,
1.37      jmc       815: .Xr vmstat 8
1.1       deraadt   816: .Sh HISTORY
                    817: The
1.13      aaron     818: .Nm
1.73      jmc       819: program first appeared in
1.1       deraadt   820: .Bx 4.3 .
                    821: .Sh BUGS
                    822: Certain displays presume a minimum of 80 characters per line.
                    823: The
                    824: .Ic vmstat
                    825: display looks out of place because it is (it was added in as
                    826: a separate display rather than created as a new program).