1dea673e9SRodney W. Grimes.\" Copyright (c) 1980, 1991, 1993, 1994 2dea673e9SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 3dea673e9SRodney W. Grimes.\" 4dea673e9SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 5dea673e9SRodney W. Grimes.\" modification, are permitted provided that the following conditions 6dea673e9SRodney W. Grimes.\" are met: 7dea673e9SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 8dea673e9SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 9dea673e9SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 10dea673e9SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 11dea673e9SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 12dea673e9SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 13dea673e9SRodney W. Grimes.\" must display the following acknowledgement: 14dea673e9SRodney W. Grimes.\" This product includes software developed by the University of 15dea673e9SRodney W. Grimes.\" California, Berkeley and its contributors. 16dea673e9SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 17dea673e9SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 18dea673e9SRodney W. Grimes.\" without specific prior written permission. 19dea673e9SRodney W. Grimes.\" 20dea673e9SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21dea673e9SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22dea673e9SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23dea673e9SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24dea673e9SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25dea673e9SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26dea673e9SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27dea673e9SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28dea673e9SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29dea673e9SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30dea673e9SRodney W. Grimes.\" SUCH DAMAGE. 31dea673e9SRodney W. Grimes.\" 329c5cdfe0SPeter Wemm.\" @(#)pstat.8 8.5 (Berkeley) 5/13/94 3397d92980SPeter Wemm.\" $FreeBSD$ 34dea673e9SRodney W. Grimes.\" 350cbfd1a5SDag-Erling Smørgrav.Dd May 23, 2002 36dea673e9SRodney W. Grimes.Dt PSTAT 8 37a4c37c81SRuslan Ermilov.Os 38dea673e9SRodney W. Grimes.Sh NAME 399b25840fSJoerg Wunsch.Nm pstat , 409b25840fSJoerg Wunsch.Nm swapinfo 41dea673e9SRodney W. Grimes.Nd display system data structures 42dea673e9SRodney W. Grimes.Sh SYNOPSIS 43e97407b4SRuslan Ermilov.Nm 440cbfd1a5SDag-Erling Smørgrav.Op Fl Tfknst 45dea673e9SRodney W. Grimes.Op Fl M Ar core 46dea673e9SRodney W. Grimes.Op Fl N Ar system 4759392fe2SPoul-Henning Kamp.Pp 4859392fe2SPoul-Henning Kamp.Nm swapinfo 4959392fe2SPoul-Henning Kamp.Op Fl k 50d9961cfdSPhilippe Charnier.Op Fl M Ar core 51d9961cfdSPhilippe Charnier.Op Fl N Ar system 52dea673e9SRodney W. Grimes.Sh DESCRIPTION 53490d5836SPhilippe CharnierThe 54490d5836SPhilippe Charnier.Nm 55490d5836SPhilippe Charnierutility displays open file entry, swap space utilization, 56dea673e9SRodney W. Grimesterminal state, and vnode data structures. 5759392fe2SPoul-Henning Kamp.Pp 5859392fe2SPoul-Henning KampIf invoked as 5959392fe2SPoul-Henning Kamp.Nm swapinfo 6059392fe2SPoul-Henning Kampthe 6159392fe2SPoul-Henning Kamp.Fl s 6259392fe2SPoul-Henning Kampoption is implied, and only the 6359392fe2SPoul-Henning Kamp.Fl k 6459392fe2SPoul-Henning Kampoption is legal. 65dea673e9SRodney W. Grimes.Pp 66d9961cfdSPhilippe CharnierThe following options are available: 67dea673e9SRodney W. Grimes.Bl -tag -width indent 6859392fe2SPoul-Henning Kamp.It Fl n 6959392fe2SPoul-Henning KampPrint devices out by major/minor instead of name. 7059392fe2SPoul-Henning Kamp.It Fl k 717c0e6e50SPhilippe CharnierPrint sizes in kilobytes, regardless of the setting of the 727c0e6e50SPhilippe Charnier.Ev BLOCKSIZE 7359392fe2SPoul-Henning Kampenvironment variable. 74dea673e9SRodney W. Grimes.It Fl T 7565834d4bSJens SchweikhardtPrint the number of used and free slots in several system tables. 7665834d4bSJens SchweikhardtThis is useful for checking to see how large system tables have become 77dea673e9SRodney W. Grimesif the system is under heavy load. 78dea673e9SRodney W. Grimes.It Fl f 79dea673e9SRodney W. GrimesPrint the open file table with these headings: 80dea673e9SRodney W. Grimes.Bl -tag -width indent 81dea673e9SRodney W. Grimes.It LOC 82dea673e9SRodney W. GrimesThe core location of this table entry. 83dea673e9SRodney W. Grimes.It TYPE 84dea673e9SRodney W. GrimesThe type of object the file table entry points to. 85dea673e9SRodney W. Grimes.It FLG 86dea673e9SRodney W. GrimesMiscellaneous state variables encoded thus: 870985ff69SRuslan Ermilov.Pp 880985ff69SRuslan Ermilov.Bl -tag -width indent -compact 89dea673e9SRodney W. Grimes.It R 90dea673e9SRodney W. Grimesopen for reading 91dea673e9SRodney W. Grimes.It W 92dea673e9SRodney W. Grimesopen for writing 93dea673e9SRodney W. Grimes.It A 94dea673e9SRodney W. Grimesopen for appending 95dea673e9SRodney W. Grimes.It I 96dea673e9SRodney W. Grimessignal pgrp when data ready 97dea673e9SRodney W. Grimes.El 98dea673e9SRodney W. Grimes.It CNT 99dea673e9SRodney W. GrimesNumber of processes that know this open file. 100dea673e9SRodney W. Grimes.It MSG 101dea673e9SRodney W. GrimesNumber of messages outstanding for this file. 102dea673e9SRodney W. Grimes.It DATA 103dea673e9SRodney W. GrimesThe location of the vnode table entry or socket structure for this file. 104dea673e9SRodney W. Grimes.It OFFSET 105dea673e9SRodney W. GrimesThe file offset (see 106dea673e9SRodney W. Grimes.Xr lseek 2 ) . 107dea673e9SRodney W. Grimes.El 108dea673e9SRodney W. Grimes.It Fl s 109dea673e9SRodney W. GrimesPrint information about swap space usage on all the 110dea673e9SRodney W. Grimesswap areas compiled into the kernel. 111dea673e9SRodney W. GrimesThe first column is the device name of the partition. The next column is 112dea673e9SRodney W. Grimesthe total space available in the partition. The 113dea673e9SRodney W. Grimes.Ar Used 114dea673e9SRodney W. Grimescolumn indicates the total blocks used so far; the 115dea673e9SRodney W. Grimes.Ar Available 116dea673e9SRodney W. Grimescolumn indicates how much space is remaining on each partition. 117dea673e9SRodney W. GrimesThe 118dea673e9SRodney W. Grimes.Ar Capacity 119dea673e9SRodney W. Grimesreports the percentage of space used. 120dea673e9SRodney W. Grimes.Pp 121dea673e9SRodney W. GrimesIf more than one partition is configured into the system, totals for all 122dea673e9SRodney W. Grimesof the statistics will be reported in the final line of the report. 123eedc3436SMatthew Dillon.Pp 124eedc3436SMatthew DillonIf you supply the option again, as in 125eedc3436SMatthew Dillon.Fl ss , 126eedc3436SMatthew Dillonthe system will display a breakdown of the swap bitmap/radix-tree. 127dea673e9SRodney W. Grimes.It Fl t 128dea673e9SRodney W. GrimesPrint table for terminals 129dea673e9SRodney W. Grimeswith these headings: 130dea673e9SRodney W. Grimes.Bl -tag -width indent 131dea673e9SRodney W. Grimes.It RAW 132dea673e9SRodney W. GrimesNumber of characters in raw input queue. 133dea673e9SRodney W. Grimes.It CAN 134dea673e9SRodney W. GrimesNumber of characters in canonicalized input queue. 135dea673e9SRodney W. Grimes.It OUT 136c2dc07c8SAlexander LangerNumber of characters in output queue. 137dea673e9SRodney W. Grimes.It MODE 138dea673e9SRodney W. GrimesSee 139dea673e9SRodney W. Grimes.Xr tty 4 . 140dea673e9SRodney W. Grimes.It ADDR 141dea673e9SRodney W. GrimesPhysical device address. 142dea673e9SRodney W. Grimes.It DEL 143dea673e9SRodney W. GrimesNumber of delimiters (newlines) in canonicalized input queue. 144dea673e9SRodney W. Grimes.It COL 145dea673e9SRodney W. GrimesCalculated column position of terminal. 146dea673e9SRodney W. Grimes.It STATE 147dea673e9SRodney W. GrimesMiscellaneous state variables encoded thus: 1480985ff69SRuslan Ermilov.Pp 1490985ff69SRuslan Ermilov.Bl -tag -width indent -compact 150dea673e9SRodney W. Grimes.It T 151dea673e9SRodney W. Grimesdelay timeout in progress 152dea673e9SRodney W. Grimes.It W 153dea673e9SRodney W. Grimeswaiting for open to complete 154dea673e9SRodney W. Grimes.It O 155dea673e9SRodney W. Grimesopen 156dea673e9SRodney W. Grimes.It F 157dea673e9SRodney W. Grimesoutq has been flushed during DMA 158dea673e9SRodney W. Grimes.It C 159dea673e9SRodney W. Grimescarrier is on 160283fecc1SBruce Evans.It c 161283fecc1SBruce Evansconnection open 162dea673e9SRodney W. Grimes.It B 163dea673e9SRodney W. Grimesbusy doing output 164dea673e9SRodney W. Grimes.It A 165283fecc1SBruce Evansprocess is waiting for space in output queue 166283fecc1SBruce Evans.It a 167283fecc1SBruce Evansprocess is waiting for output to complete 168dea673e9SRodney W. Grimes.It X 169dea673e9SRodney W. Grimesopen for exclusive use 170dea673e9SRodney W. Grimes.It S 171283fecc1SBruce Evansoutput stopped (ixon flow control) 172283fecc1SBruce Evans.It m 173283fecc1SBruce Evansoutput stopped (carrier flow control) 174283fecc1SBruce Evans.It o 175283fecc1SBruce Evansoutput stopped (CTS flow control) 176283fecc1SBruce Evans.It d 177283fecc1SBruce Evansoutput stopped (DSR flow control) 178283fecc1SBruce Evans.It K 179283fecc1SBruce Evansinput stopped 180283fecc1SBruce Evans.It Y 181283fecc1SBruce Evanssend SIGIO for input events 1823f692954SBruce Evans.It D 1833f692954SBruce Evansstate for lowercase 1843f692954SBruce Evans.Ql \e 1853f692954SBruce Evanswork 1863f692954SBruce Evans.It E 1873f692954SBruce Evanswithin a 1883f692954SBruce Evans.Ql \e.../ 1893f692954SBruce Evansfor PRTRUB 1903f692954SBruce Evans.It L 1913f692954SBruce Evansnext character is literal 1923f692954SBruce Evans.It P 1933f692954SBruce Evansretyping suspended input (PENDIN) 1943f692954SBruce Evans.It N 1953f692954SBruce Evanscounting tab width, ignore FLUSHO 196283fecc1SBruce Evans.It l 197283fecc1SBruce Evansblock mode input routine in use 198283fecc1SBruce Evans.It s 199283fecc1SBruce Evansi/o being snooped 200283fecc1SBruce Evans.It Z 201283fecc1SBruce Evansconnection lost 202dea673e9SRodney W. Grimes.El 2033f692954SBruce Evans.It SESS 2043f692954SBruce EvansKernel address of the session structure. 2053f692954SBruce Evans.It PGID 206dea673e9SRodney W. GrimesProcess group for which this is controlling terminal. 207dea673e9SRodney W. Grimes.It DISC 208283fecc1SBruce EvansLine discipline; 209283fecc1SBruce Evans.Ql term 210283fecc1SBruce Evansfor 211283fecc1SBruce EvansTTYDISC 212dea673e9SRodney W. Grimesor 213283fecc1SBruce Evans.Ql ntty 214dea673e9SRodney W. Grimesfor 215dea673e9SRodney W. GrimesNTTYDISC 216dea673e9SRodney W. Grimesor 217283fecc1SBruce Evans.Ql tab 218dea673e9SRodney W. Grimesfor 219283fecc1SBruce EvansTABLDISC 220283fecc1SBruce Evansor 221283fecc1SBruce Evans.Ql slip 222283fecc1SBruce Evansfor 223283fecc1SBruce EvansSLIPDISC 224283fecc1SBruce Evansor 225283fecc1SBruce Evans.Ql ppp 226283fecc1SBruce Evansfor 227283fecc1SBruce EvansPPPDISC. 228dea673e9SRodney W. Grimes.El 229a82684b6SBen Smithurst.It Fl M 230a82684b6SBen SmithurstExtract values associated with the name list from the specified core 231a82684b6SBen Smithurstinstead of the default 232a82684b6SBen Smithurst.Pa /dev/kmem . 233a82684b6SBen Smithurst.It Fl N 234a82684b6SBen SmithurstExtract the name list from the specified system instead of the default 2351063e126SJosef Karthauser.Pa /boot/kernel/kernel . 236dea673e9SRodney W. Grimes.El 237dea673e9SRodney W. Grimes.Sh FILES 2381063e126SJosef Karthauser.Bl -tag -width /boot/kernel/kernel -compact 2391063e126SJosef Karthauser.It Pa /boot/kernel/kernel 240dea673e9SRodney W. Grimesnamelist 241d9961cfdSPhilippe Charnier.It Pa /dev/mem 242dea673e9SRodney W. Grimesdefault source of tables 243dea673e9SRodney W. Grimes.El 244dea673e9SRodney W. Grimes.Sh SEE ALSO 245dea673e9SRodney W. Grimes.Xr ps 1 , 246dea673e9SRodney W. Grimes.Xr systat 1 , 247dea673e9SRodney W. Grimes.Xr stat 2 , 248dea673e9SRodney W. Grimes.Xr fs 5 , 249270d3d75SMike Pritchard.Xr iostat 8 , 250270d3d75SMike Pritchard.Xr vmstat 8 251dea673e9SRodney W. Grimes.Rs 2528b5c4af3SRuslan Ermilov.%T UNIX Implementation 2538b5c4af3SRuslan Ermilov.%A K. Thompson 254dea673e9SRodney W. Grimes.Re 255dea673e9SRodney W. Grimes.Sh BUGS 2567c0e6e50SPhilippe CharnierDoes not understand 2577c0e6e50SPhilippe Charnier.Tn NFS 2587c0e6e50SPhilippe Charnierswap servers. 259dea673e9SRodney W. Grimes.Sh HISTORY 260dea673e9SRodney W. GrimesThe 261e97407b4SRuslan Ermilov.Nm 262490d5836SPhilippe Charnierutility appeared in 263c0b0bcf4SMike Pritchard.Bx 4.0 . 264