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. 12fbbd9655SWarner Losh.\" 3. 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.\" 28*e6013eb0SMateusz Piotrowski.Dd April 1, 2022 299b50d902SRodney W. Grimes.Dt SYSTAT 1 3062500372SRuslan Ermilov.Os 319b50d902SRodney W. Grimes.Sh NAME 329b50d902SRodney W. Grimes.Nm systat 33eaa9b5efSBrad Davis.Nd display system statistics 349b50d902SRodney W. Grimes.Sh SYNOPSIS 35d8793dfaSPhilippe Charnier.Nm 36e6f59be2SMateusz Piotrowski.Op Fl Ar display 376052df8eSAlexander V. Chernikov.Op Ar display-commands 389b50d902SRodney W. Grimes.Op Ar refresh-interval 399b50d902SRodney W. Grimes.Sh DESCRIPTION 40e8937ba0SPhilippe CharnierThe 41e8937ba0SPhilippe Charnier.Nm 42e8937ba0SPhilippe Charnierutility displays various system statistics in a screen oriented fashion 439b50d902SRodney W. Grimesusing the curses screen display library, 44436aece8SNik Clayton.Xr ncurses 3 . 459b50d902SRodney W. Grimes.Pp 469b50d902SRodney W. GrimesWhile 47d8793dfaSPhilippe Charnier.Nm 489b50d902SRodney W. Grimesis running the screen is usually divided into two windows (an exception 496a3e8b0aSRuslan Ermilovis the vmstat display which uses the entire screen). 506a3e8b0aSRuslan ErmilovThe 516a3e8b0aSRuslan Ermilovupper window depicts the current system load average. 526a3e8b0aSRuslan ErmilovThe 539b50d902SRodney W. Grimesinformation displayed in the lower window may vary, depending on 546a3e8b0aSRuslan Ermilovuser commands. 556a3e8b0aSRuslan ErmilovThe last line on the screen is reserved for user 569b50d902SRodney W. Grimesinput and error messages. 579b50d902SRodney W. Grimes.Pp 589b50d902SRodney W. GrimesBy default 59d8793dfaSPhilippe Charnier.Nm 609b50d902SRodney W. Grimesdisplays the processes getting the largest percentage of the processor 616a3e8b0aSRuslan Ermilovin the lower window. 62fcbaf46bSMateusz PiotrowskiOther displays show swap space usage, disk I/O statistics (a la 63270d3d75SMike Pritchard.Xr iostat 8 ) , 649b50d902SRodney W. Grimesvirtual memory statistics (a la 65270d3d75SMike Pritchard.Xr vmstat 8 ) , 66fcbaf46bSMateusz PiotrowskiTCP/IP statistics, 6703e00a72SGarrett Wollmanand network connections (a la 689b50d902SRodney W. Grimes.Xr netstat 1 ) . 699b50d902SRodney W. Grimes.Pp 709b50d902SRodney W. GrimesInput is interpreted at two different levels. 719b50d902SRodney W. GrimesA ``global'' command interpreter processes all keyboard input. 729b50d902SRodney W. GrimesIf this command interpreter fails to recognize a command, the 736a3e8b0aSRuslan Ermilovinput line is passed to a per-display command interpreter. 746a3e8b0aSRuslan ErmilovThis 759b50d902SRodney W. Grimesallows each display to have certain display-specific commands. 769b50d902SRodney W. Grimes.Pp 779b50d902SRodney W. GrimesCommand line options: 789b50d902SRodney W. Grimes.Bl -tag -width "refresh_interval" 799b50d902SRodney W. Grimes.It Fl Ns Ar display 809b50d902SRodney W. GrimesThe 819b50d902SRodney W. Grimes.Fl 829b50d902SRodney W. Grimesflag expects 839b50d902SRodney W. Grimes.Ar display 849b50d902SRodney W. Grimesto be one of: 8503e00a72SGarrett Wollman.Ic icmp , 86f29d8c1aSDavid Malone.Ic icmp6 , 87b59ba7dfSPoul-Henning Kamp.Ic ifstat , 8822054f88SWarner Losh.Ic iolat , 899b50d902SRodney W. Grimes.Ic iostat , 90630fa006SGarrett Wollman.Ic ip , 91f29d8c1aSDavid Malone.Ic ip6 , 92630fa006SGarrett Wollman.Ic netstat , 93630fa006SGarrett Wollman.Ic pigs , 941eaa5682SMichael Tuexen.Ic sctp , 95630fa006SGarrett Wollman.Ic swap , 96630fa006SGarrett Wollman.Ic tcp , 9727aa4769SMichael Reifenberger.Ic vmstat , 989b50d902SRodney W. Grimesor 9927aa4769SMichael Reifenberger.Ic zarc , 1009b50d902SRodney W. GrimesThese displays can also be requested interactively (without the 1019b50d902SRodney W. Grimes.Dq Fl ) 1029b50d902SRodney W. Grimesand are described in 1039b50d902SRodney W. Grimesfull detail below. 1049b50d902SRodney W. Grimes.It Ar refresh-interval 1059b50d902SRodney W. GrimesThe 1069b50d902SRodney W. Grimes.Ar refresh-value 1079b50d902SRodney W. Grimesspecifies the screen refresh time interval in seconds. 1088b3daf89SAlexander V. ChernikovTime interval can be fractional. 1096052df8eSAlexander V. Chernikov.It Ar display-commands 1100e922aa3SSevan JaniyanA list of commands specific to this display. 1110e922aa3SSevan JaniyanThese commands can also be entered interactively and are described for 1120e922aa3SSevan Janiyaneach display separately below. 1130e922aa3SSevan JaniyanIf the command requires arguments, they can be specified as separate 1140e922aa3SSevan Janiyancommand line arguments. 1150e922aa3SSevan JaniyanA command line argument 1160e922aa3SSevan Janiyan.Fl - 1170e922aa3SSevan Janiyanwill finish display commands. 1180e922aa3SSevan JaniyanFor example: 1196052df8eSAlexander V. Chernikov.Pp 1206052df8eSAlexander V. Chernikov.Dl Nm Fl ifstat Fl match Ar bge0,em1 Fl pps 1216052df8eSAlexander V. Chernikov.Pp 1226052df8eSAlexander V. ChernikovThis will display statistics of packets per second for network interfaces 1236052df8eSAlexander V. Chernikovnamed as bge0 and em1. 1246052df8eSAlexander V. Chernikov.Pp 1250e922aa3SSevan Janiyan.Dl Nm Fl iostat Fl numbers Fl - Ar 2.1 1266052df8eSAlexander V. Chernikov.Pp 1276052df8eSAlexander V. ChernikovThis will display all IO statistics in a numeric format and the information 1286052df8eSAlexander V. Chernikovwill be refreshed each 2.1 seconds. 1299b50d902SRodney W. Grimes.El 1309b50d902SRodney W. Grimes.Pp 1319b50d902SRodney W. GrimesCertain characters cause immediate action by 1328fe908efSRuslan Ermilov.Nm . 1339b50d902SRodney W. GrimesThese are 1349b50d902SRodney W. Grimes.Bl -tag -width Fl 1359b50d902SRodney W. Grimes.It Ic \&^L 1369b50d902SRodney W. GrimesRefresh the screen. 1379b50d902SRodney W. Grimes.It Ic \&^G 1389b50d902SRodney W. GrimesPrint the name of the current ``display'' being shown in 1399b50d902SRodney W. Grimesthe lower window and the refresh interval. 1409b50d902SRodney W. Grimes.It Ic \&: 1419b50d902SRodney W. GrimesMove the cursor to the command line and interpret the input 1426a3e8b0aSRuslan Ermilovline typed as a command. 1436a3e8b0aSRuslan ErmilovWhile entering a command the 1449b50d902SRodney W. Grimescurrent character erase, word erase, and line kill characters 1459b50d902SRodney W. Grimesmay be used. 1469b50d902SRodney W. Grimes.El 1479b50d902SRodney W. Grimes.Pp 1489b50d902SRodney W. GrimesThe following commands are interpreted by the ``global'' 1499b50d902SRodney W. Grimescommand interpreter. 1509b50d902SRodney W. Grimes.Bl -tag -width Fl 1519b50d902SRodney W. Grimes.It Ic help 1529b50d902SRodney W. GrimesPrint the names of the available displays on the command line. 1539b50d902SRodney W. Grimes.It Ic load 1549b50d902SRodney W. GrimesPrint the load average over the past 1, 5, and 15 minutes 1559b50d902SRodney W. Grimeson the command line. 1569b50d902SRodney W. Grimes.It Ic stop 1579b50d902SRodney W. GrimesStop refreshing the screen. 1589b50d902SRodney W. Grimes.It Xo 1599b50d902SRodney W. Grimes.Op Ic start 1609b50d902SRodney W. Grimes.Op Ar number 1619b50d902SRodney W. Grimes.Xc 1626a3e8b0aSRuslan ErmilovStart (continue) refreshing the screen. 1636a3e8b0aSRuslan ErmilovIf a second, numeric, 1649b50d902SRodney W. Grimesargument is provided it is interpreted as a refresh interval 1659b50d902SRodney W. Grimes(in seconds). 1669b50d902SRodney W. GrimesSupplying only a number will set the refresh interval to this 1679b50d902SRodney W. Grimesvalue. 1689b50d902SRodney W. Grimes.It Ic quit 1699b50d902SRodney W. GrimesExit 1708fe908efSRuslan Ermilov.Nm . 1719b50d902SRodney W. Grimes(This may be abbreviated to 1729b50d902SRodney W. Grimes.Ic q . ) 1739b50d902SRodney W. Grimes.El 1749b50d902SRodney W. Grimes.Pp 1759b50d902SRodney W. GrimesThe available displays are: 1769b50d902SRodney W. Grimes.Bl -tag -width Ic 1779b50d902SRodney W. Grimes.It Ic pigs 1789b50d902SRodney W. GrimesDisplay, in the lower window, those processes resident in main 1799b50d902SRodney W. Grimesmemory and getting the 1809b50d902SRodney W. Grimeslargest portion of the processor (the default display). 1819b50d902SRodney W. GrimesWhen less than 100% of the 1829b50d902SRodney W. Grimesprocessor is scheduled to user processes, the remaining time 1839b50d902SRodney W. Grimesis accounted to the ``idle'' process. 18403e00a72SGarrett Wollman.It Ic icmp 18503e00a72SGarrett WollmanDisplay, in the lower window, statistics about messages received and 18603e00a72SGarrett Wollmantransmitted by the Internet Control Message Protocol 187fcbaf46bSMateusz Piotrowski.Pq Dq ICMP . 18803e00a72SGarrett WollmanThe left half of the screen displays information about received 18903e00a72SGarrett Wollmanpackets, and the right half displays information regarding transmitted 19003e00a72SGarrett Wollmanpackets. 19103e00a72SGarrett Wollman.Pp 19203e00a72SGarrett WollmanThe 19303e00a72SGarrett Wollman.Ic icmp 19403e00a72SGarrett Wollmandisplay understands two commands: 19503e00a72SGarrett Wollman.Ic mode 19603e00a72SGarrett Wollmanand 19703e00a72SGarrett Wollman.Ic reset . 19803e00a72SGarrett WollmanThe 19903e00a72SGarrett Wollman.Ic mode 20003e00a72SGarrett Wollmancommand is used to select one of four display modes, given as its argument: 20103e00a72SGarrett Wollman.Bl -tag -width absoluteXX -compact 20203e00a72SGarrett Wollman.It Ic rate : 20303e00a72SGarrett Wollmanshow the rate of change of each value in packets (the default) 20403e00a72SGarrett Wollmanper second 20503e00a72SGarrett Wollman.It Ic delta : 20603e00a72SGarrett Wollmanshow the rate of change of each value in packets per refresh interval 20703e00a72SGarrett Wollman.It Ic since : 20803e00a72SGarrett Wollmanshow the total change of each value since the display was last reset 20903e00a72SGarrett Wollman.It Ic absolute : 21003e00a72SGarrett Wollmanshow the absolute value of each statistic 21103e00a72SGarrett Wollman.El 21203e00a72SGarrett Wollman.Pp 21303e00a72SGarrett WollmanThe 21403e00a72SGarrett Wollman.Ic reset 21503e00a72SGarrett Wollmancommand resets the baseline for 21603e00a72SGarrett Wollman.Ic since 2176a3e8b0aSRuslan Ermilovmode. 2186a3e8b0aSRuslan ErmilovThe 21903e00a72SGarrett Wollman.Ic mode 22003e00a72SGarrett Wollmancommand with no argument will display the current mode in the command 22103e00a72SGarrett Wollmanline. 222f29d8c1aSDavid Malone.It Ic icmp6 223f29d8c1aSDavid MaloneThis display is like the 224f29d8c1aSDavid Malone.Ic icmp 225f29d8c1aSDavid Malonedisplay, 226f29d8c1aSDavid Malonebut displays statistics for IPv6 ICMP. 227630fa006SGarrett Wollman.It Ic ip 228630fa006SGarrett WollmanOtherwise identical to the 229630fa006SGarrett Wollman.Ic icmp 230fcbaf46bSMateusz Piotrowskidisplay, except that it displays IP and UDP statistics. 231f29d8c1aSDavid Malone.It Ic ip6 232f29d8c1aSDavid MaloneLike the 233f29d8c1aSDavid Malone.Ic ip 234f29d8c1aSDavid Malonedisplay, 235fcbaf46bSMateusz Piotrowskiexcept that it displays IPv6 statistics. 236fcbaf46bSMateusz PiotrowskiIt does not display UDP statistics. 2371eaa5682SMichael Tuexen.It Ic sctp 2381eaa5682SMichael TuexenLike 2391eaa5682SMichael Tuexen.Ic icmp , 240fcbaf46bSMateusz Piotrowskibut with SCTP statistics. 241630fa006SGarrett Wollman.It Ic tcp 242630fa006SGarrett WollmanLike 243630fa006SGarrett Wollman.Ic icmp , 244fcbaf46bSMateusz Piotrowskibut with TCP statistics. 24522054f88SWarner Losh.It Ic iolat 24622054f88SWarner LoshDisplay statistics describing the hardware latencies of I/O operations as 24722054f88SWarner Loshcomputed by the 24822054f88SWarner Losh.Va CAM_IOSCHED_DYNAMIC 24922054f88SWarner Loshoption. 25022054f88SWarner LoshThis option must be in the kernel config file of the running kernel for this 25122054f88SWarner Loshdisplay to work. 25222054f88SWarner LoshAll devices are displayed as there is currently no way to filter them. 25322054f88SWarner LoshThe statistics displayed for the I/O latencies are the percentiles with 25422054f88SWarner Loshsufficient data during the polling interval to compute. 25522054f88SWarner LoshIf a value cannot be estimated ``-'' is displayed. 25622054f88SWarner LoshThe P50 (also known as the median), P90, P99 and P99.9 values are computed if 25722054f88SWarner Loshmore than 2, 10, 100 or 1000 operations occurred during the polling interval. 25822054f88SWarner LoshThe latency is the hardware latency values, and does not include any software 259*e6013eb0SMateusz Piotrowskiqueuing time. 26022054f88SWarner LoshThe latencies are estimated based on histogram data computed by the CAM I/O 26122054f88SWarner Loshscheduler and represent estimates of the actual value that are only good to 26222054f88SWarner Loshtwo or three significant digits. 26322054f88SWarner LoshThe display of latency changes based on the scale of the latency to reflect 26422054f88SWarner Loshthe precision of the estimates and to fit on the available screen space. 26522054f88SWarner LoshAll latencies are reported in milliseconds. 26622054f88SWarner LoshWhen color is enabled 26722054f88SWarner Losh.Bl -bullet 268*e6013eb0SMateusz Piotrowski.It 269*e6013eb0SMateusz PiotrowskiValues below the medium latency threshold are displayed in green. 270*e6013eb0SMateusz Piotrowski.It 271*e6013eb0SMateusz PiotrowskiValues between the minimum latency and high latency thresholds are displayed 27222054f88SWarner Loshin magenta. 273*e6013eb0SMateusz Piotrowski.It 274*e6013eb0SMateusz PiotrowskiValues above the high latency thresholds are displayed in red. 27522054f88SWarner Losh.Pp 27622054f88SWarner LoshWhen color is disabled, the default foreground and background colors are always 27722054f88SWarner Loshused. 27822054f88SWarner Losh.Pp 27922054f88SWarner LoshThe following commands are specific to the 28022054f88SWarner Losh.Ic iolat 28122054f88SWarner Loshdisplay; the minimum unambiguous prefix may be supplied. 28222054f88SWarner Losh.Pp 28322054f88SWarner Losh.Bl -tag -width Fl -compact 28422054f88SWarner Losh.It Cm color 28522054f88SWarner LoshToggle the use of color in the display. 28622054f88SWarner LoshThe default is on. 28722054f88SWarner Losh.It Cm hi=XXX 28822054f88SWarner LoshSet the high latency threshold to XXX milliseconds. 28922054f88SWarner Losh.It Cm med=XXX 29022054f88SWarner LoshSet the medium latency threshold to XXX milliseconds. 29122054f88SWarner Losh.It Cm read 29222054f88SWarner LoshToggle the display of statistics about read operations. 29322054f88SWarner LoshThe default is on. 29422054f88SWarner Losh.It Cm write 29522054f88SWarner LoshToggle the display of statistics about write operations. 29622054f88SWarner LoshThe default is on. 29722054f88SWarner Losh.It Cm trim 29822054f88SWarner LoshToggle the display of statistics about trim operations. 29922054f88SWarner LoshThe default is on. 30022054f88SWarner Losh.El 301*e6013eb0SMateusz Piotrowski.El 3029b50d902SRodney W. Grimes.It Ic iostat 3039b50d902SRodney W. GrimesDisplay, in the lower window, statistics about processor use 3046a3e8b0aSRuslan Ermilovand disk throughput. 3056a3e8b0aSRuslan ErmilovStatistics on processor use appear as 3069b50d902SRodney W. Grimesbar graphs of the amount of time executing in user mode (``user''), 3079b50d902SRodney W. Grimesin user mode running low priority processes (``nice''), in 3083544ae54SBruce Evanssystem mode (``system''), in interrupt mode (``interrupt''), 3096a3e8b0aSRuslan Ermilovand idle (``idle''). 3106a3e8b0aSRuslan ErmilovStatistics 3118d2fbde5SJustin T. Gibbson disk throughput show, for each drive, megabytes per second, 3128d2fbde5SJustin T. Gibbsaverage number of disk transactions per second, and 3136a3e8b0aSRuslan Ermilovaverage kilobytes of data per transaction. 3146a3e8b0aSRuslan ErmilovThis information may be 3156a3e8b0aSRuslan Ermilovdisplayed as bar graphs or as rows of numbers which scroll downward. 3166a3e8b0aSRuslan ErmilovBar 317d8793dfaSPhilippe Charniergraphs are shown by default. 3189b50d902SRodney W. Grimes.Pp 3199b50d902SRodney W. GrimesThe following commands are specific to the 3209b50d902SRodney W. Grimes.Ic iostat 3219b50d902SRodney W. Grimesdisplay; the minimum unambiguous prefix may be supplied. 3229b50d902SRodney W. Grimes.Pp 3239b50d902SRodney W. Grimes.Bl -tag -width Fl -compact 3249b50d902SRodney W. Grimes.It Cm numbers 325fcbaf46bSMateusz PiotrowskiShow the disk I/O statistics in numeric form. 3266a3e8b0aSRuslan ErmilovValues are 3279b50d902SRodney W. Grimesdisplayed in numeric columns which scroll downward. 3289b50d902SRodney W. Grimes.It Cm bars 329fcbaf46bSMateusz PiotrowskiShow the disk I/O statistics in bar graph form (default). 3308d2fbde5SJustin T. Gibbs.It Cm kbpt 3314e86fcacSSheldon HearnToggle the display of kilobytes per transaction. 3324e86fcacSSheldon Hearn(the default is to 3338d2fbde5SJustin T. Gibbsnot display kilobytes per transaction). 3349b50d902SRodney W. Grimes.El 3359b50d902SRodney W. Grimes.It Ic swap 3369b50d902SRodney W. GrimesShow information about swap space usage on all the 33757e5da2cSKonstantin Belousovswap areas compiled into the kernel and processes that are swapped out 33857e5da2cSKonstantin Belousovas well as a summary of disk activity. 33957e5da2cSKonstantin Belousov.Pp 34057e5da2cSKonstantin BelousovThe swap areas are displayed first with their name, sizes and 34157e5da2cSKonstantin Belousovusage percentage. 3429b50d902SRodney W. GrimesThe 3439b50d902SRodney W. Grimes.Ar Used 3449b50d902SRodney W. Grimescolumn indicates the total blocks used so far; 3459b50d902SRodney W. Grimesthe graph shows the percentage of space in use on each partition. 3469b50d902SRodney W. GrimesIf there are more than one swap partition in use, 3479b50d902SRodney W. Grimesa total line is also shown. 3489b50d902SRodney W. GrimesAreas known to the kernel, but not in use are shown as not available. 34957e5da2cSKonstantin Belousov.Pp 35057e5da2cSKonstantin BelousovBelow the swap space statistics, 35157e5da2cSKonstantin Belousovprocesses are listed in order of higher swap area usage. 35257e5da2cSKonstantin BelousovPid, username, a part of command line, the total use of swap space 35357e5da2cSKonstantin Belousovin bytes, the size of process, as well as per-process swap usage percentage and 35457e5da2cSKonstantin Belousovper-system swap space percentage are shown per process. 35557e5da2cSKonstantin Belousov.Pp 35657e5da2cSKonstantin BelousovAt the bottom left is the disk usage display. 35757e5da2cSKonstantin BelousovIt reports the number of 35857e5da2cSKonstantin Belousovkilobytes per transaction, transactions per second, megabytes 35957e5da2cSKonstantin Belousovper second and the percentage of the time the disk was busy averaged 36057e5da2cSKonstantin Belousovover the refresh period of the display (by default, five seconds). 36157e5da2cSKonstantin BelousovThe system keeps statistics on most every storage device. 36257e5da2cSKonstantin BelousovIn general, up 36357e5da2cSKonstantin Belousovto seven devices are displayed. 36457e5da2cSKonstantin BelousovThe devices displayed by default are the 36557e5da2cSKonstantin Belousovfirst devices in the kernel's device list. 36657e5da2cSKonstantin BelousovSee 36757e5da2cSKonstantin Belousov.Xr devstat 3 36857e5da2cSKonstantin Belousovand 36957e5da2cSKonstantin Belousov.Xr devstat 9 37057e5da2cSKonstantin Belousovfor details on the devstat system. 3719b50d902SRodney W. Grimes.It Ic vmstat 3729b50d902SRodney W. GrimesTake over the entire display and show a (rather crowded) compendium 3739b50d902SRodney W. Grimesof statistics related to virtual memory usage, process scheduling, 374fcbaf46bSMateusz Piotrowskidevice interrupts, system name translation caching, disk I/O etc. 3759b50d902SRodney W. Grimes.Pp 3769b50d902SRodney W. GrimesThe upper left quadrant of the screen shows the number 3779b50d902SRodney W. Grimesof users logged in and the load average over the last one, five, 3789b50d902SRodney W. Grimesand fifteen minute intervals. 3799b50d902SRodney W. GrimesBelow this line are statistics on memory utilization. 3809b50d902SRodney W. GrimesThe first row of the table reports memory usage only among 3819b50d902SRodney W. Grimesactive processes, that is processes that have run in the previous 3829b50d902SRodney W. Grimestwenty seconds. 3839b50d902SRodney W. GrimesThe second row reports on memory usage of all processes. 384c01e1768SRuslan ErmilovThe first column reports on the number of kilobytes in physical pages 3859b50d902SRodney W. Grimesclaimed by processes. 386c01e1768SRuslan ErmilovThe second column reports the number of kilobytes in physical pages that 3879b50d902SRodney W. Grimesare devoted to read only text pages. 3889b50d902SRodney W. GrimesThe third and fourth columns report the same two figures for 389c01e1768SRuslan Ermilovvirtual pages, that is the number of kilobytes in pages that would be 3909b50d902SRodney W. Grimesneeded if all processes had all of their pages. 391c01e1768SRuslan ErmilovFinally the last column shows the number of kilobytes in physical pages 3929b50d902SRodney W. Grimeson the free list. 3939b50d902SRodney W. Grimes.Pp 394bdbbe98bSDavid E. O'BrienBelow the memory display is a list of the 3956fe8fbdcSStefan Eßeraverage number of threads (over the last refresh interval) 3969b50d902SRodney W. Grimesthat are runnable (`r'), in page wait (`p'), 3979b50d902SRodney W. Grimesin disk wait other than paging (`d'), 3989b50d902SRodney W. Grimessleeping (`s'), and swapped out but desiring to run (`w'). 399a57a22d2SGuy HelmerThe row also shows the average number of context switches 400a57a22d2SGuy Helmer(`Csw'), traps (`Trp'; includes page faults), system calls (`Sys'), 401a57a22d2SGuy Helmerinterrupts (`Int'), network software interrupts (`Sof'), and page 402a57a22d2SGuy Helmerfaults (`Flt'). 403a57a22d2SGuy Helmer.Pp 404a57a22d2SGuy HelmerBelow the process queue length listing is a numerical listing and 4059b50d902SRodney W. Grimesa bar graph showing the amount of 4063544ae54SBruce Evanssystem (shown as `='), interrupt (shown as `+'), user (shown as `>'), 4079b50d902SRodney W. Grimesnice (shown as `-'), and idle time (shown as ` '). 4089b50d902SRodney W. Grimes.Pp 409bdbbe98bSDavid E. O'BrienBelow the process display are statistics on name translations. 4109b50d902SRodney W. GrimesIt lists the number of names translated in the previous interval, 4119b50d902SRodney W. Grimesthe number and percentage of the translations that were 4129b50d902SRodney W. Grimeshandled by the system wide name translation cache, and 4139b50d902SRodney W. Grimesthe number and percentage of the translations that were 4149b50d902SRodney W. Grimeshandled by the per process name translation cache. 4159b50d902SRodney W. Grimes.Pp 41671ae8101SBruce EvansTo the right of the name translations display are lines showing 41771ae8101SBruce Evansthe number of dirty buffers in the buffer cache (`dtbuf'), 41871ae8101SBruce Evansdesired maximum size of vnode cache (`desvn'), 41971ae8101SBruce Evansnumber of vnodes actually allocated (`numvn'), 42071ae8101SBruce Evansand 42171ae8101SBruce Evansnumber of allocated vnodes that are free (`frevn'). 42271ae8101SBruce Evans.Pp 423bdbbe98bSDavid E. O'BrienAt the bottom left is the disk usage display. 424d6234488SDavid E. O'BrienIt reports the number of 425a4a026b4SDag-Erling Smørgravkilobytes per transaction, transactions per second, megabytes 426a4a026b4SDag-Erling Smørgravper second and the percentage of the time the disk was busy averaged 427a4a026b4SDag-Erling Smørgravover the refresh period of the display (by default, five seconds). 4286a3e8b0aSRuslan ErmilovThe system keeps statistics on most every storage device. 4296a3e8b0aSRuslan ErmilovIn general, up 4306a3e8b0aSRuslan Ermilovto seven devices are displayed. 4316a3e8b0aSRuslan ErmilovThe devices displayed by default are the 4326a3e8b0aSRuslan Ermilovfirst devices in the kernel's device list. 4336a3e8b0aSRuslan ErmilovSee 434d6234488SDavid E. O'Brien.Xr devstat 3 435d6234488SDavid E. O'Brienand 436d6234488SDavid E. O'Brien.Xr devstat 9 437d6234488SDavid E. O'Brienfor details on the devstat system. 438bdbbe98bSDavid E. O'Brien.Pp 4399b50d902SRodney W. GrimesUnder the date in the upper right hand quadrant are statistics 4409b50d902SRodney W. Grimeson paging and swapping activity. 4419b50d902SRodney W. GrimesThe first two columns report the average number of pages 4429b50d902SRodney W. Grimesbrought in and out per second over the last refresh interval 4439b50d902SRodney W. Grimesdue to page faults and the paging daemon. 4449b50d902SRodney W. GrimesThe third and fourth columns report the average number of pages 4459b50d902SRodney W. Grimesbrought in and out per second over the last refresh interval 4469b50d902SRodney W. Grimesdue to swap requests initiated by the scheduler. 4479b50d902SRodney W. GrimesThe first row of the display shows the average 4489b50d902SRodney W. Grimesnumber of disk transfers per second over the last refresh interval; 4499b50d902SRodney W. Grimesthe second row of the display shows the average 4509b50d902SRodney W. Grimesnumber of pages transferred per second over the last refresh interval. 4519b50d902SRodney W. Grimes.Pp 452a57a22d2SGuy HelmerBelow the paging statistics is a column of lines regarding the virtual 45304984aacSBruce Evansmemory system. 45404984aacSBruce EvansThe first few lines describe, 45504984aacSBruce Evansin units (except as noted below) 45604984aacSBruce Evansof pages per second averaged over the sampling interval, 457a57a22d2SGuy Helmerpages copied on write (`cow'), 458a57a22d2SGuy Helmerpages zero filled on demand (`zfod'), 45904984aacSBruce Evanspages optimally zero filled on demand (`ozfod'), 46004984aacSBruce Evansthe ratio of the (average) ozfod / zfod as a percentage (`%ozfod'), 46104984aacSBruce Evanspages freed by the page daemon (`daefr'), 46204984aacSBruce Evanspages freed by exiting processes (`prcfr'), 463e76bdda0SBruce Evanstotal pages freed (`totfr'), 46404984aacSBruce Evanspages reactivated from the free list (`react'), 46504984aacSBruce Evansthe average number of 46604984aacSBruce Evanstimes per second that the page daemon was awakened (`pdwak'), 46704984aacSBruce Evanspages analyzed by the page daemon (`pdpgs'), 46804984aacSBruce Evansand 46904984aacSBruce Evansin-transit blocking page faults (`intrn'). 47004984aacSBruce EvansNote that the units are special for `%ozfod' and `pdwak'. 47104984aacSBruce EvansThe next few lines describe, 472c01e1768SRuslan Ermilovas amounts of memory in kilobytes, 473a57a22d2SGuy Helmerpages wired down (`wire'), 474a57a22d2SGuy Helmeractive pages (`act'), 475a57a22d2SGuy Helmerinactive pages (`inact'), 476cc59e3a7SMark Johnstondirty pages queued for laundering (`laund'), 477a57a22d2SGuy Helmerand 47804984aacSBruce Evansfree pages (`free'). 47904984aacSBruce EvansNote that the values displayed are the current transient ones; 48004984aacSBruce Evansthey are not averages. 4819b50d902SRodney W. Grimes.Pp 48271ae8101SBruce EvansAt the bottom of this column is a line showing the 48371ae8101SBruce Evansamount of virtual memory, in kilobytes, mapped into the buffer cache (`buf'). 48471ae8101SBruce EvansThis statistic is not useful. 48571ae8101SBruce EvansIt exists only as a placeholder for the corresponding useful statistic 48671ae8101SBruce Evans(the amount of real memory used to cache disks). 48771ae8101SBruce EvansThe most important component of the latter (the amount of real memory 48871ae8101SBruce Evansused by the vm system to cache disks) is not available, 48971ae8101SBruce Evansbut can be guessed from the `inact' amount under some system loads. 4909b50d902SRodney W. Grimes.Pp 4919b50d902SRodney W. GrimesRunning down the right hand side of the display is a breakdown 4929b50d902SRodney W. Grimesof the interrupts being handled by the system. 4939b50d902SRodney W. GrimesAt the top of the list is the total interrupts per second 4949b50d902SRodney W. Grimesover the time interval. 4959b50d902SRodney W. GrimesThe rest of the column breaks down the total on a device 4969b50d902SRodney W. Grimesby device basis. 4979b50d902SRodney W. GrimesOnly devices that have interrupted at least once since boot time are shown. 4989b50d902SRodney W. Grimes.Pp 4999b50d902SRodney W. GrimesThe following commands are specific to the 5009b50d902SRodney W. Grimes.Ic vmstat 5019b50d902SRodney W. Grimesdisplay; the minimum unambiguous prefix may be supplied. 5029b50d902SRodney W. Grimes.Pp 5039b50d902SRodney W. Grimes.Bl -tag -width Ar -compact 5049b50d902SRodney W. Grimes.It Cm boot 5059b50d902SRodney W. GrimesDisplay cumulative statistics since the system was booted. 5069b50d902SRodney W. Grimes.It Cm run 5079b50d902SRodney W. GrimesDisplay statistics as a running total from the point this 5089b50d902SRodney W. Grimescommand is given. 5099b50d902SRodney W. Grimes.It Cm time 5109b50d902SRodney W. GrimesDisplay statistics averaged over the refresh interval (the default). 5119b50d902SRodney W. Grimes.It Cm zero 5129b50d902SRodney W. GrimesReset running statistics to zero. 5139b50d902SRodney W. Grimes.El 51427aa4769SMichael Reifenberger.It Ic zarc 51527aa4769SMichael Reifenbergerdisplay arc cache usage and hit/miss statistics. 5169b50d902SRodney W. Grimes.It Ic netstat 5176a3e8b0aSRuslan ErmilovDisplay, in the lower window, network connections. 5186a3e8b0aSRuslan ErmilovBy default, 5196a3e8b0aSRuslan Ermilovnetwork servers awaiting requests are not displayed. 5206a3e8b0aSRuslan ErmilovEach address 5219b50d902SRodney W. Grimesis displayed in the format ``host.port'', with each shown symbolically, 5226a3e8b0aSRuslan Ermilovwhen possible. 5236a3e8b0aSRuslan ErmilovIt is possible to have addresses displayed numerically, 5249b50d902SRodney W. Grimeslimit the display to a set of ports, hosts, and/or protocols 5259b50d902SRodney W. Grimes(the minimum unambiguous prefix may be supplied): 5269b50d902SRodney W. Grimes.Pp 5279b50d902SRodney W. Grimes.Bl -tag -width Ar -compact 5289b50d902SRodney W. Grimes.It Cm all 5299b50d902SRodney W. GrimesToggle the displaying of server processes awaiting requests (this 5309b50d902SRodney W. Grimesis the equivalent of the 5319b50d902SRodney W. Grimes.Fl a 5329b50d902SRodney W. Grimesflag to 53379431394SSteve Price.Xr netstat 1 ) . 5349b50d902SRodney W. Grimes.It Cm numbers 5359b50d902SRodney W. GrimesDisplay network addresses numerically. 5369b50d902SRodney W. Grimes.It Cm names 5379b50d902SRodney W. GrimesDisplay network addresses symbolically. 53879431394SSteve Price.It Cm proto Ar protocol 53979431394SSteve PriceDisplay only network connections using the indicated 54079431394SSteve Price.Ar protocol . 54179431394SSteve PriceSupported protocols are ``tcp'', ``udp'', and ``all''. 5429b50d902SRodney W. Grimes.It Cm ignore Op Ar items 5439b50d902SRodney W. GrimesDo not display information about connections associated with 5446a3e8b0aSRuslan Ermilovthe specified hosts or ports. 5456a3e8b0aSRuslan ErmilovHosts and ports may be specified 5466a3e8b0aSRuslan Ermilovby name (``vangogh'', ``ftp''), or numerically. 5476a3e8b0aSRuslan ErmilovHost addresses 5486a3e8b0aSRuslan Ermilovuse the Internet dot notation (``128.32.0.9''). 5496a3e8b0aSRuslan ErmilovMultiple items 5509b50d902SRodney W. Grimesmay be specified with a single command by separating them with 5519b50d902SRodney W. Grimesspaces. 5529b50d902SRodney W. Grimes.It Cm display Op Ar items 5539b50d902SRodney W. GrimesDisplay information about the connections associated with the 5546a3e8b0aSRuslan Ermilovspecified hosts or ports. 5556a3e8b0aSRuslan ErmilovAs for 5569b50d902SRodney W. Grimes.Ar ignore , 5579b50d902SRodney W. Grimes.Op Ar items 5589b50d902SRodney W. Grimesmay be names or numbers. 5599b50d902SRodney W. Grimes.It Cm show Op Ar ports\&|hosts 5609b50d902SRodney W. GrimesShow, on the command line, the currently selected protocols, 5616a3e8b0aSRuslan Ermilovhosts, and ports. 5626a3e8b0aSRuslan ErmilovHosts and ports which are being ignored 5636a3e8b0aSRuslan Ermilovare prefixed with a `!'. 5646a3e8b0aSRuslan ErmilovIf 5659b50d902SRodney W. Grimes.Ar ports 5669b50d902SRodney W. Grimesor 5679b50d902SRodney W. Grimes.Ar hosts 5689b50d902SRodney W. Grimesis supplied as an argument to 5699b50d902SRodney W. Grimes.Cm show , 5709b50d902SRodney W. Grimesthen only the requested information will be displayed. 5719b50d902SRodney W. Grimes.It Cm reset 5729b50d902SRodney W. GrimesReset the port, host, and protocol matching mechanisms to the default 5739b50d902SRodney W. Grimes(any protocol, port, or host). 5749b50d902SRodney W. Grimes.El 575b59ba7dfSPoul-Henning Kamp.It Ic ifstat 576b59ba7dfSPoul-Henning KampDisplay the network traffic going through active interfaces on the 5776a3e8b0aSRuslan Ermilovsystem. 5786a3e8b0aSRuslan ErmilovIdle interfaces will not be displayed until they receive some 579b59ba7dfSPoul-Henning Kamptraffic. 580b59ba7dfSPoul-Henning Kamp.Pp 581b59ba7dfSPoul-Henning KampFor each interface being displayed, the current, peak and total 5826a3e8b0aSRuslan Ermilovstatistics are displayed for incoming and outgoing traffic. 5836a3e8b0aSRuslan ErmilovBy default, 584b59ba7dfSPoul-Henning Kampthe 585b59ba7dfSPoul-Henning Kamp.Ic ifstat 586b59ba7dfSPoul-Henning Kampdisplay will automatically scale the units being used so that they are 5876a3e8b0aSRuslan Ermilovin a human-readable format. 5886a3e8b0aSRuslan ErmilovThe scaling units used for the current and 589b59ba7dfSPoul-Henning Kamppeak 590b59ba7dfSPoul-Henning Kamptraffic columns can be altered by the 591b59ba7dfSPoul-Henning Kamp.Ic scale 592b59ba7dfSPoul-Henning Kampcommand. 593ace5be68SRuslan Ermilov.Bl -tag -width ".Cm scale Op Ar units" 594b59ba7dfSPoul-Henning Kamp.It Cm scale Op Ar units 595b59ba7dfSPoul-Henning KampModify the scale used to display the current and peak traffic over all 5966a3e8b0aSRuslan Ermilovinterfaces. 5976a3e8b0aSRuslan ErmilovThe following units are recognised: kbit, kbyte, mbit, 598b59ba7dfSPoul-Henning Kampmbyte, gbit, gbyte and auto. 599b0214723SAlexander V. Chernikov.It Cm pps 600b0214723SAlexander V. ChernikovShow statistics in packets per second instead of bytes/bits per second. 601b0214723SAlexander V. ChernikovA subsequent call of 602b0214723SAlexander V. Chernikov.Ic pps 603b0214723SAlexander V. Chernikovswitches this mode off. 604b0214723SAlexander V. Chernikov.It Cm match Op Ar patterns 605b0214723SAlexander V. ChernikovDisplay only interfaces that match pattern provided as an argument. 606b0214723SAlexander V. ChernikovPatterns should be in shell syntax separated by whitespaces or commas. 607b0214723SAlexander V. ChernikovIf this command is called without arguments then all interfaces are displayed. 608b0214723SAlexander V. ChernikovFor example: 609b0214723SAlexander V. Chernikov.Pp 610b0214723SAlexander V. Chernikov.Dl match em0, bge1 611b0214723SAlexander V. Chernikov.Pp 612b0214723SAlexander V. ChernikovThis will display em0 and bge1 interfaces. 613b0214723SAlexander V. Chernikov.Pp 614b0214723SAlexander V. Chernikov.Dl match em*, bge*, lo0 615b0214723SAlexander V. Chernikov.Pp 616b0214723SAlexander V. ChernikovThis will display all 617b0214723SAlexander V. Chernikov.Ic em 618b0214723SAlexander V. Chernikovinterfaces, all 619b0214723SAlexander V. Chernikov.Ic bge 620b0214723SAlexander V. Chernikovinterfaces and the loopback interface. 621b59ba7dfSPoul-Henning Kamp.El 6229b50d902SRodney W. Grimes.El 6239b50d902SRodney W. Grimes.Pp 6249b50d902SRodney W. GrimesCommands to switch between displays may be abbreviated to the 6259b50d902SRodney W. Grimesminimum unambiguous prefix; for example, ``io'' for ``iostat''. 6269b50d902SRodney W. GrimesCertain information may be discarded when the screen size is 6276a3e8b0aSRuslan Ermilovinsufficient for display. 6286a3e8b0aSRuslan ErmilovFor example, on a machine with 10 6299b50d902SRodney W. Grimesdrives the 6309b50d902SRodney W. Grimes.Ic iostat 6316a3e8b0aSRuslan Ermilovbar graph displays only 3 drives on a 24 line terminal. 6326a3e8b0aSRuslan ErmilovWhen 6339b50d902SRodney W. Grimesa bar graph would overflow the allotted screen space it is 6349b50d902SRodney W. Grimestruncated and the actual value is printed ``over top'' of the bar. 6359b50d902SRodney W. Grimes.Pp 6369b50d902SRodney W. GrimesThe following commands are common to each display which shows 6376a3e8b0aSRuslan Ermilovinformation about disk drives. 6386a3e8b0aSRuslan ErmilovThese commands are used to 6399b50d902SRodney W. Grimesselect a set of drives to report on, should your system have 6409b50d902SRodney W. Grimesmore drives configured than can normally be displayed on the 6419b50d902SRodney W. Grimesscreen. 6429b50d902SRodney W. Grimes.Pp 6439b88faecSRuslan Ermilov.Bl -tag -width Ar -compact 6449b50d902SRodney W. Grimes.It Cm ignore Op Ar drives 6456a3e8b0aSRuslan ErmilovDo not display information about the drives indicated. 6466a3e8b0aSRuslan ErmilovMultiple 6479b50d902SRodney W. Grimesdrives may be specified, separated by spaces. 6489b50d902SRodney W. Grimes.It Cm display Op Ar drives 6496a3e8b0aSRuslan ErmilovDisplay information about the drives indicated. 6506a3e8b0aSRuslan ErmilovMultiple drives 6519b50d902SRodney W. Grimesmay be specified, separated by spaces. 6528d2fbde5SJustin T. Gibbs.It Cm only Op Ar drives 6536a3e8b0aSRuslan ErmilovDisplay only the specified drives. 6546a3e8b0aSRuslan ErmilovMultiple drives may be specified, 6558d2fbde5SJustin T. Gibbsseparated by spaces. 6568d2fbde5SJustin T. Gibbs.It Cm drives 6578d2fbde5SJustin T. GibbsDisplay a list of available devices. 658d0353b83SRuslan Ermilov.It Cm match Xo 659d0353b83SRuslan Ermilov.Ar type , Ns Ar if , Ns Ar pass 660d0353b83SRuslan Ermilov.Op | Ar ... 661d0353b83SRuslan Ermilov.Xc 6626a3e8b0aSRuslan ErmilovDisplay devices matching the given pattern. 6636a3e8b0aSRuslan ErmilovThe basic matching 6648d2fbde5SJustin T. Gibbsexpressions are the same as those used in 6658d2fbde5SJustin T. Gibbs.Xr iostat 8 6666a3e8b0aSRuslan Ermilovwith one difference. 6676a3e8b0aSRuslan ErmilovInstead of specifying multiple 6688d2fbde5SJustin T. Gibbs.Fl t 66957bd0fc6SJens Schweikhardtarguments which are then ORed together, the user instead specifies multiple 670d0353b83SRuslan Ermilovmatching expressions joined by the pipe 671d0353b83SRuslan Ermilov.Pq Ql \&| 672d0353b83SRuslan Ermilovcharacter. 673d0353b83SRuslan ErmilovThe comma 6748d2fbde5SJustin T. Gibbsseparated arguments within each matching expression are ANDed together, and 6756a3e8b0aSRuslan Ermilovthen the pipe separated matching expressions are ORed together. 6766a3e8b0aSRuslan ErmilovAny 6778d2fbde5SJustin T. Gibbsdevice matching the combined expression will be displayed, if there is room 6786a3e8b0aSRuslan Ermilovto display it. 6796a3e8b0aSRuslan ErmilovFor example: 6808d2fbde5SJustin T. Gibbs.Pp 6818d2fbde5SJustin T. Gibbs.Dl match da,scsi | cd,ide 6828d2fbde5SJustin T. Gibbs.Pp 6838d2fbde5SJustin T. GibbsThis will display all SCSI Direct Access devices and all IDE CDROM devices. 6848d2fbde5SJustin T. Gibbs.Pp 6858d2fbde5SJustin T. Gibbs.Dl match da | sa | cd,pass 6868d2fbde5SJustin T. Gibbs.Pp 6878d2fbde5SJustin T. GibbsThis will display all Direct Access devices, all Sequential Access devices, 6888d2fbde5SJustin T. Gibbsand all passthrough devices that provide access to CDROM drives. 6899b50d902SRodney W. Grimes.El 6909b50d902SRodney W. Grimes.Sh FILES 6911063e126SJosef Karthauser.Bl -tag -width /boot/kernel/kernel -compact 6921063e126SJosef Karthauser.It Pa /boot/kernel/kernel 6939b50d902SRodney W. GrimesFor the namelist. 6949b50d902SRodney W. Grimes.It Pa /dev/kmem 6959b50d902SRodney W. GrimesFor information in main memory. 6969b50d902SRodney W. Grimes.It Pa /etc/hosts 6979b50d902SRodney W. GrimesFor host names. 6989b50d902SRodney W. Grimes.It Pa /etc/networks 6999b50d902SRodney W. GrimesFor network names. 7009b50d902SRodney W. Grimes.It Pa /etc/services 7019b50d902SRodney W. GrimesFor port names. 7029b50d902SRodney W. Grimes.El 7036c7216dfSRuslan Ermilov.Sh SEE ALSO 7046c7216dfSRuslan Ermilov.Xr netstat 1 , 7056c7216dfSRuslan Ermilov.Xr kvm 3 , 7066c7216dfSRuslan Ermilov.Xr icmp 4 , 7076c7216dfSRuslan Ermilov.Xr icmp6 4 , 7086c7216dfSRuslan Ermilov.Xr ip 4 , 7096c7216dfSRuslan Ermilov.Xr ip6 4 , 7106c7216dfSRuslan Ermilov.Xr tcp 4 , 7116c7216dfSRuslan Ermilov.Xr udp 4 , 71226d8ca83SGiorgos Keramidas.Xr gstat 8 , 7136c7216dfSRuslan Ermilov.Xr iostat 8 , 7146c7216dfSRuslan Ermilov.Xr vmstat 8 7159b50d902SRodney W. Grimes.Sh HISTORY 7169b50d902SRodney W. GrimesThe 717d8793dfaSPhilippe Charnier.Nm 7189b50d902SRodney W. Grimesprogram appeared in 7199b50d902SRodney W. Grimes.Bx 4.3 . 72003e00a72SGarrett WollmanThe 721630fa006SGarrett Wollman.Ic icmp , 722630fa006SGarrett Wollman.Ic ip , 723630fa006SGarrett Wollmanand 724630fa006SGarrett Wollman.Ic tcp 725630fa006SGarrett Wollmandisplays appeared in 72603e00a72SGarrett Wollman.Fx 3.0 ; 72703e00a72SGarrett Wollmanthe notion of having different display modes for the 728fcbaf46bSMateusz PiotrowskiICMP, IP, TCP, and UDP statistics was stolen from the 72903e00a72SGarrett Wollman.Fl C 73003e00a72SGarrett Wollmanoption to 73103e00a72SGarrett Wollman.Xr netstat 1 732fcbaf46bSMateusz Piotrowskiin Silicon Graphics' IRIX system. 7339b50d902SRodney W. Grimes.Sh BUGS 7349b50d902SRodney W. GrimesCertain displays presume a minimum of 80 characters per line. 7354b9ac8a0SMichael ReifenbergerIfstat does not detect new interfaces. 7369b50d902SRodney W. GrimesThe 7379b50d902SRodney W. Grimes.Ic vmstat 7389b50d902SRodney W. Grimesdisplay looks out of place because it is (it was added in as 7399b50d902SRodney W. Grimesa separate display rather than created as a new program). 74022054f88SWarner LoshThe 74122054f88SWarner Losh.Ic iolat 742*e6013eb0SMateusz Piotrowskicommand does not implement the common device commands including 743*e6013eb0SMateusz Piotrowskifiltering, as it does not use the 74422054f88SWarner Losh.Xr devstat 3 74522054f88SWarner Loshmechanism to obtain its statistics. 746