📄 pstat.8
字号:
.\" SCCSID: @(#)pstat.8 5.1 1/17/89.TH pstat 8.SH Namepstat \- print system facts.SH Syntax.B /etc/pstat.B \-aixvptufTk[.I system] [.I corefile].SH Description.NXR "pstat command".NXR "system" "printing statistics"The.PN pstatcommandinterprets the contents of certain system tables. The contents of systemtables can change while.PN pstatis running, so the information it gives is a snapshot taken at a giventime.If you specify .IR system ,.PN pstatgets the namelist from the named system's kernel. If you omit.IR system ,.PN pstatuses the namelist in .PN /vmunix .If you specify .IR corefile , .PN pstat uses the tables in the core file. Otherwise,.PN pstatuses the tables in .PN /dev/kmem .Use the .B \-koption when you specify the.I systemor .I corefileargument. .SH Options.IP \fB-a\fR 5When used with the.B \-p option, displays all process slots, rather than just active ones..IP \fB-f\fRDisplays the open file table with the following headings:.RS 8.IP LOC 10The core location of this table entry..IP TYPEThe type of object the file table entry points to..IP FLGMiscellaneous state variables, encoded as follows:.RE.RS 20.IP R 4Open for reading.IP WOpen for writing.IP AOpen for appending.IP SShared lock.IP XExclusive use.IP IAsynchronous input and output notification.IP BBlock-if-in-use flag is set (shared line semaphore).RE.RS 8.IP CNT 10Number of processes that know this open file..IP GNOThe location of the gnode table entry for this file..IP OFFS/SOCKThe file offset or the core address of the associated socket structure.(See .MS lseek 2 for information on file offsets.).RE.IP \fB-i\fR Displays the gnode table with the following headings:.RS 8.IP LOC 10The core location of this table entry..IP FLAGSMiscellaneous state variables, encoded as follows:.RE.RS 20.IP L 4Locked..IP UUpdate time for the file system must be corrected. See the .MS fs 5 reference page for more information..IP AAccess time must be corrected..IP MFile system is mounted here..IP WWanted by another process (L flag is on)..IP TContains a text file..IP CChanged time must be corrected..IP SShared lock applied..IP EExclusive lock applied..IP ZSomeone waiting for an exclusive lock..IP IIn-use flag is set (shared line semaphore)..RE.RS 8.IP CNT 10Number of open file table entries for this gnode..IP DEVMajor and minor device number of the file system in whichthis gnode resides..IP RDCReference count of shared locks on the gnode..IP WRCReference count of exclusive locks on the gnode. (This count canbe >1 if, for example, a file descriptor is inherited across a fork.).IP GNOI-number within the device..IP MODEMode bits. (See .MS chmod 2 for information about mode bits.).IP NLKNumber of links to this gnode..IP UIDUser identification (ID) of owner..IP SIZ/DEVNumber of bytes in an ordinary file ormajor and minor device of a special file..RE.IP \fB-k\fR Prevents the process that is created from becoming too large, which can cause performance problems.Use \fB-k\fR when you specify the.I systemor.I corefileargument..IP \fB-p\fR 5Displays the process table for active processes with these headings:.RE.RS 8.IP LOC 10The core location of this table entry..IP SRun state, encoded as follows:.RE.RS 20.IP 0 4No process.IP 1Waiting for some event.IP 3Able to be run.IP 4Being created.IP 5Being terminated.IP 6Stopped under trace.RE.RS 8.IP F 10Miscellaneous state variables, combined with a Boolean OR operation (hexadecimal):.RE.RS 20.IP 00000001 9Process is resident in memory..IP 00000002System process: swapper, pager, idle (RISC only), trusted path daemon..IP 00000004Process is being swapped out..IP 00000008Process requested swapout for page table growth..IP 00000010Traced..IP 00000020Used in tracing..IP 00000040Locked in by a .PN plock call..IP 00000080Waiting for page-in to complete..IP 00000100Protected from swapout while transferring resources to another process..IP 00000200Used by a.PN sigpause call. .IP 00000400Exiting..IP 00000800Protected from swapout while doing physical input and output..IP 00001000Process resulted from a.PN vfork call, which is not yet complete..IP 00002000Parent has received resources returned by a child created with the.PN vfork call..IP 00004000Process has no virtual memory because it is a parent in the context ofthe.PN vfork call..IP 00008000Process is demand-paging data pages from its text gnode..IP 00010000Process has advised of sequential memory access..IP 00020000Process has advised of random memory access..IP 00080000Process has indicated intent to execute data or stack (RISC only)..IP 00100000POSIX environment: no SIGCLD generated when children stop..IP 00200000Process is owed a profiling tick..IP 00400000Used by a .PN select call.IP 00800000A login process..IP 04000000System V file lock applied..IP 08000000Repair of unaligned accesses has been attempted (RISC only)..IP 10000000Process has called the.PN execve system routine..IP 20000000The idle process (RISC only)..RE.RS 8.IP POIP 10Number of pages currently being pushed out from this process..IP PRIScheduling priority. (See .MS getpriority 2 for information on priorities.).IP SIGNALSignals received (signals 1-32 coded in bits 0-31)..IP UIDReal user ID..IP SLPAmount of time the process has been blocked..IP TIMTime resident in seconds; values greater than 127 are coded as 127..IP CPUWeighted integral of CPU time, for scheduler..IP NINice level. (See .MS getpriority 2 for information about nice levels.).IP PGRPProcess number of the root of the process group(the opener of the controlling terminal)..IP PIDThe process ID number..IP PPIDThe process ID of the parent process..IP ADDRIf the process is in memory, identifies the user area page frame number of the page table entries.If the process is swapped out, identifies the position in the swap areameasured in multiples of 512 bytes..IP RSSResident set size minus the number of physical page frames allocatedto this process..IP SRSSRSS at last swap (0 if never swapped)..IP SIZEVirtual size of process image (data plus stack) in multiples of 512 bytes..IP WCHANWait channel number of a waiting process..IP LINKLink pointer in list of processes that can be run..IP TEXTPIf text is pure, pointer to location of text table entry..IP CLKTCountdown for real interval timer, measured in clock ticks (10 milliseconds). See the.MS getitimer 2reference page for information about the real interval timer.).IP TTYPAddress of controlling the terminal..IP DMAPAddress of data segment dmap structure..IP SMAPAddress of stack segment dmap structure..RE.IP \fB-s\fR 5Displays the following information about the pages used for swap space:.RS 8.IP \(bu 5The number of pages reserved, but not necessarily allocated, by the system for currentlyexecuting processes..IP \(bu 5The number of pages used (physically allocated), including the numberused for text images. .IP \(bu 5The number of pages free, wasted, or missing. Free pages are pages thathave not been allocated. Missing pages are usually allocated to argdev.Wasted pages indicate the amount of space lost because the swap space isfragmented. .IP \(bu 5The number of pages available, which indicates the amount of space available forswapping..RE.IP \fB-t\fR 5Displays the table for terminalswith the following headings:.RS 8.IP RAW 10Number of characters in the raw input queue..IP CANNumber of characters in the canonic input queue..IP OUTNumber of characters in the output queue..IP MODETerminal mode, as described in .MS tty 4..IP ADDRPhysical device address..IP DELNumber of delimiters (newlines) in the canonic input queue..IP COLCalculated column position of the terminal..IP STATEMiscellaneous state variables, encoded as follows:.RE.RS 20.IP T 4Line is timed out..IP WWaiting for open to complete..IP OOpen..IP CCarrier is on..IP BBusy doing output..IP AProcess is awaiting output..IP XOpen for exclusive use..IP HHangup on close..IP SOutput is stopped (ttstop)..IP IIn-use flag is set (shared line semaphore)..IP DOpen nodelay..IP GIgnore carrier..IP NNonblocking input and output..IP ZAsychronous input and output notification..IP LTerminal line is in the process of closing..IP QOutput suspended for flow control..RE.RS 8.IP PGRP 10Process group for which this is the controlling terminal..IP DISCLine discipline; blank is old tty OTTYDISC, ntty for NTTYDISC,or termio for TERMIODISC. .RE.IP \fB-T\fR 5Displays the number of used and free slots in the system tables.This option is useful for determining how full the system tables have become if the system is under a heavy load..IP \fB-u\fIpid\fR 5Displays information about the specified user process. The \fIpid\fRargument is the process ID number as displayed by the.PN ps command.The process must be in main memory, unless you specify the \fIcorefile\fRargument on the command line. If you specify a core file, \fIpid\fRmust be 0..IP \fB-v\fR 5Displays a listing of all vector processes on the system. This option isvalid only for processors that have the VAX vector hardware. Thefollowing list describes the headings in the display:.RS 8.IP LOC 10The core location of this table entry.IP PPGRPThe process number of the root of the process group(the opener of the controlling terminal).IP PIDThe process ID number.IP PPIDThe process ID of the parent process.IP VSTATOne of the following vector process statuses:.RE.RS 20.IP WAITNew vector process, which is waiting for a vector processor to beallocated to it..IP LOADProcess context is present in both vector and scalar processors..IP SAVEDProcess vector context is saved in memory..IP LIMBOA vector processor has been allocated to the process, but the vectorcontext of the process has not yet been loaded..RE.RS 8.IP VERRSNumber of vector processor errors incurred by this process..IP REFSNumber of times this process was refused scheduling into a vectorprocessor..IP CHPCXTNumber of times the scaler context has been saved and restored, whilethe vector context remains resident in the vector processor..IP EPXCXTNumber of times both the scalar and vector contexts have been saved andrestored..RE.IP \fB-x\fR 5Displays the text table with the following headings:.RS 8.IP LOC 10The core location of this table entry..IP FLAGSMiscellaneous state variables encoded as follows:.RE.RS 20.IP T 4A process called the .MS ptrace 2system call. .IP WText has not yet been written on the swap device..IP LLoading is in progress..IP KLocked..IP wWanted. (L flag is on.).IP FText structure is on the freelist..IP PResulted from demand-page-from-gnode execution format. For furtherinformation, see .MS execve 2 ..IP lLocked from being paged or swapped. For further information, see.MS plock 2 ..IP BAll attached processes are being killed due to server write of an .PN a.out file..RE.RS 8.IP DADDR 10Address of the text dmap structure in core..IP CADDRHead of a linked list of loaded processes using this text segment..IP SIZESize of the text segment, measured in multiples of 512 bytes..IP IPTRCore location of the corresponding gnode..IP CNTNumber of processes using this text segment..IP CCNTNumber of processes in core using this text segment..IP LCNTNumber of process locking this text segment..IP POIPNumber of pages currently being pushed out in this text segment..IP CMAPThe address of the last CMAP entry freed..RE.SH Files.TP 15.PN /dev/memUser process information.TP 15.PN /dev/kmemKernel memory .TP 15.PN /vmunix System namelist.SH See Alsops(1), chmod(2), execve(2), getitimer(2), getpriority(2), lseek(2), plock(2), ptrace(2), stat(2), fs(5)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -