Function get_cgroup_limits

Source
fn get_cgroup_limits() -> (Option<u64>, Option<u64>)
Expand description

Collect the memory and swap limits enforced by the current cgroup.

We make the following simplifying assumptions that hold for a standard Kubernetes environment: