Skip to main content

cgroup_limit

Function cgroup_limit 

Source
fn cgroup_limit(contents: &str) -> Option<u64>
Expand description

Returns a cgroup memory limit in bytes, or None if the cgroup has no limit.

cgroup v2 writes max for no limit. cgroup v1 writes a value near i64::MAX, which is larger than any machine’s memory, so available_memory ignores it.