PSTAT(8) BSD System Manager's Manual PSTAT(8) NNAAMMEE ppssttaatt - display system data structures SSYYNNOOPPSSIISS ppssttaatt [--TTffnnssttvv] [--MM _c_o_r_e] [--NN _s_y_s_t_e_m] DDEESSCCRRIIPPTTIIOONN PPssttaatt displays open file entry, swap space utilization, terminal state, and vnode data structures. If _c_o_r_e_f_i_l_e is given, the information is sought there, otherwise in _/_d_e_v_/_k_m_e_m. The required namelist is taken from _/_v_m_u_n_i_x unless _s_y_s_t_e_m is specified. The --nn option specifies that devices should be printed out by major/minor number rather than by name. Options are --TT 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. --ff Print the open file table with these headings: LOC The core location of this table entry. TYPE The type of object the file table entry points to. FLG Miscellaneous state variables encoded thus: R open for reading W open for writing A open for appending S shared lock present X exclusive lock present I signal pgrp when data ready CNT Number of processes that know this open file. MSG Number of messages outstanding for this file. DATA The location of the vnode table entry or socket structure for this file. OFFSET The file offset (see lseek(2)). --ss 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 _U_s_e_d column indicates the total blocks used so far; the _A_v_a_i_l_a_b_l_e column indicates how much space is remain- ing on each partition. The _C_a_p_a_c_i_t_y 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. --tt Print table for terminals with these headings: RAW Number of characters in raw input queue. CAN Number of characters in canonicalized input queue. OUT Number of characters in putput queue. MODE See tty(4). ADDR Physical device address. DEL Number of delimiters (newlines) in canonicalized input queue. COL Calculated column position of terminal. STATE Miscellaneous state variables encoded thus: T delay timeout in progress W waiting for open to complete O open F outq has been flushed during DMA C carrier is on B busy doing output A process is awaiting output X open for exclusive use S output stopped H hangup on close PGRP Process group for which this is controlling terminal. DISC Line discipline; blank is old tty OTTYDISC or `new tty' for NTTYDISC or `net' for NETLDISC (see bk(4)). --vv 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: *** MOUNT _f_s_t_y_p_e _f_r_o_m on _o_n _f_s_f_l_a_g_s where _f_s_t_y_p_e is one of _u_f_s, _n_f_s, _m_f_s, _o_r _p_c; _f_r_o_m is the filesys- tem is mounted from; _o_n is the directory the filesystem is mount- ed on; and _f_s_f_l_a_g_s is a list of optional flags applied to the mount (see mount(8)). the first part of which are fixed, and the second part are filesystem type specific. The headers common to all vnodes are: ADDR Location of this vnode. TYP File type. VFLAG A list of letters representing vnode flags: R - VROOT T - VTEXT L - VXLOCK W - VXWANT E - VEXLOCK S - VSHLOCK T - VLWAIT A - VALIASED B - VBWAIT LOC The core location of this table entry. FLAGS Miscellaneous state variables encoded thus: L locked U update time (fs(5)) must be corrected A access time must be corrected W wanted by another process (L flag is on) C changed time must be corrected S shared lock applied E exclusive lock applied Z someone waiting for a lock M contains modifications R has a rename in progress CNT Number of open file table entries for this inode. DEV Major and minor device number of file system in which this inode resides. RDC Reference count of shared locks on the inode. WRC Reference count of exclusive locks on the inode (this may be > 1 if, for example, a file descriptor is inherited across a fork). INO I-number within the device. MODE Mode bits, see chmod(2). 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. FFIILLEESS /vmunix namelist /dev/kmem default source of tables SSEEEE AALLSSOO iostat(1), ps(1), systat(1), vmstat(1), stat(2), fs(5), BBUUGGSS 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. HHIISSTTOORRYY The ppssttaatt command appeared in 4.0BSD. 4th Berkeley Distribution June 6, 1993 4