-
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
[runc] podman run --kernel-memory=... not respected #12045
Comments
This is actually reproducible on Fedora 34 on x86_64 too when using
|
Workaround is to set |
This has been deprecated , and runc dropped support for --kernel-memory in rc94 So, the ignorance of --kernel-memory is the expected behavior for runc. |
We may want to update Podman to warn on use of unsupported limits, though we'd have to have a mechanism for identifying which runtime supports what. Could be sizable depending on how much variation there is. |
@AkihiroSuda @giuseppe Why is this depracated, is the cgroup support no good? Should crun also drop support. Should we depracate and hide the option? |
I hate having options that say, Don't touch this. Because human instinct is to touch it... |
From opencontainers/runc#2840 :
Yes, the runtime spec also recommends not to support kernel memory https://github.com/opencontainers/runtime-spec/pull/1093/files |
Kernel memory option has been depracated in runtime-spec, It is believed that it will not work properly on certain kernels. runc ignores it. This PR removes documentation of the flag and also prints a warning if a user uses it. [NO NEW TESTS NEEDED] Helps Fix: containers#12045 Signed-off-by: Daniel J Walsh <[email protected]>
/kind bug
Description
Kernel memory settings don't populate to cgroup fs on aarch64. It works fine using
crun
as runtime (non-default).Steps to reproduce the issue:
Describe the results you received:
9223372036854710272
(unlimited) on cgroups v1Describe the results you expected:
104857600
Additional information you deem important (e.g. issue happens only occasionally):
Works fine with
crun
as runtime.runc
is the default, though.Output of
podman version
:Output of
podman info --debug
:Package info:
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes (to troubleshooting guide). No to latest version (as that is difficult for me on aarch64).
Additional environment details (AWS, VirtualBox, physical, etc.):
physical.
The text was updated successfully, but these errors were encountered: