Skip to main content

default_memory_limit_bytes

Function default_memory_limit_bytes 

Source
pub fn default_memory_limit_bytes() -> usize
Expand description

Returns the default memory limit in bytes, 80% of RAM rounded down to a whole GiB. Inside a Linux container it uses the container’s memory cap, since the host’s RAM would be too high.