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.\" 4. Neither the name of the University nor the names of its contributors 139b50d902SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 149b50d902SRodney W. Grimes.\" without specific prior written permission. 159b50d902SRodney W. Grimes.\" 169b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 179b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 189b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 199b50d902SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 209b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 219b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 229b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 239b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 249b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 259b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 269b50d902SRodney W. Grimes.\" SUCH DAMAGE. 279b50d902SRodney W. Grimes.\" 289b50d902SRodney W. Grimes.\" @(#)systat.1 8.2 (Berkeley) 12/30/93 29c3aac50fSPeter Wemm.\" $FreeBSD$ 309b50d902SRodney W. Grimes.\" 31*cc59e3a7SMark Johnston.Dd November 10, 2016 329b50d902SRodney W. Grimes.Dt SYSTAT 1 3362500372SRuslan Ermilov.Os 349b50d902SRodney W. Grimes.Sh NAME 359b50d902SRodney W. Grimes.Nm systat 36eaa9b5efSBrad Davis.Nd display system statistics 379b50d902SRodney W. Grimes.Sh SYNOPSIS 38d8793dfaSPhilippe Charnier.Nm 399b50d902SRodney W. Grimes.Op Fl display 406052df8eSAlexander V. Chernikov.Op Ar display-commands 419b50d902SRodney W. Grimes.Op Ar refresh-interval 429b50d902SRodney W. Grimes.Sh DESCRIPTION 43e8937ba0SPhilippe CharnierThe 44e8937ba0SPhilippe Charnier.Nm 45e8937ba0SPhilippe Charnierutility displays various system statistics in a screen oriented fashion 469b50d902SRodney W. Grimesusing the curses screen display library, 47436aece8SNik Clayton.Xr ncurses 3 . 489b50d902SRodney W. Grimes.Pp 499b50d902SRodney W. GrimesWhile 50d8793dfaSPhilippe Charnier.Nm 519b50d902SRodney W. Grimesis running the screen is usually divided into two windows (an exception 526a3e8b0aSRuslan Ermilovis the vmstat display which uses the entire screen). 536a3e8b0aSRuslan ErmilovThe 546a3e8b0aSRuslan Ermilovupper window depicts the current system load average. 556a3e8b0aSRuslan ErmilovThe 569b50d902SRodney W. Grimesinformation displayed in the lower window may vary, depending on 576a3e8b0aSRuslan Ermilovuser commands. 586a3e8b0aSRuslan ErmilovThe 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 646a3e8b0aSRuslan Ermilovin the lower window. 656a3e8b0aSRuslan ErmilovOther displays show swap space usage, disk 669b50d902SRodney W. Grimes.Tn I/O 679b50d902SRodney W. Grimesstatistics (a la 68270d3d75SMike Pritchard.Xr iostat 8 ) , 699b50d902SRodney W. Grimesvirtual memory statistics (a la 70270d3d75SMike Pritchard.Xr vmstat 8 ) , 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 796a3e8b0aSRuslan Ermilovinput line is passed to a per-display command interpreter. 806a3e8b0aSRuslan ErmilovThis 819b50d902SRodney W. Grimesallows each display to have certain display-specific commands. 829b50d902SRodney W. Grimes.Pp 839b50d902SRodney W. GrimesCommand line options: 849b50d902SRodney W. Grimes.Bl -tag -width "refresh_interval" 859b50d902SRodney W. Grimes.It Fl Ns Ar display 869b50d902SRodney W. GrimesThe 879b50d902SRodney W. Grimes.Fl 889b50d902SRodney W. Grimesflag expects 899b50d902SRodney W. Grimes.Ar display 909b50d902SRodney W. Grimesto be one of: 9103e00a72SGarrett Wollman.Ic icmp , 92f29d8c1aSDavid Malone.Ic icmp6 , 93b59ba7dfSPoul-Henning Kamp.Ic ifstat , 949b50d902SRodney W. Grimes.Ic iostat , 95630fa006SGarrett Wollman.Ic ip , 96f29d8c1aSDavid Malone.Ic ip6 , 97630fa006SGarrett Wollman.Ic netstat , 98630fa006SGarrett Wollman.Ic pigs , 991eaa5682SMichael Tuexen.Ic sctp , 100630fa006SGarrett Wollman.Ic swap , 101630fa006SGarrett Wollman.Ic tcp , 10227aa4769SMichael Reifenberger.Ic vmstat , 1039b50d902SRodney W. Grimesor 10427aa4769SMichael Reifenberger.Ic zarc , 1059b50d902SRodney W. GrimesThese displays can also be requested interactively (without the 1069b50d902SRodney W. Grimes.Dq Fl ) 1079b50d902SRodney W. Grimesand are described in 1089b50d902SRodney W. Grimesfull detail below. 1099b50d902SRodney W. Grimes.It Ar refresh-interval 1109b50d902SRodney W. GrimesThe 1119b50d902SRodney W. Grimes.Ar refresh-value 1129b50d902SRodney W. Grimesspecifies the screen refresh time interval in seconds. 1138b3daf89SAlexander V. ChernikovTime interval can be fractional. 1146052df8eSAlexander V. Chernikov.It Ar display-commands 1156052df8eSAlexander V. ChernikovA list of commands specific for this display. These commands can also 1166052df8eSAlexander V. Chernikovbe entered interactively and are described for each display separately 1176052df8eSAlexander V. Chernikovbelow. If the command of the display requires an argument or arguments, 1186052df8eSAlexander V. Chernikovit is possible to specify them as separate command line argument. To finish 1196052df8eSAlexander V. Chernikovdisplay commands it is possible to use double dash at the end 1206052df8eSAlexander V. Chernikovof the list. For example: 1216052df8eSAlexander V. Chernikov.Pp 1226052df8eSAlexander V. Chernikov.Dl Nm Fl ifstat Fl match Ar bge0,em1 Fl pps 1236052df8eSAlexander V. Chernikov.Pp 1246052df8eSAlexander V. ChernikovThis will display statistics of packets per second for network interfaces 1256052df8eSAlexander V. Chernikovnamed as bge0 and em1. 1266052df8eSAlexander V. Chernikov.Pp 1276052df8eSAlexander V. Chernikov.Dl Nm Fl iostat Fl numeric Fl - Ar 2.1 1286052df8eSAlexander V. Chernikov.Pp 1296052df8eSAlexander V. ChernikovThis will display all IO statistics in a numeric format and the information 1306052df8eSAlexander V. Chernikovwill be refreshed each 2.1 seconds. 1319b50d902SRodney W. Grimes.El 1329b50d902SRodney W. Grimes.Pp 1339b50d902SRodney W. GrimesCertain characters cause immediate action by 1348fe908efSRuslan Ermilov.Nm . 1359b50d902SRodney W. GrimesThese are 1369b50d902SRodney W. Grimes.Bl -tag -width Fl 1379b50d902SRodney W. Grimes.It Ic \&^L 1389b50d902SRodney W. GrimesRefresh the screen. 1399b50d902SRodney W. Grimes.It Ic \&^G 1409b50d902SRodney W. GrimesPrint the name of the current ``display'' being shown in 1419b50d902SRodney W. Grimesthe lower window and the refresh interval. 1429b50d902SRodney W. Grimes.It Ic \&: 1439b50d902SRodney W. GrimesMove the cursor to the command line and interpret the input 1446a3e8b0aSRuslan Ermilovline typed as a command. 1456a3e8b0aSRuslan ErmilovWhile entering a command the 1469b50d902SRodney W. Grimescurrent character erase, word erase, and line kill characters 1479b50d902SRodney W. Grimesmay be used. 1489b50d902SRodney W. Grimes.El 1499b50d902SRodney W. Grimes.Pp 1509b50d902SRodney W. GrimesThe following commands are interpreted by the ``global'' 1519b50d902SRodney W. Grimescommand interpreter. 1529b50d902SRodney W. Grimes.Bl -tag -width Fl 1539b50d902SRodney W. Grimes.It Ic help 1549b50d902SRodney W. GrimesPrint the names of the available displays on the command line. 1559b50d902SRodney W. Grimes.It Ic load 1569b50d902SRodney W. GrimesPrint the load average over the past 1, 5, and 15 minutes 1579b50d902SRodney W. Grimeson the command line. 1589b50d902SRodney W. Grimes.It Ic stop 1599b50d902SRodney W. GrimesStop refreshing the screen. 1609b50d902SRodney W. Grimes.It Xo 1619b50d902SRodney W. Grimes.Op Ic start 1629b50d902SRodney W. Grimes.Op Ar number 1639b50d902SRodney W. Grimes.Xc 1646a3e8b0aSRuslan ErmilovStart (continue) refreshing the screen. 1656a3e8b0aSRuslan ErmilovIf a second, numeric, 1669b50d902SRodney W. Grimesargument is provided it is interpreted as a refresh interval 1679b50d902SRodney W. Grimes(in seconds). 1689b50d902SRodney W. GrimesSupplying only a number will set the refresh interval to this 1699b50d902SRodney W. Grimesvalue. 1709b50d902SRodney W. Grimes.It Ic quit 1719b50d902SRodney W. GrimesExit 1728fe908efSRuslan Ermilov.Nm . 1739b50d902SRodney W. Grimes(This may be abbreviated to 1749b50d902SRodney W. Grimes.Ic q . ) 1759b50d902SRodney W. Grimes.El 1769b50d902SRodney W. Grimes.Pp 1779b50d902SRodney W. GrimesThe available displays are: 1789b50d902SRodney W. Grimes.Bl -tag -width Ic 1799b50d902SRodney W. Grimes.It Ic pigs 1809b50d902SRodney W. GrimesDisplay, in the lower window, those processes resident in main 1819b50d902SRodney W. Grimesmemory and getting the 1829b50d902SRodney W. Grimeslargest portion of the processor (the default display). 1839b50d902SRodney W. GrimesWhen less than 100% of the 1849b50d902SRodney W. Grimesprocessor is scheduled to user processes, the remaining time 1859b50d902SRodney W. Grimesis accounted to the ``idle'' process. 18603e00a72SGarrett Wollman.It Ic icmp 18703e00a72SGarrett WollmanDisplay, in the lower window, statistics about messages received and 18803e00a72SGarrett Wollmantransmitted by the Internet Control Message Protocol 18903e00a72SGarrett Wollman.Pq Dq Tn ICMP . 19003e00a72SGarrett WollmanThe left half of the screen displays information about received 19103e00a72SGarrett Wollmanpackets, and the right half displays information regarding transmitted 19203e00a72SGarrett Wollmanpackets. 19303e00a72SGarrett Wollman.Pp 19403e00a72SGarrett WollmanThe 19503e00a72SGarrett Wollman.Ic icmp 19603e00a72SGarrett Wollmandisplay understands two commands: 19703e00a72SGarrett Wollman.Ic mode 19803e00a72SGarrett Wollmanand 19903e00a72SGarrett Wollman.Ic reset . 20003e00a72SGarrett WollmanThe 20103e00a72SGarrett Wollman.Ic mode 20203e00a72SGarrett Wollmancommand is used to select one of four display modes, given as its argument: 20303e00a72SGarrett Wollman.Bl -tag -width absoluteXX -compact 20403e00a72SGarrett Wollman.It Ic rate : 20503e00a72SGarrett Wollmanshow the rate of change of each value in packets (the default) 20603e00a72SGarrett Wollmanper second 20703e00a72SGarrett Wollman.It Ic delta : 20803e00a72SGarrett Wollmanshow the rate of change of each value in packets per refresh interval 20903e00a72SGarrett Wollman.It Ic since : 21003e00a72SGarrett Wollmanshow the total change of each value since the display was last reset 21103e00a72SGarrett Wollman.It Ic absolute : 21203e00a72SGarrett Wollmanshow the absolute value of each statistic 21303e00a72SGarrett Wollman.El 21403e00a72SGarrett Wollman.Pp 21503e00a72SGarrett WollmanThe 21603e00a72SGarrett Wollman.Ic reset 21703e00a72SGarrett Wollmancommand resets the baseline for 21803e00a72SGarrett Wollman.Ic since 2196a3e8b0aSRuslan Ermilovmode. 2206a3e8b0aSRuslan ErmilovThe 22103e00a72SGarrett Wollman.Ic mode 22203e00a72SGarrett Wollmancommand with no argument will display the current mode in the command 22303e00a72SGarrett Wollmanline. 224f29d8c1aSDavid Malone.It Ic icmp6 225f29d8c1aSDavid MaloneThis display is like the 226f29d8c1aSDavid Malone.Ic icmp 227f29d8c1aSDavid Malonedisplay, 228f29d8c1aSDavid Malonebut displays statistics for IPv6 ICMP. 229630fa006SGarrett Wollman.It Ic ip 230630fa006SGarrett WollmanOtherwise identical to the 231630fa006SGarrett Wollman.Ic icmp 232630fa006SGarrett Wollmandisplay, except that it displays 233630fa006SGarrett Wollman.Tn IP 234630fa006SGarrett Wollmanand 235630fa006SGarrett Wollman.Tn UDP 236630fa006SGarrett Wollmanstatistics. 237f29d8c1aSDavid Malone.It Ic ip6 238f29d8c1aSDavid MaloneLike the 239f29d8c1aSDavid Malone.Ic ip 240f29d8c1aSDavid Malonedisplay, 241f29d8c1aSDavid Maloneexcept that it displays 242f29d8c1aSDavid Malone.Tn IPv6 243c2025a76SJoel Dahlstatistics. 244f29d8c1aSDavid MaloneIt does not display 245f29d8c1aSDavid Malone.Tn UDP statistics. 2461eaa5682SMichael Tuexen.It Ic sctp 2471eaa5682SMichael TuexenLike 2481eaa5682SMichael Tuexen.Ic icmp , 2491eaa5682SMichael Tuexenbut with 2501eaa5682SMichael Tuexen.Tn SCTP 2511eaa5682SMichael Tuexenstatistics. 252630fa006SGarrett Wollman.It Ic tcp 253630fa006SGarrett WollmanLike 254630fa006SGarrett Wollman.Ic icmp , 255630fa006SGarrett Wollmanbut with 256630fa006SGarrett Wollman.Tn TCP 257630fa006SGarrett Wollmanstatistics. 2589b50d902SRodney W. Grimes.It Ic iostat 2599b50d902SRodney W. GrimesDisplay, in the lower window, statistics about processor use 2606a3e8b0aSRuslan Ermilovand disk throughput. 2616a3e8b0aSRuslan ErmilovStatistics on processor use appear as 2629b50d902SRodney W. Grimesbar graphs of the amount of time executing in user mode (``user''), 2639b50d902SRodney W. Grimesin user mode running low priority processes (``nice''), in 2643544ae54SBruce Evanssystem mode (``system''), in interrupt mode (``interrupt''), 2656a3e8b0aSRuslan Ermilovand idle (``idle''). 2666a3e8b0aSRuslan ErmilovStatistics 2678d2fbde5SJustin T. Gibbson disk throughput show, for each drive, megabytes per second, 2688d2fbde5SJustin T. Gibbsaverage number of disk transactions per second, and 2696a3e8b0aSRuslan Ermilovaverage kilobytes of data per transaction. 2706a3e8b0aSRuslan ErmilovThis information may be 2716a3e8b0aSRuslan Ermilovdisplayed as bar graphs or as rows of numbers which scroll downward. 2726a3e8b0aSRuslan ErmilovBar 273d8793dfaSPhilippe Charniergraphs are shown by default. 2749b50d902SRodney W. Grimes.Pp 2759b50d902SRodney W. GrimesThe following commands are specific to the 2769b50d902SRodney W. Grimes.Ic iostat 2779b50d902SRodney W. Grimesdisplay; the minimum unambiguous prefix may be supplied. 2789b50d902SRodney W. Grimes.Pp 2799b50d902SRodney W. Grimes.Bl -tag -width Fl -compact 2809b50d902SRodney W. Grimes.It Cm numbers 2819b50d902SRodney W. GrimesShow the disk 2829b50d902SRodney W. Grimes.Tn I/O 2836a3e8b0aSRuslan Ermilovstatistics in numeric form. 2846a3e8b0aSRuslan ErmilovValues are 2859b50d902SRodney W. Grimesdisplayed in numeric columns which scroll downward. 2869b50d902SRodney W. Grimes.It Cm bars 2879b50d902SRodney W. GrimesShow the disk 2889b50d902SRodney W. Grimes.Tn I/O 2899b50d902SRodney W. Grimesstatistics in bar graph form (default). 2908d2fbde5SJustin T. Gibbs.It Cm kbpt 2914e86fcacSSheldon HearnToggle the display of kilobytes per transaction. 2924e86fcacSSheldon Hearn(the default is to 2938d2fbde5SJustin T. Gibbsnot display kilobytes per transaction). 2949b50d902SRodney W. Grimes.El 2959b50d902SRodney W. Grimes.It Ic swap 2969b50d902SRodney W. GrimesShow information about swap space usage on all the 2979b50d902SRodney W. Grimesswap areas compiled into the kernel. 2989b50d902SRodney W. GrimesThe first column is the device name of the partition. 2999b50d902SRodney W. GrimesThe next column is the total space available in the partition. 3009b50d902SRodney W. GrimesThe 3019b50d902SRodney W. Grimes.Ar Used 3029b50d902SRodney W. Grimescolumn indicates the total blocks used so far; 3039b50d902SRodney W. Grimesthe graph shows the percentage of space in use on each partition. 3049b50d902SRodney W. GrimesIf there are more than one swap partition in use, 3059b50d902SRodney W. Grimesa total line is also shown. 3069b50d902SRodney W. GrimesAreas known to the kernel, but not in use are shown as not available. 3079b50d902SRodney W. Grimes.It Ic vmstat 3089b50d902SRodney W. GrimesTake over the entire display and show a (rather crowded) compendium 3099b50d902SRodney W. Grimesof statistics related to virtual memory usage, process scheduling, 3106fb9b618SGiorgos Keramidasdevice interrupts, system name translation caching, disk 3119b50d902SRodney W. Grimes.Tn I/O 3129b50d902SRodney W. Grimesetc. 3139b50d902SRodney W. Grimes.Pp 3149b50d902SRodney W. GrimesThe upper left quadrant of the screen shows the number 3159b50d902SRodney W. Grimesof users logged in and the load average over the last one, five, 3169b50d902SRodney W. Grimesand fifteen minute intervals. 3179b50d902SRodney W. GrimesBelow this line are statistics on memory utilization. 3189b50d902SRodney W. GrimesThe first row of the table reports memory usage only among 3199b50d902SRodney W. Grimesactive processes, that is processes that have run in the previous 3209b50d902SRodney W. Grimestwenty seconds. 3219b50d902SRodney W. GrimesThe second row reports on memory usage of all processes. 322c01e1768SRuslan ErmilovThe first column reports on the number of kilobytes in physical pages 3239b50d902SRodney W. Grimesclaimed by processes. 324c01e1768SRuslan ErmilovThe second column reports the number of kilobytes in physical pages that 3259b50d902SRodney W. Grimesare devoted to read only text pages. 3269b50d902SRodney W. GrimesThe third and fourth columns report the same two figures for 327c01e1768SRuslan Ermilovvirtual pages, that is the number of kilobytes in pages that would be 3289b50d902SRodney W. Grimesneeded if all processes had all of their pages. 329c01e1768SRuslan ErmilovFinally the last column shows the number of kilobytes in physical pages 3309b50d902SRodney W. Grimeson the free list. 3319b50d902SRodney W. Grimes.Pp 332bdbbe98bSDavid E. O'BrienBelow the memory display is a list of the 3339b50d902SRodney W. Grimesaverage number of processes (over the last refresh interval) 3349b50d902SRodney W. Grimesthat are runnable (`r'), in page wait (`p'), 3359b50d902SRodney W. Grimesin disk wait other than paging (`d'), 3369b50d902SRodney W. Grimessleeping (`s'), and swapped out but desiring to run (`w'). 337a57a22d2SGuy HelmerThe row also shows the average number of context switches 338a57a22d2SGuy Helmer(`Csw'), traps (`Trp'; includes page faults), system calls (`Sys'), 339a57a22d2SGuy Helmerinterrupts (`Int'), network software interrupts (`Sof'), and page 340a57a22d2SGuy Helmerfaults (`Flt'). 341a57a22d2SGuy Helmer.Pp 342a57a22d2SGuy HelmerBelow the process queue length listing is a numerical listing and 3439b50d902SRodney W. Grimesa bar graph showing the amount of 3443544ae54SBruce Evanssystem (shown as `='), interrupt (shown as `+'), user (shown as `>'), 3459b50d902SRodney W. Grimesnice (shown as `-'), and idle time (shown as ` '). 3469b50d902SRodney W. Grimes.Pp 347bdbbe98bSDavid E. O'BrienBelow the process display are statistics on name translations. 3489b50d902SRodney W. GrimesIt lists the number of names translated in the previous interval, 3499b50d902SRodney W. Grimesthe number and percentage of the translations that were 3509b50d902SRodney W. Grimeshandled by the system wide name translation cache, and 3519b50d902SRodney W. Grimesthe number and percentage of the translations that were 3529b50d902SRodney W. Grimeshandled by the per process name translation cache. 3539b50d902SRodney W. Grimes.Pp 35471ae8101SBruce EvansTo the right of the name translations display are lines showing 35571ae8101SBruce Evansthe number of dirty buffers in the buffer cache (`dtbuf'), 35671ae8101SBruce Evansdesired maximum size of vnode cache (`desvn'), 35771ae8101SBruce Evansnumber of vnodes actually allocated (`numvn'), 35871ae8101SBruce Evansand 35971ae8101SBruce Evansnumber of allocated vnodes that are free (`frevn'). 36071ae8101SBruce Evans.Pp 361bdbbe98bSDavid E. O'BrienAt the bottom left is the disk usage display. 362d6234488SDavid E. O'BrienIt reports the number of 363a4a026b4SDag-Erling Smørgravkilobytes per transaction, transactions per second, megabytes 364a4a026b4SDag-Erling Smørgravper second and the percentage of the time the disk was busy averaged 365a4a026b4SDag-Erling Smørgravover the refresh period of the display (by default, five seconds). 3666a3e8b0aSRuslan ErmilovThe system keeps statistics on most every storage device. 3676a3e8b0aSRuslan ErmilovIn general, up 3686a3e8b0aSRuslan Ermilovto seven devices are displayed. 3696a3e8b0aSRuslan ErmilovThe devices displayed by default are the 3706a3e8b0aSRuslan Ermilovfirst devices in the kernel's device list. 3716a3e8b0aSRuslan ErmilovSee 372d6234488SDavid E. O'Brien.Xr devstat 3 373d6234488SDavid E. O'Brienand 374d6234488SDavid E. O'Brien.Xr devstat 9 375d6234488SDavid E. O'Brienfor details on the devstat system. 376bdbbe98bSDavid E. O'Brien.Pp 3779b50d902SRodney W. GrimesUnder the date in the upper right hand quadrant are statistics 3789b50d902SRodney W. Grimeson paging and swapping activity. 3799b50d902SRodney W. GrimesThe first two columns report the average number of pages 3809b50d902SRodney W. Grimesbrought in and out per second over the last refresh interval 3819b50d902SRodney W. Grimesdue to page faults and the paging daemon. 3829b50d902SRodney W. GrimesThe third and fourth columns report the average number of pages 3839b50d902SRodney W. Grimesbrought in and out per second over the last refresh interval 3849b50d902SRodney W. Grimesdue to swap requests initiated by the scheduler. 3859b50d902SRodney W. GrimesThe first row of the display shows the average 3869b50d902SRodney W. Grimesnumber of disk transfers per second over the last refresh interval; 3879b50d902SRodney W. Grimesthe second row of the display shows the average 3889b50d902SRodney W. Grimesnumber of pages transferred per second over the last refresh interval. 3899b50d902SRodney W. Grimes.Pp 390a57a22d2SGuy HelmerBelow the paging statistics is a column of lines regarding the virtual 39104984aacSBruce Evansmemory system. 39204984aacSBruce EvansThe first few lines describe, 39304984aacSBruce Evansin units (except as noted below) 39404984aacSBruce Evansof pages per second averaged over the sampling interval, 395a57a22d2SGuy Helmerpages copied on write (`cow'), 396a57a22d2SGuy Helmerpages zero filled on demand (`zfod'), 39704984aacSBruce Evanspages optimally zero filled on demand (`ozfod'), 39804984aacSBruce Evansthe ratio of the (average) ozfod / zfod as a percentage (`%ozfod'), 39904984aacSBruce Evanspages freed by the page daemon (`daefr'), 40004984aacSBruce Evanspages freed by exiting processes (`prcfr'), 401e76bdda0SBruce Evanstotal pages freed (`totfr'), 40204984aacSBruce Evanspages reactivated from the free list (`react'), 40304984aacSBruce Evansthe average number of 40404984aacSBruce Evanstimes per second that the page daemon was awakened (`pdwak'), 40504984aacSBruce Evanspages analyzed by the page daemon (`pdpgs'), 40604984aacSBruce Evansand 40704984aacSBruce Evansin-transit blocking page faults (`intrn'). 40804984aacSBruce EvansNote that the units are special for `%ozfod' and `pdwak'. 40904984aacSBruce EvansThe next few lines describe, 410c01e1768SRuslan Ermilovas amounts of memory in kilobytes, 411a57a22d2SGuy Helmerpages wired down (`wire'), 412a57a22d2SGuy Helmeractive pages (`act'), 413a57a22d2SGuy Helmerinactive pages (`inact'), 414*cc59e3a7SMark Johnstondirty pages queued for laundering (`laund'), 415a57a22d2SGuy Helmerand 41604984aacSBruce Evansfree pages (`free'). 41704984aacSBruce EvansNote that the values displayed are the current transient ones; 41804984aacSBruce Evansthey are not averages. 4199b50d902SRodney W. Grimes.Pp 42071ae8101SBruce EvansAt the bottom of this column is a line showing the 42171ae8101SBruce Evansamount of virtual memory, in kilobytes, mapped into the buffer cache (`buf'). 42271ae8101SBruce EvansThis statistic is not useful. 42371ae8101SBruce EvansIt exists only as a placeholder for the corresponding useful statistic 42471ae8101SBruce Evans(the amount of real memory used to cache disks). 42571ae8101SBruce EvansThe most important component of the latter (the amount of real memory 42671ae8101SBruce Evansused by the vm system to cache disks) is not available, 42771ae8101SBruce Evansbut can be guessed from the `inact' amount under some system loads. 4289b50d902SRodney W. Grimes.Pp 4299b50d902SRodney W. GrimesRunning down the right hand side of the display is a breakdown 4309b50d902SRodney W. Grimesof the interrupts being handled by the system. 4319b50d902SRodney W. GrimesAt the top of the list is the total interrupts per second 4329b50d902SRodney W. Grimesover the time interval. 4339b50d902SRodney W. GrimesThe rest of the column breaks down the total on a device 4349b50d902SRodney W. Grimesby device basis. 4359b50d902SRodney W. GrimesOnly devices that have interrupted at least once since boot time are shown. 4369b50d902SRodney W. Grimes.Pp 4379b50d902SRodney W. GrimesThe following commands are specific to the 4389b50d902SRodney W. Grimes.Ic vmstat 4399b50d902SRodney W. Grimesdisplay; the minimum unambiguous prefix may be supplied. 4409b50d902SRodney W. Grimes.Pp 4419b50d902SRodney W. Grimes.Bl -tag -width Ar -compact 4429b50d902SRodney W. Grimes.It Cm boot 4439b50d902SRodney W. GrimesDisplay cumulative statistics since the system was booted. 4449b50d902SRodney W. Grimes.It Cm run 4459b50d902SRodney W. GrimesDisplay statistics as a running total from the point this 4469b50d902SRodney W. Grimescommand is given. 4479b50d902SRodney W. Grimes.It Cm time 4489b50d902SRodney W. GrimesDisplay statistics averaged over the refresh interval (the default). 4499b50d902SRodney W. Grimes.It Cm zero 4509b50d902SRodney W. GrimesReset running statistics to zero. 4519b50d902SRodney W. Grimes.El 45227aa4769SMichael Reifenberger.It Ic zarc 45327aa4769SMichael Reifenbergerdisplay arc cache usage and hit/miss statistics. 4549b50d902SRodney W. Grimes.It Ic netstat 4556a3e8b0aSRuslan ErmilovDisplay, in the lower window, network connections. 4566a3e8b0aSRuslan ErmilovBy default, 4576a3e8b0aSRuslan Ermilovnetwork servers awaiting requests are not displayed. 4586a3e8b0aSRuslan ErmilovEach address 4599b50d902SRodney W. Grimesis displayed in the format ``host.port'', with each shown symbolically, 4606a3e8b0aSRuslan Ermilovwhen possible. 4616a3e8b0aSRuslan ErmilovIt is possible to have addresses displayed numerically, 4629b50d902SRodney W. Grimeslimit the display to a set of ports, hosts, and/or protocols 4639b50d902SRodney W. Grimes(the minimum unambiguous prefix may be supplied): 4649b50d902SRodney W. Grimes.Pp 4659b50d902SRodney W. Grimes.Bl -tag -width Ar -compact 4669b50d902SRodney W. Grimes.It Cm all 4679b50d902SRodney W. GrimesToggle the displaying of server processes awaiting requests (this 4689b50d902SRodney W. Grimesis the equivalent of the 4699b50d902SRodney W. Grimes.Fl a 4709b50d902SRodney W. Grimesflag to 47179431394SSteve Price.Xr netstat 1 ) . 4729b50d902SRodney W. Grimes.It Cm numbers 4739b50d902SRodney W. GrimesDisplay network addresses numerically. 4749b50d902SRodney W. Grimes.It Cm names 4759b50d902SRodney W. GrimesDisplay network addresses symbolically. 47679431394SSteve Price.It Cm proto Ar protocol 47779431394SSteve PriceDisplay only network connections using the indicated 47879431394SSteve Price.Ar protocol . 47979431394SSteve PriceSupported protocols are ``tcp'', ``udp'', and ``all''. 4809b50d902SRodney W. Grimes.It Cm ignore Op Ar items 4819b50d902SRodney W. GrimesDo not display information about connections associated with 4826a3e8b0aSRuslan Ermilovthe specified hosts or ports. 4836a3e8b0aSRuslan ErmilovHosts and ports may be specified 4846a3e8b0aSRuslan Ermilovby name (``vangogh'', ``ftp''), or numerically. 4856a3e8b0aSRuslan ErmilovHost addresses 4866a3e8b0aSRuslan Ermilovuse the Internet dot notation (``128.32.0.9''). 4876a3e8b0aSRuslan ErmilovMultiple items 4889b50d902SRodney W. Grimesmay be specified with a single command by separating them with 4899b50d902SRodney W. Grimesspaces. 4909b50d902SRodney W. Grimes.It Cm display Op Ar items 4919b50d902SRodney W. GrimesDisplay information about the connections associated with the 4926a3e8b0aSRuslan Ermilovspecified hosts or ports. 4936a3e8b0aSRuslan ErmilovAs for 4949b50d902SRodney W. Grimes.Ar ignore , 4959b50d902SRodney W. Grimes.Op Ar items 4969b50d902SRodney W. Grimesmay be names or numbers. 4979b50d902SRodney W. Grimes.It Cm show Op Ar ports\&|hosts 4989b50d902SRodney W. GrimesShow, on the command line, the currently selected protocols, 4996a3e8b0aSRuslan Ermilovhosts, and ports. 5006a3e8b0aSRuslan ErmilovHosts and ports which are being ignored 5016a3e8b0aSRuslan Ermilovare prefixed with a `!'. 5026a3e8b0aSRuslan ErmilovIf 5039b50d902SRodney W. Grimes.Ar ports 5049b50d902SRodney W. Grimesor 5059b50d902SRodney W. Grimes.Ar hosts 5069b50d902SRodney W. Grimesis supplied as an argument to 5079b50d902SRodney W. Grimes.Cm show , 5089b50d902SRodney W. Grimesthen only the requested information will be displayed. 5099b50d902SRodney W. Grimes.It Cm reset 5109b50d902SRodney W. GrimesReset the port, host, and protocol matching mechanisms to the default 5119b50d902SRodney W. Grimes(any protocol, port, or host). 5129b50d902SRodney W. Grimes.El 513b59ba7dfSPoul-Henning Kamp.It Ic ifstat 514b59ba7dfSPoul-Henning KampDisplay the network traffic going through active interfaces on the 5156a3e8b0aSRuslan Ermilovsystem. 5166a3e8b0aSRuslan ErmilovIdle interfaces will not be displayed until they receive some 517b59ba7dfSPoul-Henning Kamptraffic. 518b59ba7dfSPoul-Henning Kamp.Pp 519b59ba7dfSPoul-Henning KampFor each interface being displayed, the current, peak and total 5206a3e8b0aSRuslan Ermilovstatistics are displayed for incoming and outgoing traffic. 5216a3e8b0aSRuslan ErmilovBy default, 522b59ba7dfSPoul-Henning Kampthe 523b59ba7dfSPoul-Henning Kamp.Ic ifstat 524b59ba7dfSPoul-Henning Kampdisplay will automatically scale the units being used so that they are 5256a3e8b0aSRuslan Ermilovin a human-readable format. 5266a3e8b0aSRuslan ErmilovThe scaling units used for the current and 527b59ba7dfSPoul-Henning Kamppeak 528b59ba7dfSPoul-Henning Kamptraffic columns can be altered by the 529b59ba7dfSPoul-Henning Kamp.Ic scale 530b59ba7dfSPoul-Henning Kampcommand. 531ace5be68SRuslan Ermilov.Bl -tag -width ".Cm scale Op Ar units" 532b59ba7dfSPoul-Henning Kamp.It Cm scale Op Ar units 533b59ba7dfSPoul-Henning KampModify the scale used to display the current and peak traffic over all 5346a3e8b0aSRuslan Ermilovinterfaces. 5356a3e8b0aSRuslan ErmilovThe following units are recognised: kbit, kbyte, mbit, 536b59ba7dfSPoul-Henning Kampmbyte, gbit, gbyte and auto. 537b0214723SAlexander V. Chernikov.It Cm pps 538b0214723SAlexander V. ChernikovShow statistics in packets per second instead of bytes/bits per second. 539b0214723SAlexander V. ChernikovA subsequent call of 540b0214723SAlexander V. Chernikov.Ic pps 541b0214723SAlexander V. Chernikovswitches this mode off. 542b0214723SAlexander V. Chernikov.It Cm match Op Ar patterns 543b0214723SAlexander V. ChernikovDisplay only interfaces that match pattern provided as an argument. 544b0214723SAlexander V. ChernikovPatterns should be in shell syntax separated by whitespaces or commas. 545b0214723SAlexander V. ChernikovIf this command is called without arguments then all interfaces are displayed. 546b0214723SAlexander V. ChernikovFor example: 547b0214723SAlexander V. Chernikov.Pp 548b0214723SAlexander V. Chernikov.Dl match em0, bge1 549b0214723SAlexander V. Chernikov.Pp 550b0214723SAlexander V. ChernikovThis will display em0 and bge1 interfaces. 551b0214723SAlexander V. Chernikov.Pp 552b0214723SAlexander V. Chernikov.Dl match em*, bge*, lo0 553b0214723SAlexander V. Chernikov.Pp 554b0214723SAlexander V. ChernikovThis will display all 555b0214723SAlexander V. Chernikov.Ic em 556b0214723SAlexander V. Chernikovinterfaces, all 557b0214723SAlexander V. Chernikov.Ic bge 558b0214723SAlexander V. Chernikovinterfaces and the loopback interface. 559b59ba7dfSPoul-Henning Kamp.El 5609b50d902SRodney W. Grimes.El 5619b50d902SRodney W. Grimes.Pp 5629b50d902SRodney W. GrimesCommands to switch between displays may be abbreviated to the 5639b50d902SRodney W. Grimesminimum unambiguous prefix; for example, ``io'' for ``iostat''. 5649b50d902SRodney W. GrimesCertain information may be discarded when the screen size is 5656a3e8b0aSRuslan Ermilovinsufficient for display. 5666a3e8b0aSRuslan ErmilovFor example, on a machine with 10 5679b50d902SRodney W. Grimesdrives the 5689b50d902SRodney W. Grimes.Ic iostat 5696a3e8b0aSRuslan Ermilovbar graph displays only 3 drives on a 24 line terminal. 5706a3e8b0aSRuslan ErmilovWhen 5719b50d902SRodney W. Grimesa bar graph would overflow the allotted screen space it is 5729b50d902SRodney W. Grimestruncated and the actual value is printed ``over top'' of the bar. 5739b50d902SRodney W. Grimes.Pp 5749b50d902SRodney W. GrimesThe following commands are common to each display which shows 5756a3e8b0aSRuslan Ermilovinformation about disk drives. 5766a3e8b0aSRuslan ErmilovThese commands are used to 5779b50d902SRodney W. Grimesselect a set of drives to report on, should your system have 5789b50d902SRodney W. Grimesmore drives configured than can normally be displayed on the 5799b50d902SRodney W. Grimesscreen. 5809b50d902SRodney W. Grimes.Pp 5819b88faecSRuslan Ermilov.Bl -tag -width Ar -compact 5829b50d902SRodney W. Grimes.It Cm ignore Op Ar drives 5836a3e8b0aSRuslan ErmilovDo not display information about the drives indicated. 5846a3e8b0aSRuslan ErmilovMultiple 5859b50d902SRodney W. Grimesdrives may be specified, separated by spaces. 5869b50d902SRodney W. Grimes.It Cm display Op Ar drives 5876a3e8b0aSRuslan ErmilovDisplay information about the drives indicated. 5886a3e8b0aSRuslan ErmilovMultiple drives 5899b50d902SRodney W. Grimesmay be specified, separated by spaces. 5908d2fbde5SJustin T. Gibbs.It Cm only Op Ar drives 5916a3e8b0aSRuslan ErmilovDisplay only the specified drives. 5926a3e8b0aSRuslan ErmilovMultiple drives may be specified, 5938d2fbde5SJustin T. Gibbsseparated by spaces. 5948d2fbde5SJustin T. Gibbs.It Cm drives 5958d2fbde5SJustin T. GibbsDisplay a list of available devices. 596d0353b83SRuslan Ermilov.It Cm match Xo 597d0353b83SRuslan Ermilov.Ar type , Ns Ar if , Ns Ar pass 598d0353b83SRuslan Ermilov.Op | Ar ... 599d0353b83SRuslan Ermilov.Xc 6006a3e8b0aSRuslan ErmilovDisplay devices matching the given pattern. 6016a3e8b0aSRuslan ErmilovThe basic matching 6028d2fbde5SJustin T. Gibbsexpressions are the same as those used in 6038d2fbde5SJustin T. Gibbs.Xr iostat 8 6046a3e8b0aSRuslan Ermilovwith one difference. 6056a3e8b0aSRuslan ErmilovInstead of specifying multiple 6068d2fbde5SJustin T. Gibbs.Fl t 60757bd0fc6SJens Schweikhardtarguments which are then ORed together, the user instead specifies multiple 608d0353b83SRuslan Ermilovmatching expressions joined by the pipe 609d0353b83SRuslan Ermilov.Pq Ql \&| 610d0353b83SRuslan Ermilovcharacter. 611d0353b83SRuslan ErmilovThe comma 6128d2fbde5SJustin T. Gibbsseparated arguments within each matching expression are ANDed together, and 6136a3e8b0aSRuslan Ermilovthen the pipe separated matching expressions are ORed together. 6146a3e8b0aSRuslan ErmilovAny 6158d2fbde5SJustin T. Gibbsdevice matching the combined expression will be displayed, if there is room 6166a3e8b0aSRuslan Ermilovto display it. 6176a3e8b0aSRuslan ErmilovFor example: 6188d2fbde5SJustin T. Gibbs.Pp 6198d2fbde5SJustin T. Gibbs.Dl match da,scsi | cd,ide 6208d2fbde5SJustin T. Gibbs.Pp 6218d2fbde5SJustin T. GibbsThis will display all SCSI Direct Access devices and all IDE CDROM devices. 6228d2fbde5SJustin T. Gibbs.Pp 6238d2fbde5SJustin T. Gibbs.Dl match da | sa | cd,pass 6248d2fbde5SJustin T. Gibbs.Pp 6258d2fbde5SJustin T. GibbsThis will display all Direct Access devices, all Sequential Access devices, 6268d2fbde5SJustin T. Gibbsand all passthrough devices that provide access to CDROM drives. 6279b50d902SRodney W. Grimes.El 6289b50d902SRodney W. Grimes.Sh FILES 6291063e126SJosef Karthauser.Bl -tag -width /boot/kernel/kernel -compact 6301063e126SJosef Karthauser.It Pa /boot/kernel/kernel 6319b50d902SRodney W. GrimesFor the namelist. 6329b50d902SRodney W. Grimes.It Pa /dev/kmem 6339b50d902SRodney W. GrimesFor information in main memory. 6349b50d902SRodney W. Grimes.It Pa /etc/hosts 6359b50d902SRodney W. GrimesFor host names. 6369b50d902SRodney W. Grimes.It Pa /etc/networks 6379b50d902SRodney W. GrimesFor network names. 6389b50d902SRodney W. Grimes.It Pa /etc/services 6399b50d902SRodney W. GrimesFor port names. 6409b50d902SRodney W. Grimes.El 6416c7216dfSRuslan Ermilov.Sh SEE ALSO 6426c7216dfSRuslan Ermilov.Xr netstat 1 , 6436c7216dfSRuslan Ermilov.Xr kvm 3 , 6446c7216dfSRuslan Ermilov.Xr icmp 4 , 6456c7216dfSRuslan Ermilov.Xr icmp6 4 , 6466c7216dfSRuslan Ermilov.Xr ip 4 , 6476c7216dfSRuslan Ermilov.Xr ip6 4 , 6486c7216dfSRuslan Ermilov.Xr tcp 4 , 6496c7216dfSRuslan Ermilov.Xr udp 4 , 65026d8ca83SGiorgos Keramidas.Xr gstat 8 , 6516c7216dfSRuslan Ermilov.Xr iostat 8 , 6526c7216dfSRuslan Ermilov.Xr vmstat 8 6539b50d902SRodney W. Grimes.Sh HISTORY 6549b50d902SRodney W. GrimesThe 655d8793dfaSPhilippe Charnier.Nm 6569b50d902SRodney W. Grimesprogram appeared in 6579b50d902SRodney W. Grimes.Bx 4.3 . 65803e00a72SGarrett WollmanThe 659630fa006SGarrett Wollman.Ic icmp , 660630fa006SGarrett Wollman.Ic ip , 661630fa006SGarrett Wollmanand 662630fa006SGarrett Wollman.Ic tcp 663630fa006SGarrett Wollmandisplays appeared in 66403e00a72SGarrett Wollman.Fx 3.0 ; 66503e00a72SGarrett Wollmanthe notion of having different display modes for the 666630fa006SGarrett Wollman.Tn ICMP , 6671c79dc84SJoseph Koshy.Tn IP , 668630fa006SGarrett Wollman.Tn TCP , 669630fa006SGarrett Wollmanand 670630fa006SGarrett Wollman.Tn UDP 67103e00a72SGarrett Wollmanstatistics was stolen from the 67203e00a72SGarrett Wollman.Fl C 67303e00a72SGarrett Wollmanoption to 67403e00a72SGarrett Wollman.Xr netstat 1 67503e00a72SGarrett Wollmanin Silicon Graphics' 67603e00a72SGarrett Wollman.Tn IRIX 67703e00a72SGarrett Wollmansystem. 6789b50d902SRodney W. Grimes.Sh BUGS 6799b50d902SRodney W. GrimesCertain displays presume a minimum of 80 characters per line. 6809b50d902SRodney W. GrimesThe 6819b50d902SRodney W. Grimes.Ic vmstat 6829b50d902SRodney W. Grimesdisplay looks out of place because it is (it was added in as 6839b50d902SRodney W. Grimesa separate display rather than created as a new program). 684