PSTAT(1M) — UNIX Programmer’s Manual
NAME
pstat − print system facts
SYNOPSIS
pstat [ −aixptuf ] [ suboptions ] [ file ]
DESCRIPTION
Pstat interprets the contents of certain system tables. If file is given, the tables are sought there, otherwise in /dev/mem. The required namelist is taken from /unix. Options are
−a Under −p, describe all process slots rather than just active ones.
−i Print the inode table with the these headings:
LOCThe core location of this table entry.
FLAGSMiscellaneous state variables encoded thus:
Llocked
Uupdate time filsys(5)) must be corrected
Aaccess time must be corrected
Mfile system is mounted here
Wwanted by another process (L flag is on)
Tcontains a text file
Cchanged time must be corrected
CNTNumber of open file table entries for this inode.
DEVMajor and minor device number of file system in which this inode resides.
INOI-number within the device.
MODEMode bits, see chmod(2).
NLKNumber of links to this inode.
UIDUser ID of owner.
SIZ/DEVNumber of bytes in an ordinary file, or major and minor device of special file.
−x Print the text table with these headings:
LOCThe core location of this table entry.
FLAGSMiscellaneous state variables encoded thus:
Tptrace(2) in effect
Wtext not yet written on swap device
Lloading in progress
Klocked
wwanted (L flag is on)
DADDRDisk address in swap, measured in multiples of 512 bytes.
CADDRCore address, measured in multiples of 64 bytes.
SIZESize of text segment, measured in multiples of 64 bytes.
IPTRCore location of corresponding inode.
CNTNumber of processes using this text segment.
CCNTNumber of processes in core using this text segment.
−p Print process table for active processes with these headings:
LOCThe core location of this table entry.
SRun state encoded thus:
0no process
1waiting for some event
3runnable
4being created
5being terminated
6stopped under trace
FMiscellaneous state variables, or-ed together:
01loaded
02the scheduler process
04locked
010swapped out
020traced
040used in tracing
0100locked in by lock(2).
PRIScheduling priority, see nice(2).
SIGNALSignals received (signals 1-16 coded in bits 0-15),
UIDReal user ID.
TIMTime resident in seconds; times over 127 coded as 127.
CPUWeighted integral of CPU time, for scheduler.
NINice level, see nice(2).
PGRPProcess number of root of process group (the opener of the controlling terminal).
PIDThe process ID number.
PPIDThe process ID of parent process.
ADDRIf in core, the physical address of the ‘u-area’ of the process measured in multiples of 64 bytes. If swapped out, the position in the swap area measured in multiples of 512 bytes.
SIZESize of process image in multiples of 64 bytes.
WCHANWait channel number of a waiting process.
LINKLink pointer in list of runnable processes.
TEXTPIf text is pure, pointer to location of text table entry.
CLKTCountdown for alarm(2) measured in seconds.
−t Print table for terminals (only DH11 and DL11 handled) with these headings:
RAWNumber of characters in raw input queue.
CANNumber of characters in canonicalized input queue.
OUTNumber of characters in putput queue.
MODESee tty(4).
ADDRPhysical device address.
DELNumber of delimiters (newlines) in canonicalized input queue.
COLCalculated column position of terminal.
STATEMiscellaneous state variables encoded thus:
Wwaiting for open to complete
Oopen
Shas special (output) start routine
Ccarrier is on
Bbusy doing output
Aprocess is awaiting output
Xopen for exclusive use
Hhangup on close
PGRPProcess group for which this is controlling terminal.
−u print information about a user process; the next argument is its address as given by ps(1). The process must be in main memory, or the file used can be a core image and the address 0.
−f Print the open file table with these headings:
LOCThe core location of this table entry.
FLGMiscellaneous state variables encoded thus:
Ropen for reading
Wopen for writing
Ppipe
CNTNumber of processes that know this open file.
INOThe location of the inode table entry for this file.
OFFSThe file offset, see lseek(2).
FILES
/unixnamelist
/dev/memdefault source of tables
SEE ALSO
ps(1), stat(2), filsys(5)
K. Thompson, UNIX Implementation
7th Edition