Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements on cgroup v2 support #204

Merged
merged 2 commits into from
Jul 29, 2021
Merged

Improvements on cgroup v2 support #204

merged 2 commits into from
Jul 29, 2021

Conversation

shankerwangmiao
Copy link
Contributor

Hi, this pr contains two improvements on cgroupv2 support.

  • When creating a child cgroup using manager.NewChild(), resources limits are set before the corresponding controllers are enabled. The patch fixes this issue following the way how it is dealt in NewManager()
  • When toggling controller settings in manager.ToggleControllers(), the settings are written recursively from root controller to m's parent. As long as its parent is successfully written with the given settings, all possible errors happens before can safely ignored.

…ritten

As stated originally in the comment, ``the user may face EPERM on parent
groups", it should not be an error when writing to grand-parent groups fails
but writing to the last one succeeds.

Signed-off-by: Miao Wang <[email protected]>
@mxpv mxpv merged commit ddda8a1 into containerd:main Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants