May 2005
Intermediate to advanced
738 pages
18h 22m
English
Example A-8 shows the source code for the dudestat.c program.
#include <stdio.h> #include <stdlib.h> #include <sys/var.h> #include <sys/vminfo.h> #include <sys/wlm.h> #include <procinfo.h> #include <sys/proc.h> #include <usersec.h> sys_param_dude() { struct variovario; if (!sys_parm(SYSP_GET,SYSP_V_MAXUP,&vario)) printf("v_maxup (max. # of user processes) : %lld\n", vario.v.v_maxup.value); if (!sys_parm(SYSP_GET,SYSP_V_MAXPOUT,&vario)) printf("v_maxpout (# of file pageouts at which waiting occurs): %lld\n", vario.v.v_maxpout.value); if (!sys_parm(SYSP_GET,SYSP_V_MINPOUT,&vario)) printf("v_minpout (# of file pageout at which ready occurs) : %lld\n", vario.v.v_minpout.value); if (!sys_parm(SYSP_GET,SYSP_V_FILE,&vario)) ... |
Read now
Unlock full access