From 353cfeb8a3a0de722e31bd5093f9efea818ff32f Mon Sep 17 00:00:00 2001 From: gau1991 Date: Fri, 26 Sep 2014 19:06:25 +0530 Subject: [PATCH] Added SWAP creation function --- src/lib/ee_lib_ram.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/ee_lib_ram.sh b/src/lib/ee_lib_ram.sh index a6b24461..be49e400 100644 --- a/src/lib/ee_lib_ram.sh +++ b/src/lib/ee_lib_ram.sh @@ -11,11 +11,13 @@ function ee_lib_ram() EE_MEMCACHE_SIZE="64" EE_PHP_MAX_CHILDREN="10" EE_SETUP_MAILSCANNER="no" + EE_SWAP="1024" # RAM > 512MB and RAM < 1024MB elif [ $EE_TOTAL_RAM -gt 512 ] && [ $EE_TOTAL_RAM -le 1024 ]; then EE_OPCACHE_SIZE="128" EE_MEMCACHE_SIZE="128" EE_PHP_MAX_CHILDREN="10" + EE_SWAP="1024" # RAM > 1024MB and RAM < 2048MB elif [ $EE_TOTAL_RAM -gt 1024 ] && [ $EE_TOTAL_RAM -le 2048 ]; then EE_OPCACHE_SIZE="256"