How Big Should a Linux Swap Partition Be?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The size of the swap partition depends on the amount of RAM your system has and the type of usage you plan to make of it. Generally speaking, a swap partition should at least be twice the size of the system’s physical RAM. For instance, for a system with 4GB of RAM, the swap partition should be at least 8GB. If you plan to use the system for intensive tasks, such as virtualization, then you may want to increase the size of the swap partition to 4-8 times the amount of physical RAM.