1 .\" Copyright (c) 1980, 1991, 1993, 1994
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
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
32 .\" @(#)pstat.8 8.5 (Berkeley) 5/13/94
33 .\" $FreeBSD: src/usr.sbin/pstat/pstat.8,v 1.19.2.10 2002/07/12 09:12:49 des Exp $
34 .\" $DragonFly: src/usr.sbin/pstat/pstat.8,v 1.3 2006/02/17 19:40:21 swildner Exp $
42 .Nd display system data structures
55 displays open file entry, swap space utilization,
56 terminal state, and vnode data structures.
62 option is implied, and only the
66 The following options are available:
67 .Bl -tag -width indent
69 Print devices out by major/minor instead of name.
71 Print sizes in kilobytes, regardless of the setting of the
75 Print the number of used and free slots in several system tables.
76 This is useful for checking to see how large system tables have become
77 if the system is under heavy load.
79 Print the open file table with these headings:
80 .Bl -tag -width indent
82 The core location of this table entry.
84 The type of object the file table entry points to.
86 Miscellaneous state variables encoded thus:
88 .Bl -tag -width indent -compact
98 exclusive lock present
100 signal pgrp when data ready
103 Number of processes that know this open file.
105 Number of messages outstanding for this file.
107 The location of the vnode table entry or socket structure for this file.
113 Print information about swap space usage on all the
114 swap areas compiled into the kernel.
115 The first column is the device name of the partition. The next column is
116 the total space available in the partition. The
118 column indicates the total blocks used so far; the
120 column indicates how much space is remaining on each partition.
123 reports the percentage of space used.
125 If more than one partition is configured into the system, totals for all
126 of the statistics will be reported in the final line of the report.
128 If you supply the option again, as in
130 the system will display a breakdown of the swap bitmap/radix-tree.
132 Print table for terminals
134 .Bl -tag -width indent
136 Number of characters in raw input queue.
138 Number of characters in canonicalized input queue.
140 Number of characters in output queue.
145 Physical device address.
147 Number of delimiters (newlines) in canonicalized input queue.
149 Calculated column position of terminal.
151 Miscellaneous state variables encoded thus:
153 .Bl -tag -width indent -compact
155 delay timeout in progress
157 waiting for open to complete
161 outq has been flushed during DMA
169 process is waiting for space in output queue
171 process is waiting for output to complete
173 open for exclusive use
175 output stopped (ixon flow control)
177 output stopped (carrier flow control)
179 output stopped (CTS flow control)
181 output stopped (DSR flow control)
185 send SIGIO for input events
195 next character is literal
197 retyping suspended input (PENDIN)
199 counting tab width, ignore FLUSHO
201 block mode input routine in use
208 Kernel address of the session structure.
210 Process group for which this is controlling terminal.
234 Extract values associated with the name list from the specified core
235 instead of the default
238 Extract the name list from the specified system instead of the default
242 .Bl -tag -width /dev/memxxx -compact
246 default source of tables
256 .%T UNIX Implementation