Sysstat.MemSourceMemory statistics (instantaneous).
type t = {total : int64;Total physical memory.
*)used : int64;Memory in use (calculated via platform-specific formula).
*)free : int64;Free memory available for allocation.
*)available : int64;Memory available for starting new applications without swapping.
On macOS, approximated as free + inactive + purgeable.
compressed : int64;Compressed memory (macOS only, 0L on Linux).
wired : int64;Wired (non-pageable) memory (macOS only, 0L on Linux).
active : int64;Active memory pages (macOS only, 0L on Linux).
inactive : int64;Inactive memory pages (Linux: cached + sreclaimable - shmem).
*)purgeable : int64;Purgeable memory (macOS) or buffers (Linux).
*)speculative : int64;Speculative memory (macOS only, 0L on Linux).
external_ : int64;External memory (macOS only, 0L on Linux).
page_size : int64;System page size in bytes.
*)swap_total : int64;Total swap space.
*)swap_used : int64;Used swap space.
*)}Memory usage statistics.
All size fields are in bytes. Memory statistics are instantaneous snapshots, not cumulative counters.
Platform behavior:
used field is computed as total - free - buffers - (cached + sreclaimable - shmem).used field is computed as active + inactive + speculative + wired + compressed - purgeable - external, with compressed subtracted from the display value.