pstat.8 (ed0051823057e576a8e86f421232888b53559e82) | pstat.8 (9c5cdfe0afd357dde6d63bc1780cf058764e3d72) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)pstat.8 8.5 (Berkeley) 5/13/94 | 1.\" Copyright (c) 1980, 1991, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)pstat.8 8.5 (Berkeley) 5/13/94 |
33.\" $Id: pstat.8,v 1.12 1997/02/22 16:12:15 peter Exp $ |
|
33.\" 34.Dd May 13, 1994 35.Dt PSTAT 8 36.Os BSD 4 37.Sh NAME | 34.\" 35.Dd May 13, 1994 36.Dt PSTAT 8 37.Os BSD 4 38.Sh NAME |
38.Nm pstat | 39.Nm pstat , 40.Nm swapinfo |
39.Nd display system data structures 40.Sh SYNOPSIS 41.Nm pstat | 41.Nd display system data structures 42.Sh SYNOPSIS 43.Nm pstat |
42.Op Fl Tfnstv | 44.Op Fl Tfiknstv |
43.Op Fl M Ar core 44.Op Fl N Ar system | 45.Op Fl M Ar core 46.Op Fl N Ar system |
47.Pp 48.Nm swapinfo 49.Op Fl k |
|
45.Sh DESCRIPTION 46.Nm Pstat 47displays open file entry, swap space utilization, 48terminal state, and vnode data structures. 49If 50.Ar corefile 51is given, the information is sought there, otherwise 52in 53.Pa /dev/kmem . 54The required namelist is taken from | 50.Sh DESCRIPTION 51.Nm Pstat 52displays open file entry, swap space utilization, 53terminal state, and vnode data structures. 54If 55.Ar corefile 56is given, the information is sought there, otherwise 57in 58.Pa /dev/kmem . 59The required namelist is taken from |
55.Pa /vmunix | 60.Pa /kernel |
56unless 57.Ar system 58is specified. | 61unless 62.Ar system 63is specified. |
59The 60.Fl n 61option specifies that devices should be printed out by major/minor 62number rather than by name. | |
63.Pp | 64.Pp |
65If invoked as 66.Nm swapinfo 67the 68.Fl s 69option is implied, and only the 70.Fl k 71option is legal. 72.Pp |
|
64Options are 65.Bl -tag -width indent | 73Options are 74.Bl -tag -width indent |
75.It Fl n 76Print devices out by major/minor instead of name. 77.It Fl k 78Print sizes in kilobytes, regardless of the setting of the BLOCKSIZE 79environment variable. |
|
66.It Fl T 67Prints the number of used and free slots in the several system tables 68and is useful for checking to see how large system tables have become 69if the system is under heavy load. 70.It Fl f 71Print the open file table with these headings: 72.Bl -tag -width indent 73.It LOC --- 45 unchanged lines hidden (view full) --- 119Print table for terminals 120with these headings: 121.Bl -tag -width indent 122.It RAW 123Number of characters in raw input queue. 124.It CAN 125Number of characters in canonicalized input queue. 126.It OUT | 80.It Fl T 81Prints the number of used and free slots in the several system tables 82and is useful for checking to see how large system tables have become 83if the system is under heavy load. 84.It Fl f 85Print the open file table with these headings: 86.Bl -tag -width indent 87.It LOC --- 45 unchanged lines hidden (view full) --- 133Print table for terminals 134with these headings: 135.Bl -tag -width indent 136.It RAW 137Number of characters in raw input queue. 138.It CAN 139Number of characters in canonicalized input queue. 140.It OUT |
127Number of characters in putput queue. | 141Number of characters in output queue. |
128.It MODE 129See 130.Xr tty 4 . 131.It ADDR 132Physical device address. 133.It DEL 134Number of delimiters (newlines) in canonicalized input queue. 135.It COL --- 6 unchanged lines hidden (view full) --- 142.It W 143waiting for open to complete 144.It O 145open 146.It F 147outq has been flushed during DMA 148.It C 149carrier is on | 142.It MODE 143See 144.Xr tty 4 . 145.It ADDR 146Physical device address. 147.It DEL 148Number of delimiters (newlines) in canonicalized input queue. 149.It COL --- 6 unchanged lines hidden (view full) --- 156.It W 157waiting for open to complete 158.It O 159open 160.It F 161outq has been flushed during DMA 162.It C 163carrier is on |
164.It c 165connection open |
|
150.It B 151busy doing output 152.It A | 166.It B 167busy doing output 168.It A |
153process is awaiting output | 169process is waiting for space in output queue 170.It a 171process is waiting for output to complete |
154.It X 155open for exclusive use 156.It S | 172.It X 173open for exclusive use 174.It S |
157output stopped 158.It H 159hangup on close | 175output stopped (ixon flow control) 176.It m 177output stopped (carrier flow control) 178.It o 179output stopped (CTS flow control) 180.It d 181output stopped (DSR flow control) 182.It K 183input stopped 184.It Y 185send SIGIO for input events 186.It D 187state for lowercase 188.Ql \e 189work 190.It E 191within a 192.Ql \e.../ 193for PRTRUB 194.It L 195next character is literal 196.It P 197retyping suspended input (PENDIN) 198.It N 199counting tab width, ignore FLUSHO 200.It l 201block mode input routine in use 202.It s 203i/o being snooped 204.It Z 205connection lost |
160.El | 206.El |
161.It PGRP | 207.It SESS 208Kernel address of the session structure. 209.It PGID |
162Process group for which this is controlling terminal. 163.It DISC | 210Process group for which this is controlling terminal. 211.It DISC |
164Line discipline; blank is old tty 165OTTYDISC | 212Line discipline; 213.Ql term 214for 215TTYDISC |
166or | 216or |
167.Ql new tty | 217.Ql ntty |
168for 169NTTYDISC 170or | 218for 219NTTYDISC 220or |
171.Ql net | 221.Ql tab |
172for | 222for |
173NETLDISC 174(see 175.Xr bk 4 ) . | 223TABLDISC 224or 225.Ql slip 226for 227SLIPDISC 228or 229.Ql ppp 230for 231PPPDISC. |
176.El 177.It Fl v 178Print the active vnodes. Each group of vnodes corresponding 179to a particular filesystem is preceded by a two line header. The 180first line consists of the following: 181.Pp 182.Df I 183.No *** MOUNT Em fstype from --- 101 unchanged lines hidden (view full) --- 285.It G 286lease was evicted (nqnfs) 287.El 288.El 289.It SIZ/RDEV 290Number of bytes in an ordinary file, or 291major and minor device of special file. 292.El | 232.El 233.It Fl v 234Print the active vnodes. Each group of vnodes corresponding 235to a particular filesystem is preceded by a two line header. The 236first line consists of the following: 237.Pp 238.Df I 239.No *** MOUNT Em fstype from --- 101 unchanged lines hidden (view full) --- 341.It G 342lease was evicted (nqnfs) 343.El 344.El 345.It SIZ/RDEV 346Number of bytes in an ordinary file, or 347major and minor device of special file. 348.El |
349.It Fl i 350Same as 351.Fl v , 352present for backwards-compatibility. |
|
293.El 294.Sh FILES 295.Bl -tag -width /dev/kmemxxx -compact | 353.El 354.Sh FILES 355.Bl -tag -width /dev/kmemxxx -compact |
296.It Pa /vmunix | 356.It Pa /kernel |
297namelist 298.It Pa /dev/kmem 299default source of tables 300.El 301.Sh SEE ALSO | 357namelist 358.It Pa /dev/kmem 359default source of tables 360.El 361.Sh SEE ALSO |
302.Xr iostat 1 , | |
303.Xr ps 1 , 304.Xr systat 1 , | 362.Xr ps 1 , 363.Xr systat 1 , |
305.Xr vmstat 1 , | |
306.Xr stat 2 , 307.Xr fs 5 , | 364.Xr stat 2 , 365.Xr fs 5 , |
366.Xr iostat 8 , 367.Xr vmstat 8 |
|
308.Rs 309.Rt Tn UNIX Rt Implementation , 310.Ra K. Thompson 311.Re 312.Sh BUGS | 368.Rs 369.Rt Tn UNIX Rt Implementation , 370.Ra K. Thompson 371.Re 372.Sh BUGS |
313Swap statistics are reported for all swap partitions compiled into the kernel, 314regardless of whether those partitions are being used. 315.Pp | |
316Does not understand NFS swap servers. 317.Sh HISTORY 318The 319.Nm pstat | 373Does not understand NFS swap servers. 374.Sh HISTORY 375The 376.Nm pstat |
320command appeared in 4.0BSD. | 377command appeared in 378.Bx 4.0 . |