Get amount of physical memory on the system.
#include <zircon/syscalls.h> uint64_t zx_system_get_physmem(void);
zx_system_get_physmem() returns the total size of physical memory on
the machine, in bytes.
zx_system_get_physmem() returns a number in bytes.
zx_system_get_physmem() cannot fail.
Currently the total size of physical memory cannot change during a run of the system, only at boot time. This might change in the future.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-11-21.