Portal Home > Knowledgebase > Articles Database > eAccelerator tweak


eAccelerator tweak




Posted by Peter-SexyWing, 04-18-2010, 08:39 AM
Hi I searched and find niformation on EA are pretty oudated We use EA due to it is easier to be compiled by cpanel We have a box with Dual E5520+12G RAM+Raid 10 We currently have this setup on EA extension="eaccelerator.so" eaccelerator.cache_dir="/home/eaccelerator" eaccelerator.check_mtime="1" eaccelerator.compress="1" eaccelerator.compress_level="9" eaccelerator.debug="0" eaccelerator.enable="1" eaccelerator.filter="" eaccelerator.optimizer="1" eaccelerator.shm_max="0" eaccelerator.shm_only="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_size="512" eaccelerator.shm_ttl="0" What is your configs on EA? I am especailly curious on "eaccelerator.shm_ttl", dfault is zero 512mb still gets filled up quickly, what happen when it is all filled and ttl =0? start using swaps?

Posted by vapetrov, 04-18-2010, 09:26 AM
eaccelerator will never use memory more than shm_size. If shm_size filled eaccelerator will free used memory by clearing oldest data. shm_ttl force eaccelerator to clear old data even if free memory not needed actually.

Posted by VIPoint, 04-18-2010, 10:46 AM
Here is the config that we use in our servers zend_extension="/usr/local/src/ea/eaccelerator-0.9.5.3/modules/eaccelerator.so" eaccelerator.shm_size="64" eaccelerator.cache_dir="/tmp/eaccelerator" eaccelerator.enable="1" eaccelerator.optimizer="1" eaccelerator.check_mtime="1" eaccelerator.debug="0" eaccelerator.filter="" eaccelerator.shm_max="0" eaccelerator.shm_ttl="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_only="0" eaccelerator.compress="1" eaccelerator.compress_level="9" Hope this helps

Posted by Peter-SexyWing, 04-18-2010, 11:17 AM
This info helps us clear confusions we have thanks

Posted by yajur, 04-18-2010, 12:49 PM
btw will eAccelerator increase the I/O wait time of the server ?

Posted by HD Fanatic, 04-18-2010, 01:20 PM
That's only true if eaccelerator.shm_prune_period or eaccelerator.shm_ttl is set to a non zero value.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Serverboost.nl down?? (Views: 627)
How to fight spam? (Views: 627)