Module cgroups

Source
Expand description

Currently not covered

  • cgroup v2 in non-standard mountpoints
  • paths containing control characters or spaces, since those would be escaped in procfs output and we don’t unescape

EnumsΒ§

Cgroup πŸ”’

FunctionsΒ§

find_mountpoint πŸ”’
Scan mountinfo for cgroup v1 mountpoint with a cpu controller
quota πŸ”’
Returns cgroup CPU quota in core-equivalents, rounded down or usize::MAX if the quota cannot be determined or is not set.
quota_v1 πŸ”’
quota_v2 πŸ”’