summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-03-13 03:25:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-03-13 03:25:03 +0000
commit6a71103ae1daf046e119484c79faf84a612e0242 (patch)
tree5318b30365cc2b1590c200dff8c993f743004415 /etc/inc/system.inc
parent7a7dceb264a01eb3ea955b4d5856190dd797c939 (diff)
downloadpfsense-6a71103ae1daf046e119484c79faf84a612e0242.zip
pfsense-6a71103ae1daf046e119484c79faf84a612e0242.tar.gz
Back out variable size cache, it slows things down. Why 12 megabytes is slower than 10 megabytes is a good question.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 69cc791..e22f5bd 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -39,16 +39,13 @@ function opcode_cache_configuration() {
/* get system memory amount */
$memory = get_memory();
$avail = $memory[0];
- $cache_size = floor($avail/10);
- if($cache_size < 8) $cache_size = 8;
- if($cache_size > 25) $cache_size = 25;
/* disable apc for platforms less than 90 megs of ram */
if($memory > 90) {
$opcode_cacher = "extension=apc.so\n";
$opcode_cacher .= "apc.enabled=\"1\"\n";
$opcode_cacher .= "apc.enable_cli=\"1\"\n";
- $opcode_cacher .= "apc.shm_size=\"$cache_size\"\n";
+ $opcode_cacher .= "apc.shm_size=\"10\"\n";
} else {
$opcode_cacher = "";
}
OpenPOWER on IntegriCloud