.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" @(#)pstat.8 8.2 (Berkeley) %G%
.\" %sccs.include.redist.man%
.\" @(#)pstat.8 8.2 (Berkeley) %G%
.Nd display system data structures
displays open file entry, swap space utilization,
terminal state, and vnode data structures.
is given, the information is sought there, otherwise
The required namelist is taken from
option specifies that devices should be printed out by major/minor
number rather than by name.
Prints the number of used and free slots in the several system tables
and is useful for checking to see how large system tables have become
if the system is under heavy load.
Print the open file table with these headings:
The core location of this table entry.
The type of object the file table entry points to.
Miscellaneous state variables encoded thus:
signal pgrp when data ready
Number of processes that know this open file.
Number of messages outstanding for this file.
The location of the vnode table entry or socket structure for this file.
Print information about swap space usage on all the
swap areas compiled into the kernel.
The first column is the device name of the partition. The next column is
the total space available in the partition. The
column indicates the total blocks used so far; the
column indicates how much space is remaining on each partition.
reports the percentage of space used.
If more than one partition is configured into the system, totals for all
of the statistics will be reported in the final line of the report.
Print table for terminals
Number of characters in raw input queue.
Number of characters in canonicalized input queue.
Number of characters in putput queue.
Number of delimiters (newlines) in canonicalized input queue.
Calculated column position of terminal.
Miscellaneous state variables encoded thus:
delay timeout in progress
waiting for open to complete
outq has been flushed during DMA
process is awaiting output
Process group for which this is controlling terminal.
Line discipline; blank is old tty
Print the active vnodes. Each group of vnodes coresponding
to a particular filesystem is preceded by a two line header. The
first line consists of the following:
.No *** MOUNT Em fstype from
.Em ufs , nfs , mfs , or pc ;
is the filesystem is mounted from;
the filesystem is mounted on; and
of optional flags applied to the mount (see
.The second line is a header for the individual fields ,
the first part of which are fixed, and the second part are filesystem
type specific. The headers common to all vnodes are:
A list of letters representing vnode flags:
The number of references to this vnode.
The number of I/O buffers held by this vnode.
this is the inode number.
Miscellaneous filesystem specific state variables encoded thus:
access time must be corrected
wanted by another process (L flag is on)
changed time must be corrected
someone waiting for a lock
waiting for I/O buffer flush to complete
I/O buffers being flushed
locally modified data exists
non-cachable lease (nqnfs)
lease was evicted (nqnfs)
Number of bytes in an ordinary file, or
major and minor device of special file.
.Bl -tag -width /dev/kmemxxx -compact
.Rt Tn UNIX Rt Implementation ,
Swap statistics are reported for all swap partitions compiled into the kernel,
regardless of whether those partitions are being used.
Does not understand NFS swap servers.
command appeared in 4.0BSD.