The structure used with the sysmp() call shown above has this form (a more detailed layout is in sys/sysmp.h):
struct rminfo { long freemem; /* pages of free memory */ long availsmem; /* total real+swap memory space */ long availrmem; /* available real memory space */ long bufmem; /* not useful */ long physmem; /* total real memory space */ };A sample program that applies swapctl() and sysmp() to display these numbers is shipped in the 4DGifts example directory. See ~4Dgifts/examples/unix/irix/freevmen.c