[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.108

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