1PSTAT(1M) PSTAT(1M)
2
3
4
6 pstat - print system facts
7
9 pstat [ -aixptuf ] [ suboptions ] [ file ]
10
12 Pstat interprets the contents of certain system tables. If file is
13 given, the tables are sought there, otherwise in /dev/mem. The
14 required namelist is taken from /unix. Options are
15
16 -a Under -p, describe all process slots rather than just active
17 ones.
18
19 -i Print the inode table with the these headings:
20
21 LOC The core location of this table entry.
22 FLAGS Miscellaneous state variables encoded thus:
23 L locked
24 U update time filsys(5)) must be corrected
25 A access time must be corrected
26 M file system is mounted here
27 W wanted by another process (L flag is on)
28 T contains a text file
29 C changed time must be corrected
30 CNT Number of open file table entries for this inode.
31 DEV Major and minor device number of file system in which this inode
32 resides.
33 INO I-number within the device.
34 MODE Mode bits, see chmod(2).
35 NLK Number of links to this inode.
36 UID User ID of owner.
37 SIZ/DEV
38 Number of bytes in an ordinary file, or major and minor device of
39 special file.
40
41 -x Print the text table with these headings:
42
43 LOC The core location of this table entry.
44 FLAGS Miscellaneous state variables encoded thus:
45 T ptrace(2) in effect
46 W text not yet written on swap device
47 L loading in progress
48 K locked
49 w wanted (L flag is on)
50
51 DADDR Disk address in swap, measured in multiples of 512 bytes.
52
53 CADDR Core address, measured in multiples of 64 bytes.
54
55 SIZE Size of text segment, measured in multiples of 64 bytes.
56
57 IPTR Core location of corresponding inode.
58
59 CNT Number of processes using this text segment.
60
61 CCNT Number of processes in core using this text segment.
62
63 -p Print process table for active processes with these headings:
64
65 LOC The core location of this table entry.
66 S Run state encoded thus:
67 0 no process
68 1 waiting for some event
69 3 runnable
70 4 being created
71 5 being terminated
72 6 stopped under trace
73 F Miscellaneous state variables, or-ed together:
74 01 loaded
75 02 the scheduler process
76 04 locked
77 010 swapped out
78 020 traced
79 040 used in tracing
80 0100 locked in by lock(2).
81 PRI Scheduling priority, see nice(2).
82 SIGNAL
83 Signals received (signals 1-16 coded in bits 0-15),
84 UID Real user ID.
85 TIM Time resident in seconds; times over 127 coded as 127.
86 CPU Weighted integral of CPU time, for scheduler.
87 NI Nice level, see nice(2).
88 PGRP Process number of root of process group (the opener of the con‐
89 trolling terminal).
90 PID The process ID number.
91 PPID The process ID of parent process.
92 ADDR If in core, the physical address of the `u-area' of the process
93 measured in multiples of 64 bytes. If swapped out, the position
94 in the swap area measured in multiples of 512 bytes.
95 SIZE Size of process image in multiples of 64 bytes.
96 WCHAN Wait channel number of a waiting process.
97 LINK Link pointer in list of runnable processes.
98 TEXTP If text is pure, pointer to location of text table entry.
99 CLKT Countdown for alarm(2) measured in seconds.
100
101 -t Print table for terminals (only DH11 and DL11 handled) with these
102 headings:
103
104 RAW Number of characters in raw input queue.
105 CAN Number of characters in canonicalized input queue.
106 OUT Number of characters in putput queue.
107 MODE See tty(4).
108 ADDR Physical device address.
109 DEL Number of delimiters (newlines) in canonicalized input queue.
110 COL Calculated column position of terminal.
111 STATE Miscellaneous state variables encoded thus:
112 W waiting for open to complete
113 O open
114 S has special (output) start routine
115 C carrier is on
116 B busy doing output
117 A process is awaiting output
118 X open for exclusive use
119 H hangup on close
120 PGRP Process group for which this is controlling terminal.
121
122 -u print information about a user process; the next argument is its
123 address as given by ps(1). The process must be in main memory,
124 or the file used can be a core image and the address 0.
125
126 -f Print the open file table with these headings:
127
128 LOC The core location of this table entry.
129 FLG Miscellaneous state variables encoded thus:
130 R open for reading
131 W open for writing
132 P pipe
133 CNT Number of processes that know this open file.
134 INO The location of the inode table entry for this file.
135 OFFS The file offset, see lseek(2).
136
138 /unix namelist
139 /dev/mem default source of tables
140
142 ps(1), stat(2), filsys(5)
143 K. Thompson, UNIX Implementation
144
145
146
147 PSTAT(1M)