Louwtjie Burger schrieb:
bash-3.00$ kstat -m unix -n vminfo module: unix instance: 0 name: vminfo class: vm crtime 47.129589548 freemem 232290532919 snaptime 2847958.77893493 swap_alloc 45084054035 swap_avail 952763588224 swap_free 957527836045 swap_resv 49848301856If I use pagesize and the 'pages' to calculate, I cannot get close to swap -s output.
These values will be updated (added up) each seconds, so they will only provide you an average since reboot - not terribly useful, therefor I use:
struct anoninfo ai; swapctl(SC_AINFO, &ai); See: http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/os/clock.c#920 vs. http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/vm/vm_swap.c#476 Daniel _______________________________________________ opensolaris-discuss mailing list [email protected]
