kata-containers / cgroups-rs

Native Rust library for managing control groups under Linux
https://crates.io/crates/cgroups-rs
Other
116 stars 47 forks source link

FreezerController not available for cgroups v2 #60

Closed mjerabek closed 2 years ago

mjerabek commented 3 years ago

Describe the bug Although FreezerController supports cgroups v2, it is not included in Cgroup, because cgroups v2 do not have "freezer" as a controller, but it's implemented directly via cgroup.freeze (and thus "freezer" is not included in cgroup.controllers).

Expected behavior FreezerController is supported also with cgroups v2.

Additional context Observed on linux 5.10 and 5.14 (NixOS 21.05).