Virtual memory
The information refer to the swap statistics and virtual memory estimates of the system
Original source
The macOS virtual memory information are provided by MacOsVirtualMemory, which inherits VirtualMemory
KInfo's source
val globalMemory = hardware.globalMemory
val virtualMemory: VirtualMemory = globalMemory.virtualMemory
See global memory for the containing API
Properties
swapTotal
The total swap space in bytes
swapUsed
The swap space currently in use in bytes
virtualMax
The estimated virtual memory capacity in bytes, calculated as total physical memory plus total swap space
virtualInUse
The estimated virtual memory in use in bytes, calculated as total physical memory minus available memory plus used swap space
swapPagesIn
The cumulative number of pages swapped in from disk
swapPagesOut
The cumulative number of pages swapped out to disk