Jump to content

Xcache or APC


Recommended Posts


i user xcache for al long time, but i switched to apc a few days ago just for fun, for what i know apc can cache var data, while xcache cant...




Any difference in speed?

Also what memory did you have allocated to apc?
Link to comment
Share on other sites

no really to be honest AFAIK the both are almost head to head...but APC can store variable data so that should help a little bit, my only problem is fragmentation, but i reset the cache every few days...
i checked right now after maybe 3 days...0.8 fragmentation, 100Mb used + 3.5Mb to var data


Hits: 271707 (99.7%)
Misses: 726 (0.3%)

Cached Files 568 ( 97.5 MBytes)
Hits 271707
Misses 726
Request Rate (hits, misses) 368.65 cache requests/second
Hit Rate 367.67 cache requests/second
Miss Rate 0.98 cache requests/second
Insert Rate 0.80 cache requests/second
Cache full count 0

Link to comment
Share on other sites

Just enabled xcache..

Do these settings look ok ?

extension="xcache.so"
xcache.admin.enable_auth="on"
xcache.admin.pass="xxxxxxxxxxxxxxxxxxxxxxxxx"
xcache.admin.user="xxxxxxxxxx"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="4"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coveragedumper="Off"
xcache.coverager="Off"
xcache.gc_interval="300"
xcache.mmap_path="/dev/zero"
xcache.optimizer="On"
xcache.readonly_protection="Off"
xcache.size="128M"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="3600"
xcache.var_count="1"
xcache.var_gc_interval="0"
xcache.var_maxttl="0"
xcache.var_size="128M"
xcache.var_slots="8K"
xcache.var_ttl="0"

Link to comment
Share on other sites


no really to be honest AFAIK the both are almost head to head...but APC can store variable data so that should help a little bit, my only problem is fragmentation, but i reset the cache every few days...


i checked right now after maybe 3 days...0.8 fragmentation, 100Mb used + 3.5Mb to var data




I believe that happens on xcache too.. i have to clean up xcache to avoid slowness every few days..
Link to comment
Share on other sites


I used to have xcache installed on my board until I ran into some problems..after site issues..



I've now been told to use APC.



Which cache system is the fastest or most used for IPB.




there is no one answer for this question as everyone has different setup. Your experience with any of these so called accelerator is unique to you. Personally I had issues with APC.

In addition, it also depends on your PHP handler. Here is a video by Tristan of cPanel explaining the differences:



hope this helps :)
Link to comment
Share on other sites

I've been trying to get access to the xcache admin panel with no success my hosting tried to set it up for me..

This is there response..


Hello



As per our conversation, I have been trying to get the Admin url to work for you. It appears to


be php causing this problem the source code for the admin panel does not


appear to b written fcgi.



At this point using that admin interface will not be possible unless you


change your servers php handler. Please let me know if you need anything else.



Thank You.




Do I need the admin panel for xcache? My setup is..

PHP 5.3.10 Zend, FastCGI, Xcache.

Or should I revert back to APC
Link to comment
Share on other sites

As Enkidu said depends also on php handler used.

Also it depends on web server used too.

I find

  • for Apache with fastcgi/mod_php, use Xcache slight faster than APC
  • for Litespeed web server with mod_php non-suexec, use Xcache for slightly better performance but an expense of incompatibility with some scripts or APC cache which seems to handle a wider variety of scripts
  • for Nginx web server with fastcgi/php-fpm, APC better

Also note if you scripts rely on Ioncube encoder, may have issues with Xcache.

HTH

THL, i think fastcgi works with Xcache, just not CGI or suPHP based PHP handlers. But yes xcache admin is useful to adjust memory allocation as needed.
Link to comment
Share on other sites


THL, i think fastcgi works with Xcache, just not CGI or suPHP based PHP handlers. But yes xcache admin is useful to adjust memory allocation as needed.




My host is saying xcache admin is unable to be setup due to my handler being fastcgi
Link to comment
Share on other sites

  • 3 weeks later...

Dam, I still can't upload attachments. Anyway I'm using APC now. My IPB debug-1 exec times are between .0300 ms - 0.0700 ms on various pages with APC enabled and about 40% slower exec times without APC.

I used to use eaccelerator but the faster php 5.4 is not compatible with eaccelerator. I have not tried xcache with 5.4 php since http://lighttpd.net/ has lost their steam thanks to NGINX! So not really interested I guess...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...