#include <sys/vmmeter.h>

sys/vmmeter.h

includes: sys/appleapiopts.h, stdint.h
2 structs

structvmmeter

System wide statistics counters.
size 140, align 4
unsigned intv_swtchGeneral system activity. context switches
unsigned intv_trapcalls to trap
unsigned intv_syscallcalls to syscall()
unsigned intv_intrdevice interrupts
unsigned intv_softsoftware interrupts
unsigned intv_faultstotal faults taken
unsigned intv_lookupsVirtual memory activity. object cache lookups
unsigned intv_hitsobject cache hits
unsigned intv_vm_faultsnumber of address memory faults
unsigned intv_cow_faultsnumber of copy-on-writes
unsigned intv_swpinswapins
unsigned intv_swpoutswapouts
unsigned intv_pswpinpages swapped in
unsigned intv_pswpoutpages swapped out
unsigned intv_pageinsnumber of pageins
unsigned intv_pageoutsnumber of pageouts
unsigned intv_pgpginpages paged in
unsigned intv_pgpgoutpages paged out
unsigned intv_intransintransit blocking page faults
unsigned intv_reactivatednumber of pages reactivated from free list
unsigned intv_revrevolutions of the hand
unsigned intv_scanscans in page out daemon
unsigned intv_dfreepages freed by daemon
unsigned intv_pfreepages freed by exiting processes
unsigned intv_zfodpages zero filled on demand
unsigned intv_nzfodnumber of zfod's created
unsigned intv_page_sizeDistribution of page usages. page size in bytes
unsigned intv_kernel_pagesnumber of pages in use by kernel
unsigned intv_free_targetnumber of pages desired free
unsigned intv_free_minminimum number of pages desired free
unsigned intv_free_countnumber of pages free
unsigned intv_wire_countnumber of pages wired down
unsigned intv_active_countnumber of pages active
unsigned intv_inactive_targetnumber of pages desired inactive
unsigned intv_inactive_countnumber of pages inactive

structvmtotal

systemwide totals computed every five seconds
size 48, align 4
int16_tt_rqlength of the run queue
int16_tt_dwjobs in ``disk wait'' (neg priority)
int16_tt_pwjobs in page wait
int16_tt_sljobs sleeping in core
int16_tt_swswapped out runnable/short block jobs
int32_tt_vmtotal virtual memory
int32_tt_avmactive virtual memory
int32_tt_rmtotal real memory in use
int32_tt_armactive real memory
int32_tt_vmshrshared virtual memory
int32_tt_avmshractive shared virtual memory
int32_tt_rmshrshared real memory
int32_tt_armshractive shared real memory
int32_tt_freefree memory pages