eAcc settings

#1
what settings do you guys use in a shared hosting environment?


My current setup:
extension="eaccelerator.so"
eaccelerator.shm_size="128"
eaccelerator.cache_dir="/dev/shm/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="7200"
eaccelerator.shm_prune_period="1200"
eaccelerator.shm_only="1"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys="shm_only"
eaccelerator.sessions="shm_only"
eaccelerator.content="shm_only"
 

mistwang

LiteSpeed Staff
#2
I recommend using

eaccelerator.shm_size="16"
eaccelerator.optimizer="0"

16MB cache per process is enough as all cached scripts are shared in memory via /dev/shm/ .
do not use "shm_only" mode, it will not populate the on disk cache in /dev/shm.


You may need to load it as a zend_extension if ZendOptimizer is used.
 
Last edited:

anewday

Well-Known Member
#3
What do you mean by per process? I thought that value is the size allocated to cache scripts. 16MB can be filled up quickly. And why disable eaccelerator.optimizer?
 

mistwang

LiteSpeed Staff
#4
when use PHP suEXEC, each PHP process will create its own cache memory as each process was started independently.
If you use ZendOptimizer, you should turn off eaccelerator's.
 

anewday

Well-Known Member
#5
I don't see any instances of zend_extension in php.ini but it shows Zend in php version.

[/usr/local/lsws/fcgi-bin]# ./lsphp-4.4.9 -v
PHP 4.4.9 (litespeed) (built: Jan 7 2009 00:36:35)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
 
Last edited:
Top