Skip to main content

total_memory_megabyte

Function total_memory_megabyte 

Source
pub fn total_memory_megabyte() -> Option<u64>
Expand description

Returns the memory, in megabytes (MB), of the current system, or None when the operating system does not report it.

This is the min of the host’s available memory and the cgroup budget (what a container or Kubernetes pod memory limit sets).