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
cgroups: pure v1, hybrid, pure v2 #10107
Comments
I'm having trouble parsing this sentence... copy/paste fail? |
@floppym, yip, thanks for pointing it out. :) Should be fixed. |
Just to complete the list, there is another layout called |
Quite frankly at this point I think doing "hybrid" is a stopgap we should never have added... It blurs the road forward. People should either use full cgroupsv1 or full cgroupsv2 but anything in between is just a maintainance burden. But anyway, that ship might have sailed, the code is in now.
Yes, this is the intention and the only thing systemd supports. The hybrid mode is dumb and minimal. All it adds is the cgroupv2 core hierarchy itself, but controllers are not attached to it, and remain pinned to the classic cgroupsv1 mounts. I'll prep a patch that clarifies this in docs/CGROUP_DELEGATION.md. |
@poettering, thanks for doing this! Excellent! |
Fix waiting in #10161 |
Technically, this is neither a feature request nor a bug report. So sorry for that.
We currently support three different cgroup layouts:
I would like to propose an agreement for the way forward. :)
So, we all agree that cgroup v2 is going to be the future and that we are in the process of making userspace tools and libraries that we maintain compatible with it.
What would be nice though is if we could agree that the hybrid cgroup layout will only be supported when the cgroup v2 controller is mounted at
/sys/fs/cgroup/unified
and is empty, i.e. that we don't ever support having some controllers mounted into v1 hierarchies and some controllers mounted into v2 hierarchies. This is a level of complexity userspace and kernel wise that I would like to make sure to avoid. In short, hybrid mode should be considered to be somewhat in maintenance-only mode. I wasn't sure if we ever discussed this.The text was updated successfully, but these errors were encountered: