Comments (10)
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.
from openmediavault.
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/
from openmediavault.
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?
from openmediavault.
The OMV installer is the Debian installer. So, it is calculating the swap partition size.
from openmediavault.
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.
from openmediavault.
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.
from openmediavault.
4.x is EOL, is it an issue affecting 5.x?
from openmediavault.
@votdev are there plans to change current behavior?
from openmediavault.
Closing because this should be addressed at the team owning Debian installer
from openmediavault.
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.
from openmediavault.
Related Issues (20)
- Create file system candidates includes zfs members HOT 7
- OMV 7.x Missing Snapshots Schedule Tasks Choice : Custom / Yearly HOT 8
- Add support for WPA3 authentication for wireless connections
- Hostname change on interface causes raspberry os lite to fail on boot HOT 5
- .sh-script in Openmediavault HOT 2
- Raid 1 mounting problem exists after clean install of OMV HOT 1
- Some plugins are missing from OMV7 HOT 2
- Basic auth
- Only using NFSv2 and/or NFSv3 disabling NFS via TCP HOT 1
- OMV7 Fresh install on RPi 5 8GB - default admin user and password not working. HOT 1
- System Logs viewer cuts of messages containing text matching "<[A-Za-z]"
- IsDirty: Exception when executed without parameters HOT 1
- Add running tasks list, with option to stop/cancel HOT 1
- Log per task run with status indication HOT 1
- Provide known hosts handling from GUI HOT 2
- Best way to configure alerts on drive smart changes HOT 14
- Add python support to codeEditor component
- Allow codeEditor language to be dynamically changed
- re-creating a logical volume causes error 500 HOT 9
- Imported groups with GID > 65500 do not appear in the GUI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmediavault.