19b50d902SRodney W. Grimes.\" Copyright (c) 1985, 1990, 1993 29b50d902SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 39b50d902SRodney W. Grimes.\" 49b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 59b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions 69b50d902SRodney W. Grimes.\" are met: 79b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 89b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 99b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 109b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 119b50d902SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 129b50d902SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 139b50d902SRodney W. Grimes.\" must display the following acknowledgement: 149b50d902SRodney W. Grimes.\" This product includes software developed by the University of 159b50d902SRodney W. Grimes.\" California, Berkeley and its contributors. 169b50d902SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 179b50d902SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 189b50d902SRodney W. Grimes.\" without specific prior written permission. 199b50d902SRodney W. Grimes.\" 209b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 219b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 229b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 239b50d902SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 249b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 259b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 269b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 279b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 289b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 299b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 309b50d902SRodney W. Grimes.\" SUCH DAMAGE. 319b50d902SRodney W. Grimes.\" 329b50d902SRodney W. Grimes.\" @(#)systat.1 8.2 (Berkeley) 12/30/93 33c3aac50fSPeter Wemm.\" $FreeBSD$ 349b50d902SRodney W. Grimes.\" 3503e00a72SGarrett Wollman.Dd September 9, 1997 369b50d902SRodney W. Grimes.Dt SYSTAT 1 3762500372SRuslan Ermilov.Os 389b50d902SRodney W. Grimes.Sh NAME 399b50d902SRodney W. Grimes.Nm systat 409b50d902SRodney W. Grimes.Nd display system statistics on a crt 419b50d902SRodney W. Grimes.Sh SYNOPSIS 42d8793dfaSPhilippe Charnier.Nm 439b50d902SRodney W. Grimes.Op Fl display 449b50d902SRodney W. Grimes.Op Ar refresh-interval 459b50d902SRodney W. Grimes.Sh DESCRIPTION 46e8937ba0SPhilippe CharnierThe 47e8937ba0SPhilippe Charnier.Nm 48e8937ba0SPhilippe Charnierutility displays various system statistics in a screen oriented fashion 499b50d902SRodney W. Grimesusing the curses screen display library, 50436aece8SNik Clayton.Xr ncurses 3 . 519b50d902SRodney W. Grimes.Pp 529b50d902SRodney W. GrimesWhile 53d8793dfaSPhilippe Charnier.Nm 549b50d902SRodney W. Grimesis running the screen is usually divided into two windows (an exception 559b50d902SRodney W. Grimesis the vmstat display which uses the entire screen). The 569b50d902SRodney W. Grimesupper window depicts the current system load average. The 579b50d902SRodney W. Grimesinformation displayed in the lower window may vary, depending on 589b50d902SRodney W. Grimesuser commands. The last line on the screen is reserved for user 599b50d902SRodney W. Grimesinput and error messages. 609b50d902SRodney W. Grimes.Pp 619b50d902SRodney W. GrimesBy default 62d8793dfaSPhilippe Charnier.Nm 639b50d902SRodney W. Grimesdisplays the processes getting the largest percentage of the processor 649b50d902SRodney W. Grimesin the lower window. Other displays show swap space usage, disk 659b50d902SRodney W. Grimes.Tn I/O 669b50d902SRodney W. Grimesstatistics (a la 67270d3d75SMike Pritchard.Xr iostat 8 ) , 689b50d902SRodney W. Grimesvirtual memory statistics (a la 69270d3d75SMike Pritchard.Xr vmstat 8 ) , 7003e00a72SGarrett Wollmannetwork ``mbuf'' utilization, 71630fa006SGarrett Wollman.Tn TCP/IP 7203e00a72SGarrett Wollmanstatistics, 7303e00a72SGarrett Wollmanand network connections (a la 749b50d902SRodney W. Grimes.Xr netstat 1 ) . 759b50d902SRodney W. Grimes.Pp 769b50d902SRodney W. GrimesInput is interpreted at two different levels. 779b50d902SRodney W. GrimesA ``global'' command interpreter processes all keyboard input. 789b50d902SRodney W. GrimesIf this command interpreter fails to recognize a command, the 799b50d902SRodney W. Grimesinput line is passed to a per-display command interpreter. This 809b50d902SRodney W. Grimesallows each display to have certain display-specific commands. 819b50d902SRodney W. Grimes.Pp 829b50d902SRodney W. GrimesCommand line options: 839b50d902SRodney W. Grimes.Bl -tag -width "refresh_interval" 849b50d902SRodney W. Grimes.It Fl Ns Ar display 859b50d902SRodney W. GrimesThe 869b50d902SRodney W. Grimes.Fl 879b50d902SRodney W. Grimesflag expects 889b50d902SRodney W. Grimes.Ar display 899b50d902SRodney W. Grimesto be one of: 9003e00a72SGarrett Wollman.Ic icmp , 91f29d8c1aSDavid Malone.Ic icmp6 , 92b59ba7dfSPoul-Henning Kamp.Ic ifstat , 939b50d902SRodney W. Grimes.Ic iostat , 94630fa006SGarrett Wollman.Ic ip , 95f29d8c1aSDavid Malone.Ic ip6 , 969b50d902SRodney W. Grimes.Ic mbufs , 97630fa006SGarrett Wollman.Ic netstat , 98630fa006SGarrett Wollman.Ic pigs , 99630fa006SGarrett Wollman.Ic swap , 100630fa006SGarrett Wollman.Ic tcp , 1019b50d902SRodney W. Grimesor 102630fa006SGarrett Wollman.Ic vmstat . 1039b50d902SRodney W. GrimesThese displays can also be requested interactively (without the 1049b50d902SRodney W. Grimes.Dq Fl ) 1059b50d902SRodney W. Grimesand are described in 1069b50d902SRodney W. Grimesfull detail below. 1079b50d902SRodney W. Grimes.It Ar refresh-interval 1089b50d902SRodney W. GrimesThe 1099b50d902SRodney W. Grimes.Ar refresh-value 1109b50d902SRodney W. Grimesspecifies the screen refresh time interval in seconds. 1119b50d902SRodney W. Grimes.El 1129b50d902SRodney W. Grimes.Pp 1139b50d902SRodney W. GrimesCertain characters cause immediate action by 1148fe908efSRuslan Ermilov.Nm . 1159b50d902SRodney W. GrimesThese are 1169b50d902SRodney W. Grimes.Bl -tag -width Fl 1179b50d902SRodney W. Grimes.It Ic \&^L 1189b50d902SRodney W. GrimesRefresh the screen. 1199b50d902SRodney W. Grimes.It Ic \&^G 1209b50d902SRodney W. GrimesPrint the name of the current ``display'' being shown in 1219b50d902SRodney W. Grimesthe lower window and the refresh interval. 1229b50d902SRodney W. Grimes.It Ic \&: 1239b50d902SRodney W. GrimesMove the cursor to the command line and interpret the input 1249b50d902SRodney W. Grimesline typed as a command. While entering a command the 1259b50d902SRodney W. Grimescurrent character erase, word erase, and line kill characters 1269b50d902SRodney W. Grimesmay be used. 1279b50d902SRodney W. Grimes.El 1289b50d902SRodney W. Grimes.Pp 1299b50d902SRodney W. GrimesThe following commands are interpreted by the ``global'' 1309b50d902SRodney W. Grimescommand interpreter. 1319b50d902SRodney W. Grimes.Bl -tag -width Fl 1329b50d902SRodney W. Grimes.It Ic help 1339b50d902SRodney W. GrimesPrint the names of the available displays on the command line. 1349b50d902SRodney W. Grimes.It Ic load 1359b50d902SRodney W. GrimesPrint the load average over the past 1, 5, and 15 minutes 1369b50d902SRodney W. Grimeson the command line. 1379b50d902SRodney W. Grimes.It Ic stop 1389b50d902SRodney W. GrimesStop refreshing the screen. 1399b50d902SRodney W. Grimes.It Xo 1409b50d902SRodney W. Grimes.Op Ic start 1419b50d902SRodney W. Grimes.Op Ar number 1429b50d902SRodney W. Grimes.Xc 1439b50d902SRodney W. GrimesStart (continue) refreshing the screen. If a second, numeric, 1449b50d902SRodney W. Grimesargument is provided it is interpreted as a refresh interval 1459b50d902SRodney W. Grimes(in seconds). 1469b50d902SRodney W. GrimesSupplying only a number will set the refresh interval to this 1479b50d902SRodney W. Grimesvalue. 1489b50d902SRodney W. Grimes.It Ic quit 1499b50d902SRodney W. GrimesExit 1508fe908efSRuslan Ermilov.Nm . 1519b50d902SRodney W. Grimes(This may be abbreviated to 1529b50d902SRodney W. Grimes.Ic q . ) 1539b50d902SRodney W. Grimes.El 1549b50d902SRodney W. Grimes.Pp 1559b50d902SRodney W. GrimesThe available displays are: 1569b50d902SRodney W. Grimes.Bl -tag -width Ic 1579b50d902SRodney W. Grimes.It Ic pigs 1589b50d902SRodney W. GrimesDisplay, in the lower window, those processes resident in main 1599b50d902SRodney W. Grimesmemory and getting the 1609b50d902SRodney W. Grimeslargest portion of the processor (the default display). 1619b50d902SRodney W. GrimesWhen less than 100% of the 1629b50d902SRodney W. Grimesprocessor is scheduled to user processes, the remaining time 1639b50d902SRodney W. Grimesis accounted to the ``idle'' process. 16403e00a72SGarrett Wollman.It Ic icmp 16503e00a72SGarrett WollmanDisplay, in the lower window, statistics about messages received and 16603e00a72SGarrett Wollmantransmitted by the Internet Control Message Protocol 16703e00a72SGarrett Wollman.Pq Dq Tn ICMP . 16803e00a72SGarrett WollmanThe left half of the screen displays information about received 16903e00a72SGarrett Wollmanpackets, and the right half displays information regarding transmitted 17003e00a72SGarrett Wollmanpackets. 17103e00a72SGarrett Wollman.Pp 17203e00a72SGarrett WollmanThe 17303e00a72SGarrett Wollman.Ic icmp 17403e00a72SGarrett Wollmandisplay understands two commands: 17503e00a72SGarrett Wollman.Ic mode 17603e00a72SGarrett Wollmanand 17703e00a72SGarrett Wollman.Ic reset . 17803e00a72SGarrett WollmanThe 17903e00a72SGarrett Wollman.Ic mode 18003e00a72SGarrett Wollmancommand is used to select one of four display modes, given as its argument: 18103e00a72SGarrett Wollman.Bl -tag -width absoluteXX -compact 18203e00a72SGarrett Wollman.It Ic rate : 18303e00a72SGarrett Wollmanshow the rate of change of each value in packets (the default) 18403e00a72SGarrett Wollmanper second 18503e00a72SGarrett Wollman.It Ic delta : 18603e00a72SGarrett Wollmanshow the rate of change of each value in packets per refresh interval 18703e00a72SGarrett Wollman.It Ic since : 18803e00a72SGarrett Wollmanshow the total change of each value since the display was last reset 18903e00a72SGarrett Wollman.It Ic absolute : 19003e00a72SGarrett Wollmanshow the absolute value of each statistic 19103e00a72SGarrett Wollman.El 19203e00a72SGarrett Wollman.Pp 19303e00a72SGarrett WollmanThe 19403e00a72SGarrett Wollman.Ic reset 19503e00a72SGarrett Wollmancommand resets the baseline for 19603e00a72SGarrett Wollman.Ic since 19703e00a72SGarrett Wollmanmode. The 19803e00a72SGarrett Wollman.Ic mode 19903e00a72SGarrett Wollmancommand with no argument will display the current mode in the command 20003e00a72SGarrett Wollmanline. 201f29d8c1aSDavid Malone.It Ic icmp6 202f29d8c1aSDavid MaloneThis display is like the 203f29d8c1aSDavid Malone.Ic icmp 204f29d8c1aSDavid Malonedisplay, 205f29d8c1aSDavid Malonebut displays statistics for IPv6 ICMP. 206630fa006SGarrett Wollman.It Ic ip 207630fa006SGarrett WollmanOtherwise identical to the 208630fa006SGarrett Wollman.Ic icmp 209630fa006SGarrett Wollmandisplay, except that it displays 210630fa006SGarrett Wollman.Tn IP 211630fa006SGarrett Wollmanand 212630fa006SGarrett Wollman.Tn UDP 213630fa006SGarrett Wollmanstatistics. 214f29d8c1aSDavid Malone.It Ic ip6 215f29d8c1aSDavid MaloneLike the 216f29d8c1aSDavid Malone.Ic ip 217f29d8c1aSDavid Malonedisplay, 218f29d8c1aSDavid Maloneexcept that it displays 219f29d8c1aSDavid Malone.Tn IPv6 220f29d8c1aSDavid Malonestatics. 221f29d8c1aSDavid MaloneIt does not display 222f29d8c1aSDavid Malone.Tn UDP statistics. 223630fa006SGarrett Wollman.It Ic tcp 224630fa006SGarrett WollmanLike 225630fa006SGarrett Wollman.Ic icmp , 226630fa006SGarrett Wollmanbut with 227630fa006SGarrett Wollman.Tn TCP 228630fa006SGarrett Wollmanstatistics. 2299b50d902SRodney W. Grimes.It Ic iostat 2309b50d902SRodney W. GrimesDisplay, in the lower window, statistics about processor use 2319b50d902SRodney W. Grimesand disk throughput. Statistics on processor use appear as 2329b50d902SRodney W. Grimesbar graphs of the amount of time executing in user mode (``user''), 2339b50d902SRodney W. Grimesin user mode running low priority processes (``nice''), in 2343544ae54SBruce Evanssystem mode (``system''), in interrupt mode (``interrupt''), 2353544ae54SBruce Evansand idle (``idle''). Statistics 2368d2fbde5SJustin T. Gibbson disk throughput show, for each drive, megabytes per second, 2378d2fbde5SJustin T. Gibbsaverage number of disk transactions per second, and 2388d2fbde5SJustin T. Gibbsaverage kilobytes of data per transaction. This information may be 2398d2fbde5SJustin T. Gibbsdisplayed as bar graphs or as rows of numbers which scroll downward. Bar 240d8793dfaSPhilippe Charniergraphs are shown by default. 2419b50d902SRodney W. Grimes.Pp 2429b50d902SRodney W. GrimesThe following commands are specific to the 2439b50d902SRodney W. Grimes.Ic iostat 2449b50d902SRodney W. Grimesdisplay; the minimum unambiguous prefix may be supplied. 2459b50d902SRodney W. Grimes.Pp 2469b50d902SRodney W. Grimes.Bl -tag -width Fl -compact 2479b50d902SRodney W. Grimes.It Cm numbers 2489b50d902SRodney W. GrimesShow the disk 2499b50d902SRodney W. Grimes.Tn I/O 2509b50d902SRodney W. Grimesstatistics in numeric form. Values are 2519b50d902SRodney W. Grimesdisplayed in numeric columns which scroll downward. 2529b50d902SRodney W. Grimes.It Cm bars 2539b50d902SRodney W. GrimesShow the disk 2549b50d902SRodney W. Grimes.Tn I/O 2559b50d902SRodney W. Grimesstatistics in bar graph form (default). 2568d2fbde5SJustin T. Gibbs.It Cm kbpt 2574e86fcacSSheldon HearnToggle the display of kilobytes per transaction. 2584e86fcacSSheldon Hearn(the default is to 2598d2fbde5SJustin T. Gibbsnot display kilobytes per transaction). 2609b50d902SRodney W. Grimes.El 2619b50d902SRodney W. Grimes.It Ic swap 2629b50d902SRodney W. GrimesShow information about swap space usage on all the 2639b50d902SRodney W. Grimesswap areas compiled into the kernel. 2649b50d902SRodney W. GrimesThe first column is the device name of the partition. 2659b50d902SRodney W. GrimesThe next column is the total space available in the partition. 2669b50d902SRodney W. GrimesThe 2679b50d902SRodney W. Grimes.Ar Used 2689b50d902SRodney W. Grimescolumn indicates the total blocks used so far; 2699b50d902SRodney W. Grimesthe graph shows the percentage of space in use on each partition. 2709b50d902SRodney W. GrimesIf there are more than one swap partition in use, 2719b50d902SRodney W. Grimesa total line is also shown. 2729b50d902SRodney W. GrimesAreas known to the kernel, but not in use are shown as not available. 2739b50d902SRodney W. Grimes.It Ic mbufs 2749b50d902SRodney W. GrimesDisplay, in the lower window, the number of mbufs allocated 2759b50d902SRodney W. Grimesfor particular uses, i.e. data, socket structures, etc. 2769b50d902SRodney W. Grimes.It Ic vmstat 2779b50d902SRodney W. GrimesTake over the entire display and show a (rather crowded) compendium 2789b50d902SRodney W. Grimesof statistics related to virtual memory usage, process scheduling, 2799b50d902SRodney W. Grimesdevice interrupts, system name translation cacheing, disk 2809b50d902SRodney W. Grimes.Tn I/O 2819b50d902SRodney W. Grimesetc. 2829b50d902SRodney W. Grimes.Pp 2839b50d902SRodney W. GrimesThe upper left quadrant of the screen shows the number 2849b50d902SRodney W. Grimesof users logged in and the load average over the last one, five, 2859b50d902SRodney W. Grimesand fifteen minute intervals. 2869b50d902SRodney W. GrimesBelow this line are statistics on memory utilization. 2879b50d902SRodney W. GrimesThe first row of the table reports memory usage only among 2889b50d902SRodney W. Grimesactive processes, that is processes that have run in the previous 2899b50d902SRodney W. Grimestwenty seconds. 2909b50d902SRodney W. GrimesThe second row reports on memory usage of all processes. 2919b50d902SRodney W. GrimesThe first column reports on the number of physical pages 2929b50d902SRodney W. Grimesclaimed by processes. 2939b50d902SRodney W. GrimesThe second column reports the number of physical pages that 2949b50d902SRodney W. Grimesare devoted to read only text pages. 2959b50d902SRodney W. GrimesThe third and fourth columns report the same two figures for 2969b50d902SRodney W. Grimesvirtual pages, that is the number of pages that would be 2979b50d902SRodney W. Grimesneeded if all processes had all of their pages. 2989b50d902SRodney W. GrimesFinally the last column shows the number of physical pages 2999b50d902SRodney W. Grimeson the free list. 3009b50d902SRodney W. Grimes.Pp 301bdbbe98bSDavid E. O'BrienBelow the memory display is a list of the 3029b50d902SRodney W. Grimesaverage number of processes (over the last refresh interval) 3039b50d902SRodney W. Grimesthat are runnable (`r'), in page wait (`p'), 3049b50d902SRodney W. Grimesin disk wait other than paging (`d'), 3059b50d902SRodney W. Grimessleeping (`s'), and swapped out but desiring to run (`w'). 306a57a22d2SGuy HelmerThe row also shows the average number of context switches 307a57a22d2SGuy Helmer(`Csw'), traps (`Trp'; includes page faults), system calls (`Sys'), 308a57a22d2SGuy Helmerinterrupts (`Int'), network software interrupts (`Sof'), and page 309a57a22d2SGuy Helmerfaults (`Flt'). 310a57a22d2SGuy Helmer.Pp 311a57a22d2SGuy HelmerBelow the process queue length listing is a numerical listing and 3129b50d902SRodney W. Grimesa bar graph showing the amount of 3133544ae54SBruce Evanssystem (shown as `='), interrupt (shown as `+'), user (shown as `>'), 3149b50d902SRodney W. Grimesnice (shown as `-'), and idle time (shown as ` '). 3159b50d902SRodney W. Grimes.Pp 316bdbbe98bSDavid E. O'BrienBelow the process display are statistics on name translations. 3179b50d902SRodney W. GrimesIt lists the number of names translated in the previous interval, 3189b50d902SRodney W. Grimesthe number and percentage of the translations that were 3199b50d902SRodney W. Grimeshandled by the system wide name translation cache, and 3209b50d902SRodney W. Grimesthe number and percentage of the translations that were 3219b50d902SRodney W. Grimeshandled by the per process name translation cache. 3229b50d902SRodney W. Grimes.Pp 323bdbbe98bSDavid E. O'BrienAt the bottom left is the disk usage display. 324d6234488SDavid E. O'BrienIt reports the number of 325a4a026b4SDag-Erling Smørgravkilobytes per transaction, transactions per second, megabytes 326a4a026b4SDag-Erling Smørgravper second and the percentage of the time the disk was busy averaged 327a4a026b4SDag-Erling Smørgravover the refresh period of the display (by default, five seconds). 328d6234488SDavid E. O'BrienThe system keeps statistics on most every storage device. In general, up 329d6234488SDavid E. O'Briento seven devices are displayed. The devices displayed by default are the 330d6234488SDavid E. O'Brienfirst devices in the kernel's device list. See 331d6234488SDavid E. O'Brien.Xr devstat 3 332d6234488SDavid E. O'Brienand 333d6234488SDavid E. O'Brien.Xr devstat 9 334d6234488SDavid E. O'Brienfor details on the devstat system. 335bdbbe98bSDavid E. O'Brien.Pp 3369b50d902SRodney W. GrimesUnder the date in the upper right hand quadrant are statistics 3379b50d902SRodney W. Grimeson paging and swapping activity. 3389b50d902SRodney W. GrimesThe first two columns report the average number of pages 3399b50d902SRodney W. Grimesbrought in and out per second over the last refresh interval 3409b50d902SRodney W. Grimesdue to page faults and the paging daemon. 3419b50d902SRodney W. GrimesThe third and fourth columns report the average number of pages 3429b50d902SRodney W. Grimesbrought in and out per second over the last refresh interval 3439b50d902SRodney W. Grimesdue to swap requests initiated by the scheduler. 3449b50d902SRodney W. GrimesThe first row of the display shows the average 3459b50d902SRodney W. Grimesnumber of disk transfers per second over the last refresh interval; 3469b50d902SRodney W. Grimesthe second row of the display shows the average 3479b50d902SRodney W. Grimesnumber of pages transferred per second over the last refresh interval. 3489b50d902SRodney W. Grimes.Pp 349a57a22d2SGuy HelmerBelow the paging statistics is a column of lines regarding the virtual 350a57a22d2SGuy Helmermemory system which list the average number of 351a57a22d2SGuy Helmerpages copied on write (`cow'), 352a57a22d2SGuy Helmerpages zero filled on demand (`zfod'), 3538b4c04d3SMatthew Dillonslow (on-the-fly) zero fills percentage (`%slo-z'), 354a57a22d2SGuy Helmerpages wired down (`wire'), 355a57a22d2SGuy Helmeractive pages (`act'), 356a57a22d2SGuy Helmerinactive pages (`inact'), 357a57a22d2SGuy Helmerpages on the buffer cache queue (`cache'), 358a57a22d2SGuy Helmernumber of free pages (`free'), 359a57a22d2SGuy Helmerpages freed by the page daemon (`daefr'), 360a57a22d2SGuy Helmerpages freed by exiting processes (`prcfr'), 361a57a22d2SGuy Helmerpages reactivated from the free list (`react'), 362a57a22d2SGuy Helmertimes the page daemon was awakened (`pdwak'), 363a57a22d2SGuy Helmerpages analyzed by the page daemon (`pdpgs'), 364a57a22d2SGuy Helmerand 365a57a22d2SGuy Helmerintransit blocking page faults (`intrn') 3669b50d902SRodney W. Grimesper second over the refresh interval. 3679b50d902SRodney W. Grimes.Pp 368a57a22d2SGuy HelmerAt the bottom of this column are lines showing the 369a57a22d2SGuy Helmeramount of memory, in kilobytes, used for the buffer cache (`buf'), 370a4a026b4SDag-Erling Smørgravthe number of dirty buffers in the buffer cache (`dirtybuf'), 371a57a22d2SGuy Helmerdesired maximum size of vnode cache (`desiredvnodes') (mostly unused, 372a57a22d2SGuy Helmerexcept to size the name cache), 373a57a22d2SGuy Helmernumber of vnodes actually allocated (`numvnodes'), 374a57a22d2SGuy Helmerand 375a57a22d2SGuy Helmernumber of allocated vnodes that are free (`freevnodes'). 3769b50d902SRodney W. Grimes.Pp 3779b50d902SRodney W. GrimesRunning down the right hand side of the display is a breakdown 3789b50d902SRodney W. Grimesof the interrupts being handled by the system. 3799b50d902SRodney W. GrimesAt the top of the list is the total interrupts per second 3809b50d902SRodney W. Grimesover the time interval. 3819b50d902SRodney W. GrimesThe rest of the column breaks down the total on a device 3829b50d902SRodney W. Grimesby device basis. 3839b50d902SRodney W. GrimesOnly devices that have interrupted at least once since boot time are shown. 3849b50d902SRodney W. Grimes.Pp 3859b50d902SRodney W. GrimesThe following commands are specific to the 3869b50d902SRodney W. Grimes.Ic vmstat 3879b50d902SRodney W. Grimesdisplay; the minimum unambiguous prefix may be supplied. 3889b50d902SRodney W. Grimes.Pp 3899b50d902SRodney W. Grimes.Bl -tag -width Ar -compact 3909b50d902SRodney W. Grimes.It Cm boot 3919b50d902SRodney W. GrimesDisplay cumulative statistics since the system was booted. 3929b50d902SRodney W. Grimes.It Cm run 3939b50d902SRodney W. GrimesDisplay statistics as a running total from the point this 3949b50d902SRodney W. Grimescommand is given. 3959b50d902SRodney W. Grimes.It Cm time 3969b50d902SRodney W. GrimesDisplay statistics averaged over the refresh interval (the default). 3974ae16510SDavid E. O'Brien.It Cm want_fd 3984ae16510SDavid E. O'BrienToggle the display of fd devices in the disk usage display. 3999b50d902SRodney W. Grimes.It Cm zero 4009b50d902SRodney W. GrimesReset running statistics to zero. 4019b50d902SRodney W. Grimes.El 4029b50d902SRodney W. Grimes.It Ic netstat 4039b50d902SRodney W. GrimesDisplay, in the lower window, network connections. By default, 4049b50d902SRodney W. Grimesnetwork servers awaiting requests are not displayed. Each address 4059b50d902SRodney W. Grimesis displayed in the format ``host.port'', with each shown symbolically, 4069b50d902SRodney W. Grimeswhen possible. It is possible to have addresses displayed numerically, 4079b50d902SRodney W. Grimeslimit the display to a set of ports, hosts, and/or protocols 4089b50d902SRodney W. Grimes(the minimum unambiguous prefix may be supplied): 4099b50d902SRodney W. Grimes.Pp 4109b50d902SRodney W. Grimes.Bl -tag -width Ar -compact 4119b50d902SRodney W. Grimes.It Cm all 4129b50d902SRodney W. GrimesToggle the displaying of server processes awaiting requests (this 4139b50d902SRodney W. Grimesis the equivalent of the 4149b50d902SRodney W. Grimes.Fl a 4159b50d902SRodney W. Grimesflag to 41679431394SSteve Price.Xr netstat 1 ) . 4179b50d902SRodney W. Grimes.It Cm numbers 4189b50d902SRodney W. GrimesDisplay network addresses numerically. 4199b50d902SRodney W. Grimes.It Cm names 4209b50d902SRodney W. GrimesDisplay network addresses symbolically. 42179431394SSteve Price.It Cm proto Ar protocol 42279431394SSteve PriceDisplay only network connections using the indicated 42379431394SSteve Price.Ar protocol . 42479431394SSteve PriceSupported protocols are ``tcp'', ``udp'', and ``all''. 4259b50d902SRodney W. Grimes.It Cm ignore Op Ar items 4269b50d902SRodney W. GrimesDo not display information about connections associated with 4279b50d902SRodney W. Grimesthe specified hosts or ports. Hosts and ports may be specified 4289b50d902SRodney W. Grimesby name (``vangogh'', ``ftp''), or numerically. Host addresses 4299b50d902SRodney W. Grimesuse the Internet dot notation (``128.32.0.9''). Multiple items 4309b50d902SRodney W. Grimesmay be specified with a single command by separating them with 4319b50d902SRodney W. Grimesspaces. 4329b50d902SRodney W. Grimes.It Cm display Op Ar items 4339b50d902SRodney W. GrimesDisplay information about the connections associated with the 4349b50d902SRodney W. Grimesspecified hosts or ports. As for 4359b50d902SRodney W. Grimes.Ar ignore , 4369b50d902SRodney W. Grimes.Op Ar items 4379b50d902SRodney W. Grimesmay be names or numbers. 4389b50d902SRodney W. Grimes.It Cm show Op Ar ports\&|hosts 4399b50d902SRodney W. GrimesShow, on the command line, the currently selected protocols, 4409b50d902SRodney W. Grimeshosts, and ports. Hosts and ports which are being ignored 4419b50d902SRodney W. Grimesare prefixed with a `!'. If 4429b50d902SRodney W. Grimes.Ar ports 4439b50d902SRodney W. Grimesor 4449b50d902SRodney W. Grimes.Ar hosts 4459b50d902SRodney W. Grimesis supplied as an argument to 4469b50d902SRodney W. Grimes.Cm show , 4479b50d902SRodney W. Grimesthen only the requested information will be displayed. 4489b50d902SRodney W. Grimes.It Cm reset 4499b50d902SRodney W. GrimesReset the port, host, and protocol matching mechanisms to the default 4509b50d902SRodney W. Grimes(any protocol, port, or host). 4519b50d902SRodney W. Grimes.El 452b59ba7dfSPoul-Henning Kamp.It Ic ifstat 453b59ba7dfSPoul-Henning KampDisplay the network traffic going through active interfaces on the 454b59ba7dfSPoul-Henning Kampsystem. Idle interfaces will not be displayed until they receive some 455b59ba7dfSPoul-Henning Kamptraffic. 456b59ba7dfSPoul-Henning Kamp.Pp 457b59ba7dfSPoul-Henning KampFor each interface being displayed, the current, peak and total 458b59ba7dfSPoul-Henning Kampstatistics are displayed for incoming and outgoing traffic. By default, 459b59ba7dfSPoul-Henning Kampthe 460b59ba7dfSPoul-Henning Kamp.Ic ifstat 461b59ba7dfSPoul-Henning Kampdisplay will automatically scale the units being used so that they are 462b59ba7dfSPoul-Henning Kampin a human-readable format. The scaling units used for the current and 463b59ba7dfSPoul-Henning Kamppeak 464b59ba7dfSPoul-Henning Kamptraffic columns can be altered by the 465b59ba7dfSPoul-Henning Kamp.Ic scale 466b59ba7dfSPoul-Henning Kampcommand. 467ace5be68SRuslan Ermilov.Bl -tag -width ".Cm scale Op Ar units" 468b59ba7dfSPoul-Henning Kamp.It Cm scale Op Ar units 469b59ba7dfSPoul-Henning KampModify the scale used to display the current and peak traffic over all 470b59ba7dfSPoul-Henning Kampinterfaces. The following units are recognised: kbit, kbyte, mbit, 471b59ba7dfSPoul-Henning Kampmbyte, gbit, gbyte and auto. 472b59ba7dfSPoul-Henning Kamp.El 4739b50d902SRodney W. Grimes.El 4749b50d902SRodney W. Grimes.Pp 4759b50d902SRodney W. GrimesCommands to switch between displays may be abbreviated to the 4769b50d902SRodney W. Grimesminimum unambiguous prefix; for example, ``io'' for ``iostat''. 4779b50d902SRodney W. GrimesCertain information may be discarded when the screen size is 4789b50d902SRodney W. Grimesinsufficient for display. For example, on a machine with 10 4799b50d902SRodney W. Grimesdrives the 4809b50d902SRodney W. Grimes.Ic iostat 4819b50d902SRodney W. Grimesbar graph displays only 3 drives on a 24 line terminal. When 4829b50d902SRodney W. Grimesa bar graph would overflow the allotted screen space it is 4839b50d902SRodney W. Grimestruncated and the actual value is printed ``over top'' of the bar. 4849b50d902SRodney W. Grimes.Pp 4859b50d902SRodney W. GrimesThe following commands are common to each display which shows 4869b50d902SRodney W. Grimesinformation about disk drives. These commands are used to 4879b50d902SRodney W. Grimesselect a set of drives to report on, should your system have 4889b50d902SRodney W. Grimesmore drives configured than can normally be displayed on the 4899b50d902SRodney W. Grimesscreen. 4909b50d902SRodney W. Grimes.Pp 4919b88faecSRuslan Ermilov.Bl -tag -width Ar -compact 4929b50d902SRodney W. Grimes.It Cm ignore Op Ar drives 4939b50d902SRodney W. GrimesDo not display information about the drives indicated. Multiple 4949b50d902SRodney W. Grimesdrives may be specified, separated by spaces. 4959b50d902SRodney W. Grimes.It Cm display Op Ar drives 4969b50d902SRodney W. GrimesDisplay information about the drives indicated. Multiple drives 4979b50d902SRodney W. Grimesmay be specified, separated by spaces. 4988d2fbde5SJustin T. Gibbs.It Cm only Op Ar drives 4998d2fbde5SJustin T. GibbsDisplay only the specified drives. Multiple drives may be specified, 5008d2fbde5SJustin T. Gibbsseparated by spaces. 5018d2fbde5SJustin T. Gibbs.It Cm drives 5028d2fbde5SJustin T. GibbsDisplay a list of available devices. 503d0353b83SRuslan Ermilov.It Cm match Xo 504d0353b83SRuslan Ermilov.Ar type , Ns Ar if , Ns Ar pass 505d0353b83SRuslan Ermilov.Op | Ar ... 506d0353b83SRuslan Ermilov.Xc 50757bd0fc6SJens SchweikhardtDisplay devices matching the given pattern. The basic matching 5088d2fbde5SJustin T. Gibbsexpressions are the same as those used in 5098d2fbde5SJustin T. Gibbs.Xr iostat 8 5108d2fbde5SJustin T. Gibbswith one difference. Instead of specifying multiple 5118d2fbde5SJustin T. Gibbs.Fl t 51257bd0fc6SJens Schweikhardtarguments which are then ORed together, the user instead specifies multiple 513d0353b83SRuslan Ermilovmatching expressions joined by the pipe 514d0353b83SRuslan Ermilov.Pq Ql \&| 515d0353b83SRuslan Ermilovcharacter. 516d0353b83SRuslan ErmilovThe comma 5178d2fbde5SJustin T. Gibbsseparated arguments within each matching expression are ANDed together, and 5188d2fbde5SJustin T. Gibbsthen the pipe separated matching expressions are ORed together. Any 5198d2fbde5SJustin T. Gibbsdevice matching the combined expression will be displayed, if there is room 5208d2fbde5SJustin T. Gibbsto display it. For example: 5218d2fbde5SJustin T. Gibbs.Pp 5228d2fbde5SJustin T. Gibbs.Dl match da,scsi | cd,ide 5238d2fbde5SJustin T. Gibbs.Pp 5248d2fbde5SJustin T. GibbsThis will display all SCSI Direct Access devices and all IDE CDROM devices. 5258d2fbde5SJustin T. Gibbs.Pp 5268d2fbde5SJustin T. Gibbs.Dl match da | sa | cd,pass 5278d2fbde5SJustin T. Gibbs.Pp 5288d2fbde5SJustin T. GibbsThis will display all Direct Access devices, all Sequential Access devices, 5298d2fbde5SJustin T. Gibbsand all passthrough devices that provide access to CDROM drives. 5309b50d902SRodney W. Grimes.El 53103e00a72SGarrett Wollman.Sh SEE ALSO 53203e00a72SGarrett Wollman.Xr netstat 1 , 5332d45aed6SChris D. Faulhaber.Xr kvm 3 , 534bf5cbf35SWolfram Schneider.Xr icmp 4 , 535f29d8c1aSDavid Malone.Xr icmp6 4 , 536bf5cbf35SWolfram Schneider.Xr ip 4 , 537f29d8c1aSDavid Malone.Xr ip6 4 , 538630fa006SGarrett Wollman.Xr tcp 4 , 5395521ff5aSRuslan Ermilov.Xr udp 4 , 5405521ff5aSRuslan Ermilov.Xr iostat 8 , 5415521ff5aSRuslan Ermilov.Xr vmstat 8 5429b50d902SRodney W. Grimes.Sh FILES 5431063e126SJosef Karthauser.Bl -tag -width /boot/kernel/kernel -compact 5441063e126SJosef Karthauser.It Pa /boot/kernel/kernel 5459b50d902SRodney W. GrimesFor the namelist. 5469b50d902SRodney W. Grimes.It Pa /dev/kmem 5479b50d902SRodney W. GrimesFor information in main memory. 5489b50d902SRodney W. Grimes.It Pa /etc/hosts 5499b50d902SRodney W. GrimesFor host names. 5509b50d902SRodney W. Grimes.It Pa /etc/networks 5519b50d902SRodney W. GrimesFor network names. 5529b50d902SRodney W. Grimes.It Pa /etc/services 5539b50d902SRodney W. GrimesFor port names. 5549b50d902SRodney W. Grimes.El 5559b50d902SRodney W. Grimes.Sh HISTORY 5569b50d902SRodney W. GrimesThe 557d8793dfaSPhilippe Charnier.Nm 5589b50d902SRodney W. Grimesprogram appeared in 5599b50d902SRodney W. Grimes.Bx 4.3 . 56003e00a72SGarrett WollmanThe 561630fa006SGarrett Wollman.Ic icmp , 562630fa006SGarrett Wollman.Ic ip , 563630fa006SGarrett Wollmanand 564630fa006SGarrett Wollman.Ic tcp 565630fa006SGarrett Wollmandisplays appeared in 56603e00a72SGarrett Wollman.Fx 3.0 ; 56703e00a72SGarrett Wollmanthe notion of having different display modes for the 568630fa006SGarrett Wollman.Tn ICMP , 5691c79dc84SJoseph Koshy.Tn IP , 570630fa006SGarrett Wollman.Tn TCP , 571630fa006SGarrett Wollmanand 572630fa006SGarrett Wollman.Tn UDP 57303e00a72SGarrett Wollmanstatistics was stolen from the 57403e00a72SGarrett Wollman.Fl C 57503e00a72SGarrett Wollmanoption to 57603e00a72SGarrett Wollman.Xr netstat 1 57703e00a72SGarrett Wollmanin Silicon Graphics' 57803e00a72SGarrett Wollman.Tn IRIX 57903e00a72SGarrett Wollmansystem. 5809b50d902SRodney W. Grimes.Sh BUGS 5819b50d902SRodney W. GrimesCertain displays presume a minimum of 80 characters per line. 5829b50d902SRodney W. GrimesThe 5839b50d902SRodney W. Grimes.Ic vmstat 5849b50d902SRodney W. Grimesdisplay looks out of place because it is (it was added in as 5859b50d902SRodney W. Grimesa separate display rather than created as a new program). 586