summaryrefslogtreecommitdiffstats
path: root/etc/rc.php_ini_setup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-07-30 20:24:44 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-07-30 20:24:44 -0400
commit1e86e8970e908afab8d76f7db40558aa72defd05 (patch)
tree378d81b1c05e8028c86fc32deeff57fffbc5933f /etc/rc.php_ini_setup
parent5778e859e9cf3230cacd8f76b7f7907631b14ced (diff)
downloadpfsense-1e86e8970e908afab8d76f7db40558aa72defd05.zip
pfsense-1e86e8970e908afab8d76f7db40558aa72defd05.tar.gz
Use more conservative apc memory values
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-xetc/rc.php_ini_setup16
1 files changed, 7 insertions, 9 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup
index 3f24430..61a868e 100755
--- a/etc/rc.php_ini_setup
+++ b/etc/rc.php_ini_setup
@@ -1,7 +1,7 @@
#!/bin/sh
#
# rc.php_ini_setup
-# Copyright (C) 2010 Scott K Ullrich <sullrich@gmail.com>
+# Copyright (C) 2010 Scott Ullrich <sullrich@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -53,19 +53,19 @@ if [ "$AVAILMEM" -lt "128" ]; then
APCSHMEMSIZE="10"
fi
if [ "$AVAILMEM" -gt "128" ]; then
- APCSHMEMSIZE="25"
+ APCSHMEMSIZE="15"
fi
if [ "$AVAILMEM" -gt "256" ]; then
- APCSHMEMSIZE="45"
+ APCSHMEMSIZE="20"
fi
if [ "$AVAILMEM" -gt "384" ]; then
- APCSHMEMSIZE="65"
+ APCSHMEMSIZE="25"
fi
if [ "$AVAILMEM" -gt "512" ]; then
- APCSHMEMSIZE="80"
+ APCSHMEMSIZE="30"
fi
if [ "$AVAILMEM" -gt "784" ]; then
- APCSHMEMSIZE="100"
+ APCSHMEMSIZE="35"
fi
# Set upload directory
@@ -126,7 +126,6 @@ PHPMODULES="apc \
# sockets \
# Reflection \
# mysql \
-
# bz2 \
# json \
@@ -263,12 +262,11 @@ for EXT in $PHPMODULES; do
SHOULDREMOVE="false"
fi
done
+ # Handle low memory situations
if [ "$LOWMEM" = "TRUE" ]; then
if [ "$EXT" = "apc" ]; then
SHOULDREMOVE="true"
fi
- fi
- if [ "$LOWMEM" = "TRUE" ]; then
if [ "$EXT" = "xcache" ]; then
SHOULDREMOVE="true"
fi
OpenPOWER on IntegriCloud