How Much Swap Space Do I Need Ubuntu?
Contents If Your Ram Is Higher Than 1Gb, It Is Usually Enough for Ubuntu. the “Swap = Ram X2” Rule Is for Old Computers with 256 or 128Mb of Ram. So 1 Gb of...
Contents
If your ram is higher than 1GB, it is usually enough for ubuntu. The “Swap = RAM x2” rule is for old computers with 256 or 128mb of ram. So 1 GB of swap is usually enough for 4GB of RAM. 8 GB would be too much.
How much swap do I need Ubuntu?
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.
Must Read
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 |