Skip to content

Add a mechanism to disable the default cpuset controller in v2 #292

@zhuangqh

Description

@zhuangqh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions