Contents
What is the suggested size of swap if your system RAM?
What’s the right amount of swap space?
| Amount of RAM installed in system | Recommended swap space | Recommended swap space with hibernation |
|---|---|---|
| ≤ 2GB | 2X RAM | 3X RAM |
| 2GB – 8GB | = RAM | 2X RAM |
| 8GB – 64GB | 4G to 0.5X RAM | 1.5X RAM |
| >64GB | Minimum 4GB | Hibernation not recommended |
Can SSD replace RAM?
The short answer is no. Here’s why. Solid-State Drives (SSDs) have no mechanical or moving parts, which makes them ideal for mobile devices.
How big should the swap be for Ram?
Swap spaces are more beneficial for those who do not have a lot of RAM. It’s fairly easy to have 8GB of RAM on a desktop, and old rules of thumb on swap partition size will give you a huge amount of virtual RAM, but it does depend on the software you are running. So check what your computer is doing.
How big of a swap do you need for Linux?
If you go by Red Hat’s suggestion, they recommend a swap size of 20% of RAM for modern systems (i.e. 4GB or higher RAM). CentOS has a different recommendation for the swap partition size. It suggests swap size to be: Twice the size of RAM if RAM is less than 2 GB. Size of RAM + 2 GB if RAM size is more than 2 GB i.e. 5GB of swap for 3GB of RAM.
How big of a swap partition do I Need?
You should be fine with just 2 or 4 Gb of swap size, or none at all (since you don’t plan hibernating). An often-quoted rule of thumb says that the swap partition should be twice the size of the RAM. This rule made sense on older systems to cope with the limited amount of RAM; nowadays your system, unless on heavy load, won’t swap at all.
Is it possible to swap partitions on a SSD?
Modern SSDs can score as low as 20 TB for a consumer product but can score over 20,000 TB in an enterprise-level SSD. Having said that, both the lifespan and the use of a SSD for swapping depends on several factors… On a system with plenty of RAM and few memory consuming applications we will almost never swap.