Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

limit swap partition size to 8 GiB #8

Merged
merged 1 commit into from
Nov 17, 2017
Merged

limit swap partition size to 8 GiB #8

merged 1 commit into from
Nov 17, 2017

Conversation

fraenki
Copy link
Member

@fraenki fraenki commented Nov 13, 2017

I had an interesting experience: I've installed OPNsense on a server with 32 GiB RAM and a 128 GiB SSD as boot device. This resulted in a whopping 64 GiB swap partition! Not useful at all. This should not be the result of the default/easy installation.

The initial swap partition should be sort of a last resort and thus be rather small. I suggest to limit it's size to 4 GiB. It's still possible to add additional swap files later, if the need arises, and I think this should be the preferred way.

@fichtner
Copy link
Member

fichtner commented Nov 14, 2017 via email

@fraenki
Copy link
Member Author

fraenki commented Nov 14, 2017

Change to 8GB?

A good compromise. Although, if a server actually uses this amount of swap space, it's pretty much useless anyway ;)

@fraenki fraenki changed the title limit swap partition to 4 GiB limit swap partition size to 8 GiB Nov 14, 2017
@fraenki
Copy link
Member Author

fraenki commented Nov 14, 2017

Changed it to 8 GiB in e8681c1.

@fichtner fichtner merged commit 9405baf into opnsense:master Nov 17, 2017
@fichtner
Copy link
Member

Merged, thanks.

Someone else in the forum asked for the same issue. What do you think about asking for swap creation but still set the default to use a swap? This way we could also tell people a swap can’t be created because too small.

@fraenki
Copy link
Member Author

fraenki commented Nov 17, 2017

What do you think about asking for swap creation but still set the default to use a swap?

It's always good to have a choice. So yes, asking this question during installation would certainly be an improvement.

@fichtner
Copy link
Member

Ok, I’ll give this more thought. Thanks for the input. :)

@fichtner
Copy link
Member

#10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants