## 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_count
  The total number of free pages in the system.

active_count
  The total number of pages currently in use and pageable.

inactive_count
  The number of inactive pages.

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

zero_fill_count
  The number of zero-fill pages.

reactivations
  The number of reactivated pages.

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

pageouts
  The number of pages that have been paged out.

faults
  The number of times the vm_fault routine has been called.

cow_faults
  The number of copy-on-write faults.

lookups
  The number of object cache lookups.

hits
  The 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.

### RELATED INFORMATION

Functions: task_info, host_page_size.

Data Structures: task_basic_info.