xref: /freebsd/usr.sbin/pstat/pstat.8 (revision d9961cfdb97c3a6095df8fee9c9ef9f0b490fa7a)
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
33d9961cfdSPhilippe Charnier.\"	$Id: pstat.8,v 1.14 1997/08/30 20:18:48 peter Exp $
34dea673e9SRodney W. Grimes.\"
359c5cdfe0SPeter Wemm.Dd May 13, 1994
36dea673e9SRodney W. Grimes.Dt PSTAT 8
37dea673e9SRodney W. Grimes.Os BSD 4
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
43dea673e9SRodney W. Grimes.Nm pstat
44d19eed81SMike Pritchard.Op Fl Tfiknstv
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
53dea673e9SRodney W. Grimes.Nm Pstat
54dea673e9SRodney W. Grimesdisplays open file entry, swap space utilization,
55dea673e9SRodney W. Grimesterminal state, and vnode data structures.
56dea673e9SRodney W. GrimesIf
57dea673e9SRodney W. Grimes.Ar corefile
58dea673e9SRodney W. Grimesis given, the information is sought there, otherwise
59dea673e9SRodney W. Grimesin
60d9961cfdSPhilippe Charnier.Pa /dev/mem .
61dea673e9SRodney W. GrimesThe required namelist is taken from
62b3bfc719SDavid Greenman.Pa /kernel
63dea673e9SRodney W. Grimesunless
64dea673e9SRodney W. Grimes.Ar system
65dea673e9SRodney W. Grimesis specified.
6659392fe2SPoul-Henning Kamp.Pp
6759392fe2SPoul-Henning KampIf invoked as
6859392fe2SPoul-Henning Kamp.Nm swapinfo
6959392fe2SPoul-Henning Kampthe
7059392fe2SPoul-Henning Kamp.Fl s
7159392fe2SPoul-Henning Kampoption is implied, and only the
7259392fe2SPoul-Henning Kamp.Fl k
7359392fe2SPoul-Henning Kampoption is legal.
74dea673e9SRodney W. Grimes.Pp
75d9961cfdSPhilippe CharnierThe following options are available:
76dea673e9SRodney W. Grimes.Bl -tag -width indent
7759392fe2SPoul-Henning Kamp.It Fl n
7859392fe2SPoul-Henning KampPrint devices out by major/minor instead of name.
7959392fe2SPoul-Henning Kamp.It Fl k
8059392fe2SPoul-Henning KampPrint sizes in kilobytes, regardless of the setting of the BLOCKSIZE
8159392fe2SPoul-Henning Kampenvironment variable.
82dea673e9SRodney W. Grimes.It Fl T
83d9961cfdSPhilippe CharnierPrint the number of used and free slots in the several system tables
84dea673e9SRodney W. Grimesand is useful for checking to see how large system tables have become
85dea673e9SRodney W. Grimesif the system is under heavy load.
86dea673e9SRodney W. Grimes.It Fl f
87dea673e9SRodney W. GrimesPrint the open file table with these headings:
88dea673e9SRodney W. Grimes.Bl -tag -width indent
89dea673e9SRodney W. Grimes.It LOC
90dea673e9SRodney W. GrimesThe core location of this table entry.
91dea673e9SRodney W. Grimes.It TYPE
92dea673e9SRodney W. GrimesThe type of object the file table entry points to.
93dea673e9SRodney W. Grimes.It FLG
94dea673e9SRodney W. GrimesMiscellaneous state variables encoded thus:
95dea673e9SRodney W. Grimes.Bl -tag -width indent
96dea673e9SRodney W. Grimes.It R
97dea673e9SRodney W. Grimesopen for reading
98dea673e9SRodney W. Grimes.It W
99dea673e9SRodney W. Grimesopen for writing
100dea673e9SRodney W. Grimes.It A
101dea673e9SRodney W. Grimesopen for appending
102dea673e9SRodney W. Grimes.It S
103dea673e9SRodney W. Grimesshared lock present
104dea673e9SRodney W. Grimes.It X
105dea673e9SRodney W. Grimesexclusive lock present
106dea673e9SRodney W. Grimes.It I
107dea673e9SRodney W. Grimessignal pgrp when data ready
108dea673e9SRodney W. Grimes.El
109dea673e9SRodney W. Grimes.It CNT
110dea673e9SRodney W. GrimesNumber of processes that know this open file.
111dea673e9SRodney W. Grimes.It MSG
112dea673e9SRodney W. GrimesNumber of messages outstanding for this file.
113dea673e9SRodney W. Grimes.It DATA
114dea673e9SRodney W. GrimesThe location of the vnode table entry or socket structure for this file.
115dea673e9SRodney W. Grimes.It OFFSET
116dea673e9SRodney W. GrimesThe file offset (see
117dea673e9SRodney W. Grimes.Xr lseek 2 ) .
118dea673e9SRodney W. Grimes.El
119dea673e9SRodney W. Grimes.It Fl s
120dea673e9SRodney W. GrimesPrint information about swap space usage on all the
121dea673e9SRodney W. Grimesswap areas compiled into the kernel.
122dea673e9SRodney W. GrimesThe first column is the device name of the partition.  The next column is
123dea673e9SRodney W. Grimesthe total space available in the partition.  The
124dea673e9SRodney W. Grimes.Ar Used
125dea673e9SRodney W. Grimescolumn indicates the total blocks used so far;  the
126dea673e9SRodney W. Grimes.Ar Available
127dea673e9SRodney W. Grimescolumn indicates how much space is remaining on each partition.
128dea673e9SRodney W. GrimesThe
129dea673e9SRodney W. Grimes.Ar Capacity
130dea673e9SRodney W. Grimesreports the percentage of space used.
131dea673e9SRodney W. Grimes.Pp
132dea673e9SRodney W. GrimesIf more than one partition is configured into the system, totals for all
133dea673e9SRodney W. Grimesof the statistics will be reported in the final line of the report.
134dea673e9SRodney W. Grimes.It Fl t
135dea673e9SRodney W. GrimesPrint table for terminals
136dea673e9SRodney W. Grimeswith these headings:
137dea673e9SRodney W. Grimes.Bl -tag -width indent
138dea673e9SRodney W. Grimes.It RAW
139dea673e9SRodney W. GrimesNumber of characters in raw input queue.
140dea673e9SRodney W. Grimes.It CAN
141dea673e9SRodney W. GrimesNumber of characters in canonicalized input queue.
142dea673e9SRodney W. Grimes.It OUT
143c2dc07c8SAlexander LangerNumber of characters in output queue.
144dea673e9SRodney W. Grimes.It MODE
145dea673e9SRodney W. GrimesSee
146dea673e9SRodney W. Grimes.Xr tty 4 .
147dea673e9SRodney W. Grimes.It ADDR
148dea673e9SRodney W. GrimesPhysical device address.
149dea673e9SRodney W. Grimes.It DEL
150dea673e9SRodney W. GrimesNumber of delimiters (newlines) in canonicalized input queue.
151dea673e9SRodney W. Grimes.It COL
152dea673e9SRodney W. GrimesCalculated column position of terminal.
153dea673e9SRodney W. Grimes.It STATE
154dea673e9SRodney W. GrimesMiscellaneous state variables encoded thus:
155dea673e9SRodney W. Grimes.Bl -tag -width indent
156dea673e9SRodney W. Grimes.It T
157dea673e9SRodney W. Grimesdelay timeout in progress
158dea673e9SRodney W. Grimes.It W
159dea673e9SRodney W. Grimeswaiting for open to complete
160dea673e9SRodney W. Grimes.It O
161dea673e9SRodney W. Grimesopen
162dea673e9SRodney W. Grimes.It F
163dea673e9SRodney W. Grimesoutq has been flushed during DMA
164dea673e9SRodney W. Grimes.It C
165dea673e9SRodney W. Grimescarrier is on
166283fecc1SBruce Evans.It c
167283fecc1SBruce Evansconnection open
168dea673e9SRodney W. Grimes.It B
169dea673e9SRodney W. Grimesbusy doing output
170dea673e9SRodney W. Grimes.It A
171283fecc1SBruce Evansprocess is waiting for space in output queue
172283fecc1SBruce Evans.It a
173283fecc1SBruce Evansprocess is waiting for output to complete
174dea673e9SRodney W. Grimes.It X
175dea673e9SRodney W. Grimesopen for exclusive use
176dea673e9SRodney W. Grimes.It S
177283fecc1SBruce Evansoutput stopped (ixon flow control)
178283fecc1SBruce Evans.It m
179283fecc1SBruce Evansoutput stopped (carrier flow control)
180283fecc1SBruce Evans.It o
181283fecc1SBruce Evansoutput stopped (CTS flow control)
182283fecc1SBruce Evans.It d
183283fecc1SBruce Evansoutput stopped (DSR flow control)
184283fecc1SBruce Evans.It K
185283fecc1SBruce Evansinput stopped
186283fecc1SBruce Evans.It Y
187283fecc1SBruce Evanssend SIGIO for input events
1883f692954SBruce Evans.It D
1893f692954SBruce Evansstate for lowercase
1903f692954SBruce Evans.Ql \e
1913f692954SBruce Evanswork
1923f692954SBruce Evans.It E
1933f692954SBruce Evanswithin a
1943f692954SBruce Evans.Ql \e.../
1953f692954SBruce Evansfor PRTRUB
1963f692954SBruce Evans.It L
1973f692954SBruce Evansnext character is literal
1983f692954SBruce Evans.It P
1993f692954SBruce Evansretyping suspended input (PENDIN)
2003f692954SBruce Evans.It N
2013f692954SBruce Evanscounting tab width, ignore FLUSHO
202283fecc1SBruce Evans.It l
203283fecc1SBruce Evansblock mode input routine in use
204283fecc1SBruce Evans.It s
205283fecc1SBruce Evansi/o being snooped
206283fecc1SBruce Evans.It Z
207283fecc1SBruce Evansconnection lost
208dea673e9SRodney W. Grimes.El
2093f692954SBruce Evans.It SESS
2103f692954SBruce EvansKernel address of the session structure.
2113f692954SBruce Evans.It PGID
212dea673e9SRodney W. GrimesProcess group for which this is controlling terminal.
213dea673e9SRodney W. Grimes.It DISC
214283fecc1SBruce EvansLine discipline;
215283fecc1SBruce Evans.Ql term
216283fecc1SBruce Evansfor
217283fecc1SBruce EvansTTYDISC
218dea673e9SRodney W. Grimesor
219283fecc1SBruce Evans.Ql ntty
220dea673e9SRodney W. Grimesfor
221dea673e9SRodney W. GrimesNTTYDISC
222dea673e9SRodney W. Grimesor
223283fecc1SBruce Evans.Ql tab
224dea673e9SRodney W. Grimesfor
225283fecc1SBruce EvansTABLDISC
226283fecc1SBruce Evansor
227283fecc1SBruce Evans.Ql slip
228283fecc1SBruce Evansfor
229283fecc1SBruce EvansSLIPDISC
230283fecc1SBruce Evansor
231283fecc1SBruce Evans.Ql ppp
232283fecc1SBruce Evansfor
233283fecc1SBruce EvansPPPDISC.
234dea673e9SRodney W. Grimes.El
235dea673e9SRodney W. Grimes.It Fl v
236dea673e9SRodney W. GrimesPrint the active vnodes.  Each group of vnodes corresponding
237dea673e9SRodney W. Grimesto a particular filesystem is preceded by a two line header.  The
238dea673e9SRodney W. Grimesfirst line consists of the following:
239dea673e9SRodney W. Grimes.Pp
240dea673e9SRodney W. Grimes.Df I
241dea673e9SRodney W. Grimes.No *** MOUNT Em fstype from
242dea673e9SRodney W. Grimeson
243dea673e9SRodney W. Grimes.Em on fsflags
244dea673e9SRodney W. Grimes.De
245dea673e9SRodney W. Grimes.Pp
246dea673e9SRodney W. Grimeswhere
247dea673e9SRodney W. Grimes.Em fstype
248dea673e9SRodney W. Grimesis one of
249dea673e9SRodney W. Grimes.Em ufs , nfs , mfs , or pc ;
250dea673e9SRodney W. Grimes.Em from
251dea673e9SRodney W. Grimesis the filesystem is mounted from;
252dea673e9SRodney W. Grimes.Em on
253dea673e9SRodney W. Grimesis the directory
254dea673e9SRodney W. Grimesthe filesystem is mounted on; and
255dea673e9SRodney W. Grimes.Em fsflags
256dea673e9SRodney W. Grimesis a list
257dea673e9SRodney W. Grimesof optional flags applied to the mount (see
258dea673e9SRodney W. Grimes.Xr mount 8 ) .
259dea673e9SRodney W. Grimes.The second line is a header for the individual fields ,
260dea673e9SRodney W. Grimesthe first part of which are fixed, and the second part are filesystem
261dea673e9SRodney W. Grimestype specific.  The headers common to all vnodes are:
262dea673e9SRodney W. Grimes.Bl -tag -width indent
263dea673e9SRodney W. Grimes.It ADDR
264dea673e9SRodney W. GrimesLocation of this vnode.
265dea673e9SRodney W. Grimes.It TYP
266dea673e9SRodney W. GrimesFile type.
267dea673e9SRodney W. Grimes.It VFLAG
268dea673e9SRodney W. Grimes.Pp
269dea673e9SRodney W. GrimesA list of letters representing vnode flags:
270dea673e9SRodney W. Grimes.Bl -tag -width indent
271dea673e9SRodney W. Grimes.It R
272dea673e9SRodney W. Grimes\- VROOT
273dea673e9SRodney W. Grimes.It T
274dea673e9SRodney W. Grimes\- VTEXT
275fdaad796SPeter Wemm.It S
276fdaad796SPeter Wemm\- VSYSTEM
277fdaad796SPeter Wemm.It t
278fdaad796SPeter Wemm\- VISTTY
279dea673e9SRodney W. Grimes.It L
280dea673e9SRodney W. Grimes\- VXLOCK
281dea673e9SRodney W. Grimes.It W
282dea673e9SRodney W. Grimes\- VXWANT
283dea673e9SRodney W. Grimes.It B
284dea673e9SRodney W. Grimes\- VBWAIT
285fdaad796SPeter Wemm.It A
286fdaad796SPeter Wemm\- VALIASED
287fdaad796SPeter Wemm.It V
288fdaad796SPeter Wemm\- VVMIO
289fdaad796SPeter Wemm.It a
290fdaad796SPeter Wemm\- VAGE
291fdaad796SPeter Wemm.It l
292fdaad796SPeter Wemm\- VOLOCK
293fdaad796SPeter Wemm.It w
294fdaad796SPeter Wemm\- VOWANT
295dea673e9SRodney W. Grimes.El
296dea673e9SRodney W. Grimes.Pp
297dea673e9SRodney W. Grimes.It USE
298dea673e9SRodney W. GrimesThe number of references to this vnode.
299dea673e9SRodney W. Grimes.It HOLD
300dea673e9SRodney W. GrimesThe number of I/O buffers held by this vnode.
301dea673e9SRodney W. Grimes.It FILEID
302dea673e9SRodney W. GrimesThe vnode fileid.
303dea673e9SRodney W. GrimesIn the case of
304dea673e9SRodney W. Grimes.Em ufs
305dea673e9SRodney W. Grimesthis is the inode number.
306dea673e9SRodney W. Grimes.It IFLAG
307dea673e9SRodney W. GrimesMiscellaneous filesystem specific state variables encoded thus:
308dea673e9SRodney W. Grimes.Bl -tag -width indent
309dea673e9SRodney W. Grimes.It "For ufs:"
310dea673e9SRodney W. Grimes.Pp
311dea673e9SRodney W. Grimes.Bl -tag -width indent
312dea673e9SRodney W. Grimes.It L
313dea673e9SRodney W. Grimeslocked
314dea673e9SRodney W. Grimes.It U
315dea673e9SRodney W. Grimesupdate time
316dea673e9SRodney W. Grimes.Pq Xr fs 5
317dea673e9SRodney W. Grimesmust be corrected
318dea673e9SRodney W. Grimes.It A
319dea673e9SRodney W. Grimesaccess time must be corrected
320dea673e9SRodney W. Grimes.It W
321dea673e9SRodney W. Grimeswanted by another process (L flag is on)
322dea673e9SRodney W. Grimes.It C
323dea673e9SRodney W. Grimeschanged time must be corrected
324dea673e9SRodney W. Grimes.It S
325dea673e9SRodney W. Grimesshared lock applied
326dea673e9SRodney W. Grimes.It E
327dea673e9SRodney W. Grimesexclusive lock applied
328dea673e9SRodney W. Grimes.It Z
329dea673e9SRodney W. Grimessomeone waiting for a lock
330dea673e9SRodney W. Grimes.It M
331dea673e9SRodney W. Grimescontains modifications
332dea673e9SRodney W. Grimes.It R
333dea673e9SRodney W. Grimeshas a rename in progress
334dea673e9SRodney W. Grimes.El
335dea673e9SRodney W. Grimes.It "For nfs:"
336dea673e9SRodney W. Grimes.Bl -tag -width indent
337dea673e9SRodney W. Grimes.It W
338dea673e9SRodney W. Grimeswaiting for I/O buffer flush to complete
339dea673e9SRodney W. Grimes.It P
340dea673e9SRodney W. GrimesI/O buffers being flushed
341dea673e9SRodney W. Grimes.It M
342dea673e9SRodney W. Grimeslocally modified data exists
343dea673e9SRodney W. Grimes.It E
344dea673e9SRodney W. Grimesan earlier write failed
345dea673e9SRodney W. Grimes.It X
346dea673e9SRodney W. Grimesnon-cacheable lease (nqnfs)
347dea673e9SRodney W. Grimes.It O
348dea673e9SRodney W. Grimeswrite lease (nqnfs)
349dea673e9SRodney W. Grimes.It G
350dea673e9SRodney W. Grimeslease was evicted (nqnfs)
351dea673e9SRodney W. Grimes.El
352dea673e9SRodney W. Grimes.El
353dea673e9SRodney W. Grimes.It SIZ/RDEV
354dea673e9SRodney W. GrimesNumber of bytes in an ordinary file, or
355dea673e9SRodney W. Grimesmajor and minor device of special file.
356dea673e9SRodney W. Grimes.El
357d19eed81SMike Pritchard.It Fl i
358d19eed81SMike PritchardSame as
359d19eed81SMike Pritchard.Fl v ,
360d19eed81SMike Pritchardpresent for backwards-compatibility.
361dea673e9SRodney W. Grimes.El
362dea673e9SRodney W. Grimes.Sh FILES
363d9961cfdSPhilippe Charnier.Bl -tag -width /dev/memxxx -compact
364b3bfc719SDavid Greenman.It Pa /kernel
365dea673e9SRodney W. Grimesnamelist
366d9961cfdSPhilippe Charnier.It Pa /dev/mem
367dea673e9SRodney W. Grimesdefault source of tables
368dea673e9SRodney W. Grimes.El
369dea673e9SRodney W. Grimes.Sh SEE ALSO
370dea673e9SRodney W. Grimes.Xr ps 1 ,
371dea673e9SRodney W. Grimes.Xr systat 1 ,
372dea673e9SRodney W. Grimes.Xr stat 2 ,
373dea673e9SRodney W. Grimes.Xr fs 5 ,
374270d3d75SMike Pritchard.Xr iostat 8 ,
375270d3d75SMike Pritchard.Xr vmstat 8
376dea673e9SRodney W. Grimes.Rs
377dea673e9SRodney W. Grimes.Rt Tn UNIX Rt Implementation ,
378dea673e9SRodney W. Grimes.Ra K. Thompson
379dea673e9SRodney W. Grimes.Re
380dea673e9SRodney W. Grimes.Sh BUGS
381dea673e9SRodney W. GrimesDoes not understand NFS swap servers.
382dea673e9SRodney W. Grimes.Sh HISTORY
383dea673e9SRodney W. GrimesThe
384dea673e9SRodney W. Grimes.Nm pstat
385c0b0bcf4SMike Pritchardcommand appeared in
386c0b0bcf4SMike Pritchard.Bx 4.0 .
387