How Big Should a Linux Swap Partition Be?
Contents What Should Be the Size of Swap Partition in Linux? What Is the Right Amount of Swap Space? Amount of System Ram Recommended Swap Space Recommended...
Contents
What should be the size of swap partition in Linux?
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 |
How many GB is my swap space Linux?
The procedure to check swap space usage and size in Linux is as follows:
- Open a terminal application.
- To see swap size in Linux, type the command: swapon -s .
- You can also refer to the /proc/swaps file to see swap areas in use on Linux.
- Type free -m to see both your ram and your swap space usage in Linux.
1 окт. 2020 г.