ghfields / rpooler

A guided installation script for zfs rpools
30 stars 6 forks source link

Ask user for swap size / auto calculate base on ubuntu #10

Closed ghfields closed 6 years ago

ghfields commented 6 years ago

Ubuntu Swap FAQ For less then 1GB of physical memory (RAM), it's highly recommended that the swap space should, as a base minimum, be equal to the amount of RAM. Also, it's recommended that the swap space is maximum twice the amount of RAM depending upon the amount of hard disk space available for the system because of diminishing returns.

For more modern systems (>1GB), your swap space should be at a minimum be equal to your physical memory (RAM) size "if you use hibernation", otherwise you need a minimum of round(sqrt(RAM)) and a maximum of twice the amount of RAM. The only downside to having more swap space than you will actually use, is the disk space you will be reserving for it.

ghfields commented 6 years ago

Resolved Pull #21