Function - Specify expected access patterns for the target VM region.
kern_return_t vm_behavior_set
(vm_task_t target_task,
vm_address_t address,
vm_size_t size,
vm_behavior_t behavior);
The vm_behavior_set function informs the kernel of the expected access pattern for a region of memory. The kernel uses this information to bias its prefetch and page replacement algorithms.
The region starts at the beginning of the virtual page containing address; it ends at the end of the virtual page containing address + size - 1. Because of this rounding to virtual page boundaries, the amount of memory affected may be greater than size. Use host_page_size to find the current virtual page size.
This interface is machine word length specific because of the virtual address parameter.
Functions: vm_region, host_page_size.