PSTAT Interfaces
35
uint64_t psn_idx; /* value currently undefined */
uint64_t psn_logical_node; /* logical node ID */
uint64_t psn_physical_node;/* physical node ID */
uint64_t psn_cpu_cnt; /* number of node active CPUs */
uint64_t psn_private_mem_size; /* node private memory in (MB)*/
uint64_t psn_gmem_start; /* start of node global memory(in MB) */
uint64_t psn_gmem_size; /* max size of node global memory(in MB) */
uint64_t psn_reserved[3]; /* Reserved for future use */
uint64_t psn_padding[6]; /* Padding to next pow(2) */
pst_status
This structure contains per-process information. Header file: <sys/pstat/pm_pstat_body.h>
_T_LONG_T pst_idx; /* Index for further pstat() requests */
_T_LONG_T pst_uid; /* Real UID */
_T_LONG_T pst_pid; /* Process ID */
_T_LONG_T pst_ppid; /* Parent process ID */
_T_LONG_T pst_dsize; /* # real pages used for data */
_T_LONG_T pst_tsize; /* # real pages used for text */
_T_LONG_T pst_ssize; /* # real pages used for stack */
_T_LONG_T pst_nice; /* Nice value */
struct __psdev pst_term;/* TTY of this process; -1/-1 if there isn't one */
_T_LONG_T pst_pgrp; /* Process group of this process */
_T_LONG_T pst_pri; /* priority of process */
_T_LONG_T pst_addr; /* address of process (in memory) */
_T_LONG_T pst_cpu; /* processor utilization for scheduling */
_T_LONG_T pst_utime; /* user time spent executing (in seconds) */
_T_LONG_T pst_stime; /* system time spent executing (in seconds) */
_T_LONG_T pst_start; /* time process started (seconds since epoch) */
_T_LONG_T pst_flag; /* flags associated with process */
_T_LONG_T pst_stat; /* Current status */
_T_LONG_T pst_wchan; /* If state PS_SLEEP, value sleeping on */
_T_LONG_T pst_procnum; /* processor this proc last run on */
char pst_cmd[PST_CLEN]; /* Command line for the process, if available */
_T_LONG_T pst_time; /* resident time for scheduling */
_T_LONG_T pst_cpticks; /* ticks of CPU time */
_T_LONG_T pst_cptickstotal; /* total ticks for life of process */
_T_LONG_T pst_fss; /* fair share scheduler group ID */
float pst_pctcpu; /* %CPU for this process during p_time */
_T_LONG_T pst_rssize; /* resident set size for process (private pages)*/
_T_LONG_T pst_suid; /* saved UID */
char pst_ucomm[PST_UCOMMLEN]; /* executable basename the process is running*/
_T_LONG_T pst_shmsize; /* # real pages used for shared memory */
_T_LONG_T pst_mmsize; /* # real pages used for memory mapped files */
_T_LONG_T pst_usize; /* # real pages used for U-Area & K-Stack */
_T_LONG_T pst_iosize; /* # real pages used for I/O device mapping */
_T_LONG_T pst_vtsize; /* # virtual pages used for text */
_T_LONG_T pst_vdsize; /* # virtual pages used for data */
_T_LONG_T pst_vssize; /* # virtual pages used for stack */
_T_LONG_T pst_vshmsize; /* # virtual pages used for shared memory */
_T_LONG_T pst_vmmsize; /* # virtual pages used for mem-mapped files */
_T_LONG_T pst_vusize; /* # virtual pages used for U-Area & K-Stack */
_T_LONG_T pst_viosize; /* # virtual pages used for I/O dev mapping */
_T_ULONG_T pst_minorfaults; /* # page reclaims for the process */
_T_ULONG_T pst_majorfaults; /* # page faults needing disk access */
_T_ULONG_T pst_nswap; /* # of swaps for the process */