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

Have a more sane swap size on larger servers #249

Open
michiels opened this issue Nov 18, 2018 · 0 comments
Open

Have a more sane swap size on larger servers #249

michiels opened this issue Nov 18, 2018 · 0 comments

Comments

@michiels
Copy link
Member

Problem

We currently have the "Enable Swap" feature create a swapfile of current_swap * 3. For relatively small servers with 500M or 1G of memory this is quite sane, but for bigger servers it doesn't make to make the swap 3 times as large as the available memory.

For example: a 4GB server would end up with 12GB of swap. Maybe 1-2GB of swap on those servers is enough.

Suggestion

We can probably choose a maximum treshold for the multiplier. So that a server can never have more than 2G of swap. Or, we just always set it to 1GB, regardless of the system memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant