Skip to main content

cgroup_memory_limit_bytes

Function cgroup_memory_limit_bytes 

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

Read this process’s cgroup memory limit in bytes (v2 first, then v1).

Returns None when no limit applies: file absent (not in a container), v2 max, or a v1 sentinel of effectively-unlimited (≥ 2^60).