-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Special case memory-swap=-1 #5098
Conversation
We document that memory-swap==-1 means unlimited, but currently we won't allow the user to specify the -1 value. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@s-winter does this fix your problem? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thank you for looking into the issue. Unfortunately, I cannot tell if your change fixed my problem or not. I just tried running podman built from your fork of libpod and it fails. I tried merging containers/libpod master and it fails. I spent around an hour googling for the error messages, applying fixes and workarounds here and there and it still fails. I will look into this again when I find more time. |
can you please share the error message? It might be related to crun and how the Done some work recently in this area: containers/crun#226 |
Invoking
When I add
Adding
|
looks like there is no systemd user session that you can use. How has the rootless user logged in? Through sudo? You need to make sure there is a systemd user session, you either need to login through ssh/desktop so that the pam session is created, or you need to use |
@mheon @giuseppe @baude @TomSweeneyRedHat @QiWang19 PTAL |
LGTM Tested locally: $ podman run --rm --memory=500m --memory-swap=-1 fedora cat /sys/fs/cgroup/memory.swap.max
max |
/lgtm |
Direct login via ssh.
As I wrote I directly log in via ssh. I also tried I recall that I had the same issue when I was playing with podman earlier, around mid November. I do not recall what I did to resolve it back then or if I resolved it at all. But I was very happy that everything was running out of the box and without problems when I ran version 1.7.0 from the installed Ubuntu package this week. I am surprised that I'm now facing the issue again when switching to a build from libpod's master branch to test the fix proposed by rhatdan. |
We document that memory-swap==-1 means unlimited, but currently we
won't allow the user to specify the -1 value.
Fixes: #5091
Signed-off-by: Daniel J Walsh dwalsh@redhat.com