vm_stat_page_size: Page size behind a block of 'vm_stat' output

View source: R/matching_memory.R

vm_stat_page_sizeR Documentation

Page size behind a block of vm_stat output

Description

vm_stat counts in pages and states its own page size in the header line ("page size of 16384 bytes"). Apple Silicon pages are 16K and Intel pages are 4K, so the size is read rather than assumed; ⁠sysctl hw.pagesize⁠ is the fallback when the header cannot be parsed.

Usage

vm_stat_page_size(vm)

Arguments

vm

Character vector of vm_stat output lines.

Value

Page size in bytes, or NA_real_ if undetermined.


couplr documentation built on Sept. 17, 2026, 1:08 a.m.