- Notifications
You must be signed in to change notification settings - Fork2.2k
skip set cpu.weight when cpu.idle is enabled in cgroups v2#4143
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
9079199 tod255be9Comparemrunalp commentedDec 12, 2023
Instead of silently skipping we should fail as a validation error. |
qdaxb commentedDec 13, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@mrunalp Thanks for reply. I'm still a little confused about the There is no description in thespec that
So I think fs2 should be compatible with this situation like systemd, or directly add a hint in the document that they cannot be used at the same time? |
AkihiroSuda commentedDec 15, 2023
Should be a warning to avoid breaking compatibility? |
kolyshkin commentedMar 19, 2024
Yes, this should probably be a warning. I'm going to carry this into#4227. |
Signed-off-by: axb <uaxb@hotmail.com>
kolyshkin commentedMay 8, 2024
There's no need for a warning. The problem is, This PR needs a test case though. Can you add one@qdaxb ? |
In cgroups v2, setting
cpu.weightwhencpu.idle==1will fail withInvalid argumentThis pr fixed this situation, consistent withhttps://github.com/opencontainers/runc/blob/main/libcontainer/cgroups/systemd/v2.go#L119