Historically, swap space was set to twice the amount of memory.
Amount of RAM in the system | Recommended swap space | Recommended swap space if allowing for hibernating |
---|---|---|
2GB of RAM or less | 2 times the amount of RAM | 3 times the amount of RAM |
2GB to 8GB of RAM | Equal to the amount of RAM | 2 times the amount of RAM |
8GB to 64GB of RAM | 0.5 times the amount of RAM | 1.5 times the amount of RAM |
64GB of RAM or more | 4GB of swap space | No extra space needed |