In v1, we are able to choose which subystem to turn on by Hierarchy.
In v2, manager toggle the cpuset controller on if you pass the cpu field. https://github.com/containerd/cgroups/blob/main/cgroup2/manager.go#L96
Sometimes, cpuset controller is not the must, and we should do an extra m.ToggleControllers([]string{"cpuset"}, cgroupsv2.Disable) to disable it
I think we should provide a mechanism to disable this controller in cgroupsv2.NewManager
In v1, we are able to choose which subystem to turn on by
Hierarchy.In v2, manager toggle the
cpusetcontroller on if you pass the cpu field. https://github.com/containerd/cgroups/blob/main/cgroup2/manager.go#L96Sometimes, cpuset controller is not the must, and we should do an extra
m.ToggleControllers([]string{"cpuset"}, cgroupsv2.Disable)to disable itI think we should provide a mechanism to disable this controller in cgroupsv2.NewManager