package kaun-board
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=96d35ce03dfbebd2313657273e24c2e2d20f9e6c7825b8518b69bd1d6ed5870f
sha512=90c5053731d4108f37c19430e45456063e872b04b8a1bbad064c356e1b18e69222de8bfcf4ec14757e71f18164ec6e4630ba770dbcb1291665de5418827d1465
doc/kaun-board.sysstat/Sysstat/Mem/index.html
Module Sysstat.MemSource
Memory 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,
*)0Lon Linux).wired : int64;(*Wired (non-pageable) memory (macOS only,
*)0Lon Linux).active : int64;(*Active memory pages (macOS only,
*)0Lon Linux).inactive : int64;(*Inactive memory pages (Linux: cached + sreclaimable - shmem).
*)purgeable : int64;(*Purgeable memory (macOS) or buffers (Linux).
*)speculative : int64;(*Speculative memory (macOS only,
*)0Lon Linux).external_ : int64;(*External memory (macOS only,
*)0Lon 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:
- Linux: The
usedfield is computed astotal - free - buffers - (cached + sreclaimable - shmem). - macOS: The
usedfield is computed asactive + inactive + speculative + wired + compressed - purgeable - external, withcompressedsubtracted from the display value.