Closed MartinX3 closed 3 months ago
I cannot find the string "MemoryLimit"
in our code base at all which means podman is most likely not setting that.
I found it in crun so I guess crun configures the cgroup with that, @giuseppe PTAL
I also see the warning cgroup compatibility translation between legacy and unified hierarchy settings activated. See cgroup-compat debug messages for details.
.
Arch Linux uses cgroup v2.
I'm also having the same warnings.
I've using quadlet to generate files in /etc/container/systemd and in these files I see this line:
PodmanArgs=--memory 256m
.
I can find a corresponding file in /run/systemd/transient, for example /run/systemd/transient/libpod-2edcbecbc2ac17882877dae8ba3f969b19476a7f0676b0c2d9c54cba9ed3e27f.scope.
In the .scope files in /run/systemd/transient there is a line like this which I think is the cause of the warning.
MemoryLimit=268435456
@giuseppe PTAL again
opened a PR:
Issue Description
Every day I get the journal warning
Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.
about my podman pods.Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.
Describe the results you expected
The pods should use
MemoryMax
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Arch Linux with SystemD
Additional information
No response