How Much Swap Do I Need Ubuntu?
Contents Amount of Installed Ram Recommended Swap Space Recommended Swap Space If Hibernation Enabled 1Gb 1Gb 2Gb 2Gb 1Gb 3Gb 3Gb 2Gb 5Gb 4Gb 2Gb 6Gb How Much...
Contents
| Amount of installed RAM | Recommended swap space | Recommended swap space if hibernation enabled |
|---|---|---|
| 1GB | 1GB | 2GB |
| 2GB | 1GB | 3GB |
| 3GB | 2GB | 5GB |
| 4GB | 2GB | 6GB |
How much Linux swap space do I need?
What is the right amount of swap space?
| Amount of system RAM | Recommended swap space | Recommended swap with hibernation |
|---|---|---|
| 2 GB – 8 GB | Equal to the amount of RAM | 2 times the amount of RAM |
| 8 GB – 64 GB | 0.5 times the amount of RAM | 1.5 times the amount of RAM |
| more than 64 GB | workload dependent | hibernation not recommended |
Is swap required for Ubuntu?
If you need hibernation, a swap of the size of RAM becomes necessary for Ubuntu. … 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.