get_memory_limit_from_cgroups

Function get_memory_limit_from_cgroups 

Source
pub fn get_memory_limit_from_cgroups() -> Option<i64>
Expand description

Get the limit of memory in bytes from cgroups filesystem.

  • If the cgroup total memory is unset, return None.
  • Return None if it fails to read the memory limit or not on linux.