man.bsd.lv manual page server

Manual Page Search Parameters
PSTAT(1M) PSTAT(1M)

pstat - print system facts

pstat [ -aixptuf ] [ suboptions ] [ file ]

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

Under -p, describe all process slots rather than just active ones.
Print the inode table with the these headings:
The core location of this table entry.
Miscellaneous state variables encoded thus:
locked
update time filsys(5)) must be corrected
access time must be corrected
file system is mounted here
wanted by another process (L flag is on)
contains a text file
changed time must be corrected
Number of open file table entries for this inode.
Major and minor device number of file system in which this inode resides.
I-number within the device.
Mode bits, see chmod(2).
Number of links to this inode.
User ID of owner.
Number of bytes in an ordinary file, or major and minor device of special file.
Print the text table with these headings:
The core location of this table entry.
Miscellaneous state variables encoded thus:
ptrace(2) in effect
text not yet written on swap device
loading in progress
locked
wanted (L flag is on)
Disk address in swap, measured in multiples of 512 bytes.
Core address, measured in multiples of 64 bytes.
Size of text segment, measured in multiples of 64 bytes.
Core location of corresponding inode.
Number of processes using this text segment.
Number of processes in core using this text segment.
Print process table for active processes with these headings:
The core location of this table entry.
Run state encoded thus:
0
no process
1
waiting for some event
3
runnable
4
being created
5
being terminated
6
stopped under trace
Miscellaneous state variables, or-ed together:
01
loaded
02
the scheduler process
04
locked
010
swapped out
020
traced
040
used in tracing
0100
locked in by lock(2).
Scheduling priority, see nice(2).
Signals received (signals 1-16 coded in bits 0-15),
Real user ID.
Time resident in seconds; times over 127 coded as 127.
Weighted integral of CPU time, for scheduler.
Nice level, see nice(2).
Process number of root of process group (the opener of the controlling terminal).
The process ID number.
The process ID of parent process.
If 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.
Size of process image in multiples of 64 bytes.
Wait channel number of a waiting process.
Link pointer in list of runnable processes.
If text is pure, pointer to location of text table entry.
Countdown for alarm(2) measured in seconds.
Print table for terminals (only DH11 and DL11 handled) with these headings:
Number of characters in raw input queue.
Number of characters in canonicalized input queue.
Number of characters in putput queue.
See tty(4).
Physical device address.
Number of delimiters (newlines) in canonicalized input queue.
Calculated column position of terminal.
Miscellaneous state variables encoded thus:
waiting for open to complete
open
has special (output) start routine
carrier is on
busy doing output
process is awaiting output
open for exclusive use
hangup on close
Process group for which this is controlling terminal.
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.
Print the open file table with these headings:
The core location of this table entry.
Miscellaneous state variables encoded thus:
open for reading
open for writing
pipe
Number of processes that know this open file.
The location of the inode table entry for this file.
The file offset, see lseek(2).

/unix namelist
/dev/mem default source of tables

ps(1), stat(2), filsys(5)
K. Thompson, UNIX Implementation

UNIX-7