PSTAT(C) XENIX System V PSTAT(C)
Name
pstat - Reports system information.
Syntax
pstat [ -aixpf ] [ -u ubase ] [ -c corefile ]
[ -n namelist ] [ file ]
Description
pstat interprets the contents of certain system tables.
pstat searches for these tables in /dev/mem and /dev/kmem.
With the file given, the tables are sought in the specified
file rather than /dev/mem. Similarly, the -c option allows
one to specify a corefile rather than /dev/kmem for the
search. The required namelist is taken from /xenix. Options
are:
-a Under -p, describe all process slots rather than just
active ones.
-i Print the inode table with these headings:
LOC The core location of this table entry.
FLAGS Miscellaneous state variables encoded thus:
L Locked
U Update time filesystem(F) must be
corrected
A Access time must be corrected
M File system is mounted here
W Wanted by another process (L flag is on)
T Contains a text file
C Changed time must be corrected
CNT Number of open file table entries for this
inode.
DEV Major and minor device number of file system
in which this inode resides.
INO I-number within the device.
MODE Mode bits, see chmod(S).
NLK Number of links to this inode.
UID User ID of owner.
SIZ/DEV Number of bytes in an ordinary file, or major
and minor device of special file.
-x Prints the text table with these headings:
LOC The core location of this table entry.
FLAGS Miscellaneous state variables encoded thus:
T ptrace(S) in effect
W Text not yet written on swap device
L Loading in progress
K Locked
w Wanted (L flag is on)
DADDR Disk address in swap, measured in multiples of
BSIZE bytes. (286 only)
CADDR Core address, measured in units of memory
Page 1 (printed 8/7/87)
PSTAT(C) XENIX System V PSTAT(C)
management resolution.
SIZE Size of text segment, measured in units of
memory management resolution. (286 only)
IPTR Core location of corresponding inode.
CNT Number of processes using this text segment.
CCNT Number of processes in core using this text
segment.
-p Prints process table for active processes with these
headings:
LOC The core location of this table entry.
S Run state encoded thus:
0 No process
1 Waiting for some event
3 Runnable
4 Being created
5 Being terminated
6 Stopped under trace
F Miscellaneous state variables, ORed together:
01 Loaded
02 The scheduler process
04 Locked
010 Swapped out
020 Traced
040 Used in tracing
0100 Locked in by lock(S).
PRI Scheduling priority, see nice(S).
SIGNAL Signals received (signals 1-16 coded in bits
0-15).
UID Real user ID.
TIM Time resident in seconds; times over 127 coded
as 127.
CPU Weighted integral of CPU time, for scheduler.
NI Nice level, see nice(S).
PGRP Process number of root of process group (the
opener of the controlling terminal).
PID The process ID number.
PPID The process ID of parent process.
ADDR If in core, the physical address of the ``u-
area'' of the process measured in units of
memory management resolution. If swapped out,
the position in the swap area is measured in
multiples of BSIZE bytes.
SIZE Size of process image, measured in units of
memory management resolution.
WCHAN Wait channel number of a waiting process.
LINK Link pointer in list of runnable processes.
TEXTP If text is pure, pointer to location of text
table entry.
CLKT Countdown for alarm(S) measured in seconds.
-u ubase
Page 2 (printed 8/7/87)
PSTAT(C) XENIX System V PSTAT(C)
Print information about a user process. Ubase is the
hexadecimal location of the process in main memory.
The address may be obtained by using the long listing
( -l option) of the ps(C) command.
-c corefile
Use the file corefile in place of /dev/kmem.
-n namelist
Use the file namelist as an alternate namelist in
place of /xenix.
-f Print the open file table with these headings:
LOC The core location of this table entry.
FLG Miscellaneous state variables:
R Open for reading
W Open for writing
P Pipe
CNT Number of processes that know this open file.
INO The location of the inode table entry for this
file.
OFFS The file offset, see lseek(S).
Files
/xenix Namelist
/dev/mem Default source of tables
See Also
ps(C), stat(S), filesystem(F)
Page 3 (printed 8/7/87)