dudestat.c

Example A-8 shows the source code for the dudestat.c program.

Example A-8. dudestat.c source code
#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)) ...

Get AIX 5L Practical Performance Tools and Tuning Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.