Skip to main content

detect_memory_limit

Function detect_memory_limit 

Source
pub fn detect_memory_limit() -> Option<MemoryLimit>
Available on Linux only.
Expand description

Returns the cgroup (v1 or v2) memory limit if it exists.