Tuesday 01 September 2009 11:12:50 am
Heya all, Installing eAccelerator had quite the opposite effect than I expected, it slowed my website down quite a bit. Loading a page without eAccelerator takes ~0.7 seconds.
Checkpoint Elapsed Rel. Elapsed Memory Rel. Memory
Module start 'content' 0.0000 sec 0.1582 sec 7,254.5469KB 2,069.6875KB
Module end 'content' 0.1582 sec 0.0894 sec 9,324.2344KB 387.0547KB
End 0.2476 sec 9,711.2891KB 0.3780KB
Total runtime: 0.3197 sec
Accumulator Elapsed Percent Count Average
ini_load
Load cache 0.0328 sec 4.8918% 10 0.0033 sec
Mysql Total
Mysql_queries 0.0091 sec 1.3653% 2 0.0046 sec
Looping result 0.0001 sec 0.0187% 2 0.0001 sec
Template Total 0.1423 sec 21.2% 2 0.0711 sec
Template load 0.0585 sec 8.7298% 2 0.0292 sec
Template processing 0.0810 sec 12.1000% 2 0.0405 sec
override
Cache load 0.0278 sec 4.1561% 2 0.0139 sec
General
dbfile 0.0052 sec 0.7748% 9 0.0006 sec
Total script time: 0.6697 sec
Loading the same page with eAccelerator enabled takes much more time:
Checkpoint Elapsed Rel. Elapsed Memory Rel. Memory
Module start 'content' 0.0000 sec 1.1264 sec 6,299.7656KB 1,775.0234KB
Module end 'content' 1.1264 sec 0.2698 sec 8,074.7891KB 367.8281KB
End 1.3962 sec 8,442.6172KB 0.3592KB
Total runtime: 1.9067 sec
Accumulator Elapsed Percent Count Average
ini_load
Load cache 0.2631 sec 6.9596% 10 0.0263 sec
Mysql Total
Mysql_queries 0.0284 sec 0.7516% 2 0.0142 sec
Looping result 0.0001 sec 0.0029% 2 0.0001 sec
Template Total 0.6867 sec 18.2% 2 0.3434 sec
Template load 0.1810 sec 4.7888% 2 0.0905 sec
Template processing 0.5040 sec 13.3324% 2 0.2520 sec
override
Cache load 0.1369 sec 3.6212% 2 0.0684 sec
General
dbfile 0.0239 sec 0.6318% 9 0.0027 sec
Total script time: 3.7803 sec
Nothing else changed. Some caching settings that were enabled also:
TemplateCompile=enabled
TemplateOptimization=enabled
TemplateCache=enabled
ViewCache=Enabled
.... etc.
Here's what I got from phpInfo (I'm in a shared environment):
eAccelerator support enabled
Version 0.9.5.3
Caching Enabled true
Optimizer Enabled true
Memory Size 33,554,396 Bytes
Memory Available 1,660 Bytes
Memory Allocated 33,552,736 Bytes
Cached Scripts 564
Removed Scripts 0
Cached Keys 0
Directive Local Value Master Value
eaccelerator.allowed_admin_path /usr/share/eaccelerator/scripts /usr/share/eaccelerator/scripts
eaccelerator.cache_dir /var/cache/eaccelerator /var/cache/eaccelerator
eaccelerator.check_mtime 1 1
eaccelerator.compress 1 1
eaccelerator.compress_level 9 9
eaccelerator.content shm_and_disk shm_and_disk
eaccelerator.debug 0 0
eaccelerator.enable 1 1
eaccelerator.filter no value no value
eaccelerator.keys shm_and_disk shm_and_disk
eaccelerator.log_file /var/log/httpd/eaccelerator_log /var/log/httpd/eaccelerator_log
eaccelerator.name_space no value no value
eaccelerator.optimizer 1 1
eaccelerator.sessions shm_and_disk shm_and_disk
eaccelerator.shm_max 0 0
eaccelerator.shm_only 0 0
eaccelerator.shm_prune_period 0 0
eaccelerator.shm_size 0 0
eaccelerator.shm_ttl 0 0
What settings are blocking the speedup an accelerator is promising to happend? Thanks a lot in advance!
|