Global memory
The information refer to the system's global memory
Original source
The global memory information are retrieved from the MacOsGlobalMemory interface, which inherits GlobalMemory
KInfo's source
Retrieve hardware as shown in the Hardware API. The values are collected by separate native queries
Warning
Reading globalMemory throws an IllegalStateException when the required swap usage or swap page statistics cannot be read
Properties
total
The total physical memory in bytes, or 0 when the native query fails
available
The estimated available memory in bytes, calculated from free and inactive pages. A failed native query returns 0
pageSize
The system's memory page size in bytes, or 0 when the native query fails
virtualMemory
The virtual memory and swap statistics
physicalMemory
List of physical memory entries. On Apple Silicon, the list describes unified memory rather than separate removable modules