Every since I had eaccelerator installed, Ive always just used teh reccomended settings which are on every single tutorial there is on installing it. So I got to messing around last night and looking up some of the settings and I figured I would play around some. Each of my servers have ram to spare so why not?
I tinkered and tinkered until I came up with this configuration. I could tell a difference of about .2-.5 seconds which is a lot in terms of page load. I havent got to see the long term effects yet but there is definitely a speed increase. Before I never really did notice a difference with or without the cache but now I see a big one. The key is to cache the scripts in shm instead of disk, and to not compress the scripts as they only have to uncompress upon execution. If you have plenty of ram to spare you can pull it off.
The top amount of shm I was able to get it to use on any server was 150, I dont know why either as all my shm limits are much higher then that. But anyway it still works good. Here is my current eaccelerator config. If anyone has a server without a few gbs of ram give this a try, you will see a difference I guarantee.
extension=”eaccelerator.so”
eaccelerator.shm_size=”150″
eaccelerator.cache_dir=”/var/eacc”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.filter=”"
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”3600″
eaccelerator.shm_prune_period=”1800″
eaccelerator.shm_only=”1″
eaccelerator.compress=”0″
eaccelerator.compress_level=”9″
eaccelerator.keys=”shm_only”
eaccelerator.sessions=”shm_only”
eaccelerator.content=”shm_only”
Related Articles
No user responded in this post