PSTAT Interfaces

42
} val;
Maximum module name length: PS_STRMODNAME_SZ à 32
The type field pst_stream structure can be PS_STR_HEAD, PS_STR_MODULE or
PS_STR_DRIVER. The union val in pst_stream will represent the structures head, module, or
driver in the respective cases. If the flag PS_STR_ISACLONE is set in pst_flag for head, the field
pst_dev_seq in head represents the clone driver sequence number the stream.
pst_swapinfo
This structure describes per-swap-area information. Each structure returned describes one "pool"
of swap space on the system, either a block device or a portion of a file system. Header file:
<sys/pstat/vm_pstat_body.h>
_T_ULONG_T pss_idx; /* Index for further pstat() requests */
_T_ULONG_T pss_flags; /* flags associated with swap pool */
_T_ULONG_T pss_priority; /* priority of the swap pool */
_T_ULONG_T pss_nfpgs; /* # of free pages of space in pool */
union { /* block and fs swap differ */
struct __pss_blk Pss_blk; /* Block device Fields */
struct __pss_fs Pss_fs; /* File System Fields */
struct pss_reserved Pss_XX; /* reserved for union expansion */
} pss_un;
_T_ULONG_T pss_swapchunk; /* block size */
For more information, refer to header file vm_pstat_body.h. Flag values for pss_flags:
SW_ENABLED à 0x1
SW_BLOCK à 0x2
SW_FS à 0x4
pst_vminfo
Header file: <sys/pstat/vm_pstat_body.h>
_T_LONG_T psv_rdfree; /* rate: pages freed by daemon */
_T_LONG_T psv_rintr; /* device interrupts */
_T_LONG_T psv_rpgpgin; /* pages paged in */
_T_LONG_T psv_rpgpgout; /* pages paged out */
_T_LONG_T psv_rpgrec; /* total page reclaims */
_T_LONG_T psv_rpgtlb; /* tlb flushes - 800 only */
_T_LONG_T psv_rscan; /* scans in pageout daemon */
_T_LONG_T psv_rswtch; /* context switches */
_T_LONG_T psv_rsyscall; /* calls to syscall() */
_T_LONG_T psv_rxifrec; /* found in freelist rather than in file
* sys */
_T_LONG_T psv_rxsfrec; /* found in freelist rather than on swap
* dev */
_T_LONG_T psv_cfree; /* cnt: free memory pages */
_T_LONG_T psv_sswpin; /* sum: swapins */
_T_LONG_T psv_sswpout; /* swapouts */
_T_LONG_T psv_sdfree; /* pages freed by daemon */
_T_LONG_T psv_sexfod; /* pages filled on demand from executables */
_T_LONG_T psv_sfaults; /* total faults taken */
_T_LONG_T psv_sintr; /* device interrupts */
_T_LONG_T psv_sintrans; /* in-transit blocking page faults */
_T_LONG_T psv_snexfod; /* number of exfod's created */