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

OMV 4 partitioner reserves too much space for swap #66

Closed
andongn opened this issue Mar 21, 2018 · 10 comments
Closed

OMV 4 partitioner reserves too much space for swap #66

andongn opened this issue Mar 21, 2018 · 10 comments

Comments

@andongn
Copy link

andongn commented Mar 21, 2018

I have HP Microserver Gen10. When installing OMV 4 the partitioner reserves 13,6GB for swap on the 16GB USB stick, which make the installation fail as there is not enough space left on /target (857MB) to copy all the files needed.
The server have 32GB RAM, so reserving anything over 4GB for swap seems unnecessary to me.

Same configuration with OMV 3 installs and works fine.

@votdev votdev added the 4.x label Apr 3, 2018
@Ansem93
Copy link

Ansem93 commented May 15, 2018

Swap by default should be the same size of the RAM. This is important if you want to hibernate your NAS.
I see nothing wrong with it.
Also some source for the standard Swap partition size:
If you go by Red Hat’s suggestion, they recommend a swap size of 20% of RAM for modern systems (i.e. 4GB or higher RAM).

CentOS has a different recommendation for the swap partition size. It suggests swap size to be:

Twice the size of RAM if RAM is less than 2 GB
Size of RAM + 2 GB if RAM size is more than 2 GB i.e. 5GB of swap for 3GB of RAM
Ubuntu has an entirely different perspective on the swap size as it takes hibernation into consideration. If you need hibernation, a swap of the size of RAM becomes necessary for Ubuntu.

Otherwise, it recommends:

If RAM is less than 1 GB, swap size should be at least the size of RAM and at most double the size of RAM
If RAM is more than 1 GB, swap size should be at least equal to the square root of the RAM size and at most double the size of RAM
If hibernation is used, swap size should be equal to size of RAM plus the square root of the RAM size
Source: https://itsfoss.com/swap-size/

@ryecoaaron
Copy link
Contributor

Personally, I like the method that Armbian and Ubuntu (now) use - use a file for swap. Performance may not be as good but if you are swapping, your system is probably undersized for your needs. Using the file eliminates the need to deal with partitions and becomes a setting.

@andongn
Copy link
Author

andongn commented May 15, 2018

Thanks for the comments. Can someone provide details on how the OMV 4 installer is deciding on swap size? Is it the default Debian setup behind this, or is it customized to be so eager?

@ryecoaaron
Copy link
Contributor

The OMV installer is the Debian installer. So, it is calculating the swap partition size.

@mzhboy
Copy link

mzhboy commented Mar 16, 2019

swap should define by user.when I install omv 4.x on pve, the swap is totally unnecessary.
the script use a lots of space for swap and then “Install the system” failed during installation on pve, I had to use a debian image to install debian first and then install omv manually.

@andreapx
Copy link

andreapx commented Nov 14, 2020

I think that a flag to ask to personalize the swap partition would be a very good thing!
I was installing OMV on a DL380 gen8 (with Proxmox) that has 64GB or RAM and I had to assign to OMV only 2GB of RAM to have a small HD.
Me, and I think a lot of other people, will never hibernate the NAS.

@mi-hol
Copy link
Contributor

mi-hol commented Dec 16, 2020

4.x is EOL, is it an issue affecting 5.x?

@mi-hol
Copy link
Contributor

mi-hol commented Dec 21, 2020

@votdev are there plans to change current behavior?

@mi-hol
Copy link
Contributor

mi-hol commented Dec 27, 2020

Closing because this should be addressed at the team owning Debian installer

@mi-hol mi-hol closed this as completed Dec 27, 2020
@ws-tech-mgr
Copy link

I was installing OMV on a DL380 gen8 (with Proxmox) that has 64GB or RAM and I had to assign to OMV only 2GB of RAM to have a small HD.

I had to use this workaround for OMV 5.5.11-1, on ESXi 7.0. After installation completed, I bumped the allocated memory back up, and it seems to be working just fine on a test box.

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

8 participants