Back to Darwin Xnu

Vm Statistics

osfmk/man/vm_statistics.html

latest1.8 KB
Original Source

vm_statistics


Structure - Defines statistics for the kernel's use of virtual memory.

SYNOPSIS

**struct vm\_statistics**** { ****integer\_t** free\_count **;**** integer\_t **active\_count** ; ****integer\_t** inactive\_count **;**** integer\_t **wire\_count** ; ****integer\_t** zero\_fill\_count **;**** integer\_t **reactivations** ; ****integer\_t** pageins **;**** integer\_t **pageouts** ; ****integer\_t** faults **;**** integer\_t **cow\_faults** ; ****integer\_t** lookups **;**** integer\_t **hits** ; ****};**** typedef struct vm\_statistics\* vm\_statistics\_t;**

FIELDS

free_countThe total number of free pages in the system.

active_countThe total number of pages currently in use and pageable.

inactive_countThe number of inactive pages.

wire_countThe number of pages that are wired in memory and cannot be paged out.

zero_fill_countThe number of zero-fill pages.

reactivationsThe number of reactivated pages.

pageinsThe number of requests for pages from a pager (such as the i-node pager).

pageoutsThe number of pages that have been paged out.

faultsThe number of times the vm_fault routine has been called.

cow_faultsThe number of copy-on-write faults.

lookupsThe number of object cache lookups.

hitsThe number of object cache hits.

DESCRIPTION

The vm_statistics structure defines the statistics available on the kernel's use of virtual memory. The statistics record virtual memory usage since the kernel was booted.

For related information for a specific task, see the task_basic_info structure.

NOTES

This structure is machine word length specific because of the memory sizes returned.

Functions: task_info, host_page_size.

Data Structures: task_basic_info.