#include <sys/vmmeter.h>
sys/vmmeter.h
structvmmeter
System wide statistics counters.
| unsigned int | v_swtch | General system activity. context switches |
| unsigned int | v_trap | calls to trap |
| unsigned int | v_syscall | calls to syscall() |
| unsigned int | v_intr | device interrupts |
| unsigned int | v_soft | software interrupts |
| unsigned int | v_faults | total faults taken |
| unsigned int | v_lookups | Virtual memory activity. object cache lookups |
| unsigned int | v_hits | object cache hits |
| unsigned int | v_vm_faults | number of address memory faults |
| unsigned int | v_cow_faults | number of copy-on-writes |
| unsigned int | v_swpin | swapins |
| unsigned int | v_swpout | swapouts |
| unsigned int | v_pswpin | pages swapped in |
| unsigned int | v_pswpout | pages swapped out |
| unsigned int | v_pageins | number of pageins |
| unsigned int | v_pageouts | number of pageouts |
| unsigned int | v_pgpgin | pages paged in |
| unsigned int | v_pgpgout | pages paged out |
| unsigned int | v_intrans | intransit blocking page faults |
| unsigned int | v_reactivated | number of pages reactivated from free list |
| unsigned int | v_rev | revolutions of the hand |
| unsigned int | v_scan | scans in page out daemon |
| unsigned int | v_dfree | pages freed by daemon |
| unsigned int | v_pfree | pages freed by exiting processes |
| unsigned int | v_zfod | pages zero filled on demand |
| unsigned int | v_nzfod | number of zfod's created |
| unsigned int | v_page_size | Distribution of page usages. page size in bytes |
| unsigned int | v_kernel_pages | number of pages in use by kernel |
| unsigned int | v_free_target | number of pages desired free |
| unsigned int | v_free_min | minimum number of pages desired free |
| unsigned int | v_free_count | number of pages free |
| unsigned int | v_wire_count | number of pages wired down |
| unsigned int | v_active_count | number of pages active |
| unsigned int | v_inactive_target | number of pages desired inactive |
| unsigned int | v_inactive_count | number of pages inactive |
structvmtotal
systemwide totals computed every five seconds
| int16_t | t_rq | length of the run queue |
| int16_t | t_dw | jobs in ``disk wait'' (neg priority) |
| int16_t | t_pw | jobs in page wait |
| int16_t | t_sl | jobs sleeping in core |
| int16_t | t_sw | swapped out runnable/short block jobs |
| int32_t | t_vm | total virtual memory |
| int32_t | t_avm | active virtual memory |
| int32_t | t_rm | total real memory in use |
| int32_t | t_arm | active real memory |
| int32_t | t_vmshr | shared virtual memory |
| int32_t | t_avmshr | active shared virtual memory |
| int32_t | t_rmshr | shared real memory |
| int32_t | t_armshr | active shared real memory |
| int32_t | t_free | free memory pages |