Previous: Mapping Memory Objects, Up: Virtual Memory Interface [Contents][Index]
This structure is returned in vm_stats by the vm_statistics
function and provides virtual memory statistics for the system. It has
the following members:
long pagesizeThe page size in bytes.
long free_countThe number of free pages.
long active_countThe umber of active pages.
long inactive_countThe number of inactive pages.
long wire_countThe number of pages wired down.
long zero_fill_countThe number of zero filled pages.
long reactivationsThe number of reactivated pages.
long pageinsThe number of pageins.
long pageoutsThe number of pageouts.
long faultsThe number of faults.
long cow_faultsThe number of copy-on-writes.
long lookupsThe number of object cache lookups.
long hitsThe number of object cache hits.
The function vm_statistics returns the statistics about the
kernel’s use of virtual memory since the kernel was booted.
pagesize can also be found as a global variable
vm_page_size which is set at task initialization and remains
constant for the life of the task.