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.\" @(#)pstat.8 8.4 (Berkeley) 4/19/94 5dea673e9SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 6dea673e9SRodney W. Grimes.\" modification, are permitted provided that the following conditions 7dea673e9SRodney W. Grimes.\" are met: 8dea673e9SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 9dea673e9SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 10dea673e9SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 11dea673e9SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 12dea673e9SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 13dea673e9SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 14dea673e9SRodney W. Grimes.\" must display the following acknowledgement: 15dea673e9SRodney W. Grimes.\" This product includes software developed by the University of 16dea673e9SRodney W. Grimes.\" California, Berkeley and its contributors. 17dea673e9SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 18dea673e9SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 19dea673e9SRodney W. Grimes.\" without specific prior written permission. 20dea673e9SRodney W. Grimes.\" 21dea673e9SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22dea673e9SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23dea673e9SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24dea673e9SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25dea673e9SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26dea673e9SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27dea673e9SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28dea673e9SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29dea673e9SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30dea673e9SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31dea673e9SRodney W. Grimes.\" SUCH DAMAGE. 32dea673e9SRodney W. Grimes.\" 33dea673e9SRodney W. Grimes.\" @(#)pstat.8 8.4 (Berkeley) 4/19/94 34dea673e9SRodney W. Grimes.\" 35dea673e9SRodney W. Grimes.Dd April 19, 1994 36dea673e9SRodney W. Grimes.Dt PSTAT 8 37dea673e9SRodney W. Grimes.Os BSD 4 38dea673e9SRodney W. Grimes.Sh NAME 39dea673e9SRodney W. Grimes.Nm pstat 40dea673e9SRodney W. Grimes.Nd display system data structures 41dea673e9SRodney W. Grimes.Sh SYNOPSIS 42dea673e9SRodney W. Grimes.Nm pstat 4359392fe2SPoul-Henning Kamp.Op Fl Tfknstv 44dea673e9SRodney W. Grimes.Op Fl M Ar core 45dea673e9SRodney W. Grimes.Op Fl N Ar system 4659392fe2SPoul-Henning Kamp.Pp 4759392fe2SPoul-Henning Kamp.Nm swapinfo 4859392fe2SPoul-Henning Kamp.Op Fl k 49dea673e9SRodney W. Grimes.Sh DESCRIPTION 50dea673e9SRodney W. Grimes.Nm Pstat 51dea673e9SRodney W. Grimesdisplays open file entry, swap space utilization, 52dea673e9SRodney W. Grimesterminal state, and vnode data structures. 53dea673e9SRodney W. GrimesIf 54dea673e9SRodney W. Grimes.Ar corefile 55dea673e9SRodney W. Grimesis given, the information is sought there, otherwise 56dea673e9SRodney W. Grimesin 57dea673e9SRodney W. Grimes.Pa /dev/kmem . 58dea673e9SRodney W. GrimesThe required namelist is taken from 59b3bfc719SDavid Greenman.Pa /kernel 60dea673e9SRodney W. Grimesunless 61dea673e9SRodney W. Grimes.Ar system 62dea673e9SRodney W. Grimesis specified. 6359392fe2SPoul-Henning Kamp.Pp 6459392fe2SPoul-Henning KampIf invoked as 6559392fe2SPoul-Henning Kamp.Nm swapinfo 6659392fe2SPoul-Henning Kampthe 6759392fe2SPoul-Henning Kamp.Fl s 6859392fe2SPoul-Henning Kampoption is implied, and only the 6959392fe2SPoul-Henning Kamp.Fl k 7059392fe2SPoul-Henning Kampoption is legal. 71dea673e9SRodney W. Grimes.Pp 72dea673e9SRodney W. GrimesOptions are 73dea673e9SRodney W. Grimes.Bl -tag -width indent 7459392fe2SPoul-Henning Kamp.It Fl n 7559392fe2SPoul-Henning KampPrint devices out by major/minor instead of name. 7659392fe2SPoul-Henning Kamp.It Fl k 7759392fe2SPoul-Henning KampPrint sizes in kilobytes, regardless of the setting of the BLOCKSIZE 7859392fe2SPoul-Henning Kampenvironment variable. 79dea673e9SRodney W. Grimes.It Fl T 80dea673e9SRodney W. GrimesPrints the number of used and free slots in the several system tables 81dea673e9SRodney W. Grimesand is useful for checking to see how large system tables have become 82dea673e9SRodney W. Grimesif the system is under heavy load. 83dea673e9SRodney W. Grimes.It Fl f 84dea673e9SRodney W. GrimesPrint the open file table with these headings: 85dea673e9SRodney W. Grimes.Bl -tag -width indent 86dea673e9SRodney W. Grimes.It LOC 87dea673e9SRodney W. GrimesThe core location of this table entry. 88dea673e9SRodney W. Grimes.It TYPE 89dea673e9SRodney W. GrimesThe type of object the file table entry points to. 90dea673e9SRodney W. Grimes.It FLG 91dea673e9SRodney W. GrimesMiscellaneous state variables encoded thus: 92dea673e9SRodney W. Grimes.Bl -tag -width indent 93dea673e9SRodney W. Grimes.It R 94dea673e9SRodney W. Grimesopen for reading 95dea673e9SRodney W. Grimes.It W 96dea673e9SRodney W. Grimesopen for writing 97dea673e9SRodney W. Grimes.It A 98dea673e9SRodney W. Grimesopen for appending 99dea673e9SRodney W. Grimes.It S 100dea673e9SRodney W. Grimesshared lock present 101dea673e9SRodney W. Grimes.It X 102dea673e9SRodney W. Grimesexclusive lock present 103dea673e9SRodney W. Grimes.It I 104dea673e9SRodney W. Grimessignal pgrp when data ready 105dea673e9SRodney W. Grimes.El 106dea673e9SRodney W. Grimes.It CNT 107dea673e9SRodney W. GrimesNumber of processes that know this open file. 108dea673e9SRodney W. Grimes.It MSG 109dea673e9SRodney W. GrimesNumber of messages outstanding for this file. 110dea673e9SRodney W. Grimes.It DATA 111dea673e9SRodney W. GrimesThe location of the vnode table entry or socket structure for this file. 112dea673e9SRodney W. Grimes.It OFFSET 113dea673e9SRodney W. GrimesThe file offset (see 114dea673e9SRodney W. Grimes.Xr lseek 2 ) . 115dea673e9SRodney W. Grimes.El 116dea673e9SRodney W. Grimes.It Fl s 117dea673e9SRodney W. GrimesPrint information about swap space usage on all the 118dea673e9SRodney W. Grimesswap areas compiled into the kernel. 119dea673e9SRodney W. GrimesThe first column is the device name of the partition. The next column is 120dea673e9SRodney W. Grimesthe total space available in the partition. The 121dea673e9SRodney W. Grimes.Ar Used 122dea673e9SRodney W. Grimescolumn indicates the total blocks used so far; the 123dea673e9SRodney W. Grimes.Ar Available 124dea673e9SRodney W. Grimescolumn indicates how much space is remaining on each partition. 125dea673e9SRodney W. GrimesThe 126dea673e9SRodney W. Grimes.Ar Capacity 127dea673e9SRodney W. Grimesreports the percentage of space used. 128dea673e9SRodney W. Grimes.Pp 129dea673e9SRodney W. GrimesIf more than one partition is configured into the system, totals for all 130dea673e9SRodney W. Grimesof the statistics will be reported in the final line of the report. 131dea673e9SRodney W. Grimes.It Fl t 132dea673e9SRodney W. GrimesPrint table for terminals 133dea673e9SRodney W. Grimeswith these headings: 134dea673e9SRodney W. Grimes.Bl -tag -width indent 135dea673e9SRodney W. Grimes.It RAW 136dea673e9SRodney W. GrimesNumber of characters in raw input queue. 137dea673e9SRodney W. Grimes.It CAN 138dea673e9SRodney W. GrimesNumber of characters in canonicalized input queue. 139dea673e9SRodney W. Grimes.It OUT 140dea673e9SRodney W. GrimesNumber of characters in putput queue. 141dea673e9SRodney W. Grimes.It MODE 142dea673e9SRodney W. GrimesSee 143dea673e9SRodney W. Grimes.Xr tty 4 . 144dea673e9SRodney W. Grimes.It ADDR 145dea673e9SRodney W. GrimesPhysical device address. 146dea673e9SRodney W. Grimes.It DEL 147dea673e9SRodney W. GrimesNumber of delimiters (newlines) in canonicalized input queue. 148dea673e9SRodney W. Grimes.It COL 149dea673e9SRodney W. GrimesCalculated column position of terminal. 150dea673e9SRodney W. Grimes.It STATE 151dea673e9SRodney W. GrimesMiscellaneous state variables encoded thus: 152dea673e9SRodney W. Grimes.Bl -tag -width indent 153dea673e9SRodney W. Grimes.It T 154dea673e9SRodney W. Grimesdelay timeout in progress 155dea673e9SRodney W. Grimes.It W 156dea673e9SRodney W. Grimeswaiting for open to complete 157dea673e9SRodney W. Grimes.It O 158dea673e9SRodney W. Grimesopen 159dea673e9SRodney W. Grimes.It F 160dea673e9SRodney W. Grimesoutq has been flushed during DMA 161dea673e9SRodney W. Grimes.It C 162dea673e9SRodney W. Grimescarrier is on 163dea673e9SRodney W. Grimes.It B 164dea673e9SRodney W. Grimesbusy doing output 165dea673e9SRodney W. Grimes.It A 166dea673e9SRodney W. Grimesprocess is awaiting output 167dea673e9SRodney W. Grimes.It X 168dea673e9SRodney W. Grimesopen for exclusive use 169dea673e9SRodney W. Grimes.It S 170dea673e9SRodney W. Grimesoutput stopped 171dea673e9SRodney W. Grimes.It H 172dea673e9SRodney W. Grimeshangup on close 173dea673e9SRodney W. Grimes.El 174dea673e9SRodney W. Grimes.It PGRP 175dea673e9SRodney W. GrimesProcess group for which this is controlling terminal. 176dea673e9SRodney W. Grimes.It DISC 177dea673e9SRodney W. GrimesLine discipline; blank is old tty 178dea673e9SRodney W. GrimesOTTYDISC 179dea673e9SRodney W. Grimesor 180dea673e9SRodney W. Grimes.Ql new tty 181dea673e9SRodney W. Grimesfor 182dea673e9SRodney W. GrimesNTTYDISC 183dea673e9SRodney W. Grimesor 184dea673e9SRodney W. Grimes.Ql net 185dea673e9SRodney W. Grimesfor 186dea673e9SRodney W. GrimesNETLDISC 187dea673e9SRodney W. Grimes(see 188dea673e9SRodney W. Grimes.Xr bk 4 ) . 189dea673e9SRodney W. Grimes.El 190dea673e9SRodney W. Grimes.It Fl v 191dea673e9SRodney W. GrimesPrint the active vnodes. Each group of vnodes corresponding 192dea673e9SRodney W. Grimesto a particular filesystem is preceded by a two line header. The 193dea673e9SRodney W. Grimesfirst line consists of the following: 194dea673e9SRodney W. Grimes.Pp 195dea673e9SRodney W. Grimes.Df I 196dea673e9SRodney W. Grimes.No *** MOUNT Em fstype from 197dea673e9SRodney W. Grimeson 198dea673e9SRodney W. Grimes.Em on fsflags 199dea673e9SRodney W. Grimes.De 200dea673e9SRodney W. Grimes.Pp 201dea673e9SRodney W. Grimeswhere 202dea673e9SRodney W. Grimes.Em fstype 203dea673e9SRodney W. Grimesis one of 204dea673e9SRodney W. Grimes.Em ufs , nfs , mfs , or pc ; 205dea673e9SRodney W. Grimes.Em from 206dea673e9SRodney W. Grimesis the filesystem is mounted from; 207dea673e9SRodney W. Grimes.Em on 208dea673e9SRodney W. Grimesis the directory 209dea673e9SRodney W. Grimesthe filesystem is mounted on; and 210dea673e9SRodney W. Grimes.Em fsflags 211dea673e9SRodney W. Grimesis a list 212dea673e9SRodney W. Grimesof optional flags applied to the mount (see 213dea673e9SRodney W. Grimes.Xr mount 8 ) . 214dea673e9SRodney W. Grimes.The second line is a header for the individual fields , 215dea673e9SRodney W. Grimesthe first part of which are fixed, and the second part are filesystem 216dea673e9SRodney W. Grimestype specific. The headers common to all vnodes are: 217dea673e9SRodney W. Grimes.Bl -tag -width indent 218dea673e9SRodney W. Grimes.It ADDR 219dea673e9SRodney W. GrimesLocation of this vnode. 220dea673e9SRodney W. Grimes.It TYP 221dea673e9SRodney W. GrimesFile type. 222dea673e9SRodney W. Grimes.It VFLAG 223dea673e9SRodney W. Grimes.Pp 224dea673e9SRodney W. GrimesA list of letters representing vnode flags: 225dea673e9SRodney W. Grimes.Bl -tag -width indent 226dea673e9SRodney W. Grimes.It R 227dea673e9SRodney W. Grimes\- VROOT 228dea673e9SRodney W. Grimes.It T 229dea673e9SRodney W. Grimes\- VTEXT 230dea673e9SRodney W. Grimes.It L 231dea673e9SRodney W. Grimes\- VXLOCK 232dea673e9SRodney W. Grimes.It W 233dea673e9SRodney W. Grimes\- VXWANT 234dea673e9SRodney W. Grimes.It E 235dea673e9SRodney W. Grimes\- VEXLOCK 236dea673e9SRodney W. Grimes.It S 237dea673e9SRodney W. Grimes\- VSHLOCK 238dea673e9SRodney W. Grimes.It T 239dea673e9SRodney W. Grimes\- VLWAIT 240dea673e9SRodney W. Grimes.It A 241dea673e9SRodney W. Grimes\- VALIASED 242dea673e9SRodney W. Grimes.It B 243dea673e9SRodney W. Grimes\- VBWAIT 244dea673e9SRodney W. Grimes.El 245dea673e9SRodney W. Grimes.Pp 246dea673e9SRodney W. Grimes.It USE 247dea673e9SRodney W. GrimesThe number of references to this vnode. 248dea673e9SRodney W. Grimes.It HOLD 249dea673e9SRodney W. GrimesThe number of I/O buffers held by this vnode. 250dea673e9SRodney W. Grimes.It FILEID 251dea673e9SRodney W. GrimesThe vnode fileid. 252dea673e9SRodney W. GrimesIn the case of 253dea673e9SRodney W. Grimes.Em ufs 254dea673e9SRodney W. Grimesthis is the inode number. 255dea673e9SRodney W. Grimes.It IFLAG 256dea673e9SRodney W. GrimesMiscellaneous filesystem specific state variables encoded thus: 257dea673e9SRodney W. Grimes.Bl -tag -width indent 258dea673e9SRodney W. Grimes.It "For ufs:" 259dea673e9SRodney W. Grimes.Pp 260dea673e9SRodney W. Grimes.Bl -tag -width indent 261dea673e9SRodney W. Grimes.It L 262dea673e9SRodney W. Grimeslocked 263dea673e9SRodney W. Grimes.It U 264dea673e9SRodney W. Grimesupdate time 265dea673e9SRodney W. Grimes.Pq Xr fs 5 266dea673e9SRodney W. Grimesmust be corrected 267dea673e9SRodney W. Grimes.It A 268dea673e9SRodney W. Grimesaccess time must be corrected 269dea673e9SRodney W. Grimes.It W 270dea673e9SRodney W. Grimeswanted by another process (L flag is on) 271dea673e9SRodney W. Grimes.It C 272dea673e9SRodney W. Grimeschanged time must be corrected 273dea673e9SRodney W. Grimes.It S 274dea673e9SRodney W. Grimesshared lock applied 275dea673e9SRodney W. Grimes.It E 276dea673e9SRodney W. Grimesexclusive lock applied 277dea673e9SRodney W. Grimes.It Z 278dea673e9SRodney W. Grimessomeone waiting for a lock 279dea673e9SRodney W. Grimes.It M 280dea673e9SRodney W. Grimescontains modifications 281dea673e9SRodney W. Grimes.It R 282dea673e9SRodney W. Grimeshas a rename in progress 283dea673e9SRodney W. Grimes.El 284dea673e9SRodney W. Grimes.It "For nfs:" 285dea673e9SRodney W. Grimes.Bl -tag -width indent 286dea673e9SRodney W. Grimes.It W 287dea673e9SRodney W. Grimeswaiting for I/O buffer flush to complete 288dea673e9SRodney W. Grimes.It P 289dea673e9SRodney W. GrimesI/O buffers being flushed 290dea673e9SRodney W. Grimes.It M 291dea673e9SRodney W. Grimeslocally modified data exists 292dea673e9SRodney W. Grimes.It E 293dea673e9SRodney W. Grimesan earlier write failed 294dea673e9SRodney W. Grimes.It X 295dea673e9SRodney W. Grimesnon-cacheable lease (nqnfs) 296dea673e9SRodney W. Grimes.It O 297dea673e9SRodney W. Grimeswrite lease (nqnfs) 298dea673e9SRodney W. Grimes.It G 299dea673e9SRodney W. Grimeslease was evicted (nqnfs) 300dea673e9SRodney W. Grimes.El 301dea673e9SRodney W. Grimes.El 302dea673e9SRodney W. Grimes.It SIZ/RDEV 303dea673e9SRodney W. GrimesNumber of bytes in an ordinary file, or 304dea673e9SRodney W. Grimesmajor and minor device of special file. 305dea673e9SRodney W. Grimes.El 306dea673e9SRodney W. Grimes.El 307dea673e9SRodney W. Grimes.Sh FILES 308dea673e9SRodney W. Grimes.Bl -tag -width /dev/kmemxxx -compact 309b3bfc719SDavid Greenman.It Pa /kernel 310dea673e9SRodney W. Grimesnamelist 311dea673e9SRodney W. Grimes.It Pa /dev/kmem 312dea673e9SRodney W. Grimesdefault source of tables 313dea673e9SRodney W. Grimes.El 314dea673e9SRodney W. Grimes.Sh SEE ALSO 315dea673e9SRodney W. Grimes.Xr iostat 1 , 316dea673e9SRodney W. Grimes.Xr ps 1 , 317dea673e9SRodney W. Grimes.Xr systat 1 , 318dea673e9SRodney W. Grimes.Xr vmstat 1 , 319dea673e9SRodney W. Grimes.Xr stat 2 , 320dea673e9SRodney W. Grimes.Xr fs 5 , 321dea673e9SRodney W. Grimes.Rs 322dea673e9SRodney W. Grimes.Rt Tn UNIX Rt Implementation , 323dea673e9SRodney W. Grimes.Ra K. Thompson 324dea673e9SRodney W. Grimes.Re 325dea673e9SRodney W. Grimes.Sh BUGS 326dea673e9SRodney W. GrimesDoes not understand NFS swap servers. 327dea673e9SRodney W. Grimes.Sh HISTORY 328dea673e9SRodney W. GrimesThe 329dea673e9SRodney W. Grimes.Nm pstat 330dea673e9SRodney W. Grimescommand appeared in 4.0BSD. 331