36.2 Recommended Swap Space for Ubuntu
The amount of swap recommended for Ubuntu depends on a number of factors including the amount of memory in the system, the workload imposed on that memory and whether the system is required to support hibernation. The current guidelines for Ubuntu swap space are as follows:
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 |
5GB |
2GB |
7GB |
6GB |
... |