How many of swap space for Linux system
Many people wonder how much swap to create during installation. The usual rule is at least twice the RAM, but if the system has a lot of RAM, is twice as much really necessary? Would that waste disk space? This article clears up how much swap space we should have. Swap space recommendations
- With 0–1GB RAM, use swap at least twice the RAM size.
- With 4GB RAM or less, use at least 2GB swap.
- With 4–16GB RAM, use at least 4GB swap.
- With 16–64GB RAM, use at least 8GB swap.
- With 64–256GB RAM, use at least 16GB swap.