![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Feb 2001
Location: Northern Cali, USA
Posts: 3,440
|
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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Videochat Solutions
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 48,707
|
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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Bye - Left to do stuff
Industry Role:
Join Date: Feb 2013
Posts: 4,108
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Industry Role:
Join Date: Feb 2001
Location: Northern Cali, USA
Posts: 3,440
|
Quote:
Here is Redhat's recommendation https://access.redhat.com/documentat...e/ch-swapspace |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: May 2010
Location: Under a bridge
Posts: 78
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Feb 2001
Location: Northern Cali, USA
Posts: 3,440
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |