I'm trying to figure out how much to allocate for swap. I usually do half the ram. So if it's a 32g machine I allocate 16g for the swap. How much do you allocate?
CentOS Swap Size
Collapse
X
-
I'm not sure but I think essentially you are trading ram for speed. Wouldn't this depend on the size of your application and how much data you need to store in ram for that app? -
Yes, that is correct.
Here is Redhat's recommendation
https://access.redhat.com/documentat...e/ch-swapspaceComment
-
we follow their recommendation on our servers and till now no problems.
4GB of RAM or less a minimum of 2GB of swap space
4GB to 16GB of RAM a minimum of 4GB of swap space
16GB to 64GB of RAM a minimum of 8GB of swap space
64GB to 256GB of RAM a minimum of 16GB of swap space
256GB to 512GB of RAM a minimum of 32GB of swap spaceComment
-
yeah this is what I ended up going with - thanks guys!we follow their recommendation on our servers and till now no problems.
4GB of RAM or less a minimum of 2GB of swap space
4GB to 16GB of RAM a minimum of 4GB of swap space
16GB to 64GB of RAM a minimum of 8GB of swap space
64GB to 256GB of RAM a minimum of 16GB of swap space
256GB to 512GB of RAM a minimum of 32GB of swap spaceComment

Comment