Skip to content
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

how to control swap? #15

Closed
onlyjob opened this issue Dec 26, 2019 · 4 comments
Closed

how to control swap? #15

onlyjob opened this issue Dec 26, 2019 · 4 comments

Comments

@onlyjob
Copy link
Contributor

onlyjob commented Dec 26, 2019

One of my containers uses swap heavily...
Is there a way to pass --memory-swap and/or --memory-swapiness to Podman in order to restrict swap usage?

@towe75
Copy link
Collaborator

towe75 commented Dec 26, 2019

There seems to be an ongoing discussion related to swap in nomad docker containers. It will be best to let the user decide about it, so i'll simply expose two more driver specific configuration options.

towe75 added a commit that referenced this issue Dec 27, 2019
@towe75
Copy link
Collaborator

towe75 commented Dec 27, 2019

@onlyjob i added more options: memory_reservation, memory_swap and memory_swappiness. Again there is a readme snipped and a unit test. I did not set a default swappiness.

@onlyjob
Copy link
Contributor Author

onlyjob commented Dec 27, 2019

You are the champion, Thomas. Thank you. I'll test shortly. Perhaps all the new features since 0.0.1 qualify for new release...

@onlyjob
Copy link
Contributor Author

onlyjob commented Dec 31, 2019

memory_swappiness works perfectly and does exactly what I need. Thank you very much, @towe75.

@onlyjob onlyjob closed this as completed Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants