-
Notifications
You must be signed in to change notification settings - Fork 2.2k
cgroup: systemd: properly expand systemd slice names #511
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
cgroup: systemd: properly expand systemd slice names #511
Conversation
|
You can notice the issue if you do something like this: Before this patch: After this patch: Now, the main reason why this is a big issue is because You'll notice this by observing the warnings in the Docker daemon: |
Rather than using '/' to denote hierarchy in slice names, systemd uses '-' in an odd way. This results in runC incorrectly assuming that certain kernel features are missing (and using inconsistent paths for the cgroups not supported by systemd), because the "subsystem path" used is not the one that systemd has created. Fix all of this by properly expanding slice names. Signed-off-by: Aleksa Sarai <[email protected]>
|
LGTM |
1 similar comment
|
LGTM |
cgroup: systemd: properly expand systemd slice names
Upstream reference: opencontainers/runc#511 Signed-off-by: Mrunal Patel <[email protected]> Signed-off-by: Antonio Murdaca <[email protected]>
Rather than using '/' to denote hierarchy in slice names, systemd uses
'-' in an odd way. This results in runC incorrectly assuming that
certain kernel features are missing (and using inconsistent paths for
the cgroups not supported by systemd), because the "subsystem path" used
is not the one that systemd has created. Fix all of this by properly
expanding slice names.
Signed-off-by: Aleksa Sarai [email protected]
/cc @LK4D4 @mrunalp @dqminh @crosbymichael @hqhq