GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   CentOS Swap Size (https://gfy.com/showthread.php?t=1309332)

AzteK 02-15-2019 11:18 AM

CentOS Swap Size
 
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?

2MuchMark 02-15-2019 11:36 AM

Quote:

Originally Posted by AzteK (Post 22416530)
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?

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?

Ferus 02-15-2019 11:39 AM

Centos best practice:

Twice the size of RAM if RAM is less than 2 GB

Size of RAM + 2 GB if RAM size is more than 2 GB i.e. 5GB of swap for 3GB of RAM

AzteK 02-15-2019 12:03 PM

Quote:

Originally Posted by 2MuchMark (Post 22416545)
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-swapspace

Porn academy 02-15-2019 01:00 PM

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 space

AzteK 02-15-2019 08:39 PM

Quote:

Originally Posted by Porn academy (Post 22416617)
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 space

yeah this is what I ended up going with - thanks guys!


All times are GMT -7. The time now is 04:18 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123