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 .\" 4. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)pstat.8 8.5 (Berkeley) 5/13/94
29 .\" $FreeBSD: src/usr.sbin/pstat/pstat.8,v 1.19.2.10 2002/07/12 09:12:49 des Exp $
30 .\" $DragonFly: src/usr.sbin/pstat/pstat.8,v 1.5 2008/09/02 11:50:46 matthias Exp $
38 .Nd display system data structures
51 displays open file entry, swap space utilization,
52 terminal state, and vnode data structures.
58 option is implied, and only the
62 The following options are available:
63 .Bl -tag -width indent
65 Print devices out by major/minor instead of name.
67 Print sizes in kilobytes, regardless of the setting of the
71 Print the number of used and free slots in several system tables.
72 This is useful for checking to see how large system tables have become
73 if the system is under heavy load.
75 Print the open file table with these headings:
76 .Bl -tag -width indent
78 The core location of this table entry.
80 The type of object the file table entry points to.
82 Miscellaneous state variables encoded thus:
84 .Bl -tag -width indent -compact
94 exclusive lock present
96 signal pgrp when data ready
99 Number of processes that know this open file.
101 Number of messages outstanding for this file.
103 The location of the vnode table entry or socket structure for this file.
109 Print information about swap space usage on all the
110 swap areas compiled into the kernel.
111 The first column is the device name of the partition. The next column is
112 the total space available in the partition. The
114 column indicates the total blocks used so far; the
116 column indicates how much space is remaining on each partition.
119 reports the percentage of space used.
121 If more than one partition is configured into the system, totals for all
122 of the statistics will be reported in the final line of the report.
124 If you supply the option again, as in
126 the system will display a breakdown of the swap bitmap/radix-tree.
128 Print table for terminals
130 .Bl -tag -width indent
132 Number of characters in raw input queue.
134 Number of characters in canonicalized input queue.
136 Number of characters in output queue.
141 Physical device address.
143 Number of delimiters (newlines) in canonicalized input queue.
145 Calculated column position of terminal.
147 Miscellaneous state variables encoded thus:
149 .Bl -tag -width indent -compact
151 delay timeout in progress
153 waiting for open to complete
157 outq has been flushed during DMA
165 process is waiting for space in output queue
167 process is waiting for output to complete
169 open for exclusive use
171 output stopped (ixon flow control)
173 output stopped (carrier flow control)
175 output stopped (CTS flow control)
177 output stopped (DSR flow control)
193 next character is literal
195 retyping suspended input (PENDIN)
197 counting tab width, ignore FLUSHO
199 block mode input routine in use
206 Kernel address of the session structure.
208 Process group for which this is controlling terminal.
232 Extract values associated with the name list from the specified core
233 instead of the default
236 Extract the name list from the specified system instead of the default
240 .Bl -tag -width /dev/memxxx -compact
244 default source of tables
255 .%T UNIX Implementation