diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-11-24 13:03:34 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-11-24 13:03:34 -0500 |
commit | 31c3942c4bf38db934db1472fa6df9b0dd39e8ed (patch) | |
tree | 9bfd6cb769ec43091a665a7af3cc31a77d4e4422 | |
parent | e46616a729a17f618bb7bd1e6e8594903381e0fb (diff) | |
download | pfsense-31c3942c4bf38db934db1472fa6df9b0dd39e8ed.zip pfsense-31c3942c4bf38db934db1472fa6df9b0dd39e8ed.tar.gz |
Set memory to 256M on amd64
-rw-r--r-- | etc/inc/config.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index d21c452..a718a3c 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -48,10 +48,17 @@ if($g['booting']) echo "."; //if (in_array("/etc/inc/config.inc", get_included_files())) // return; -// Set the memory limit to 128M. When someone has something like 500+ tunnels +// Set the memory limit to 128M on i386. When someone has something like 500+ tunnels // the parser needs quite a bit of ram. Do not remove this line unless you // know what you are doing. If in doubt, check with dev@ _/FIRST/_! -ini_set("memory_limit","128M"); +if(!$ARCH) + $ARCH=trim(`/usr/bin/uname -m`); + +// Set memory limit to 256M on amd64. +if($ARCH == "amd64") + ini_set("memory_limit","256M"); +else + ini_set("memory_limit","128M"); /* include globals from notices.inc /utility/XML parser files */ require_once("notices.inc"); |