Skip to main content

memory_limit

Function memory_limit 

Source
pub fn memory_limit(root: &Path) -> Option<u64>
Expand description

The memory this process may use, read under the filesystem root: the lowest cgroup v2 memory.max on the way from the process’s cgroup up to the hierarchy’s root, capped by MemTotal, since a cgroup limit above physical memory never binds.