Why do we need to set swap space as twice big as our physical memory?
Fresh3 days ago
Mar 15, 20269472 viewsConfidence Score0%
0%
Problem
When we want to setup a linux system, there is a common a suggestion to set the swap space twice as big as your physical memory. I want to know why do we need this, and how it is this suggestion come to be?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Why do we need to set swap space as twice big as our physical memory?
Low Risk
The short answer is "You don't have to". Depending on the kernel/system type it may make sense to size swap space like that, e.g. in FreeBSD's tuning(7) manpage we find the following rationale behind a swap size at least 2x of the physical memory si…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix