pub fn cgroup_limit(proc_root: &Path, cgroup_root: &Path) -> Result<Option<u64>>Expand description
The smallest cgroup v2 memory.max on the way from the agent’s cgroup (in
<proc_root>/self/cgroup) up to cgroup_root; None when there is none (unlimited,
cgroup v1).
§Errors
An I/O error if <proc_root>/self/cgroup can’t be read.