-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Docker compat: Return null when swappiness is -1 #24126
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: inknos The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes: containers#23824 Signed-off-by: Nicola Sella <nsella@redhat.com>
@Luap99 makes more sense now. However, I am checking it on my system and
Not sure if I am missing something or if this is part of a bigger problem. Shouldn't it be -1 on systems with cgroupsv2?
|
Good question, I guess so. |
looks like a bug. We set the memory swappiness only when there is a memory limit:
|
thanks. I can look for a fix for it |
It errors out already no? |
Might be cleanest to hard-code to -1 just for inspect, the resource limit code in SpecGen is pretty ugly |
A friendly reminder that this PR had no activity for 30 days. |
This PR has been marked for 5.3 inclusion but it must be merged prior to Nov 5 for inclusion in 5.3 RC3. PRs not merged by that date are considered on a case by case basis for backporting. |
Fixes: #23824
Does this PR introduce a user-facing change?