get_cpu_limit_from_cgroups

Function get_cpu_limit_from_cgroups 

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

Get the limit of cpu in millicores from cgroups filesystem.

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