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

Add systemd cgroup controller support #5462

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

brandond
Copy link
Member

@brandond brandond commented Apr 19, 2022

Proposed Changes

Use the systemd cgroup controller when possible. This controller has been recommended over the legacy cgroupfs driver for several releases.

Types of Changes

enhancement

Verification

See linked issue

Linked Issues

User-Facing Change

K3s now uses the systemd cgroup driver instead of cgroupfs when running under systemd 244 or later.

Further Comments

According to the runc documentation, systemd 244 or newer adds support for cpuset cgroup delegation, so delegation of this group is what we gate use of the systemd cgroup driver on. Plus presence of the NOTIFY_SOCKET to indicate operation under systemd, of course.
https://github.com/opencontainers/runc/blob/main/docs/cgroup-v2.md#systemd

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond requested a review from a team as a code owner April 19, 2022 08:01
Copy link
Member

@dereknola dereknola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there is a syntax error

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond requested a review from a team April 19, 2022 20:26
@brandond
Copy link
Member Author

yeah, overeager refactoring. Fixed now.

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.

3 participants