Jump to content

Xcache or APC


Recommended Posts

Posted

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.

Posted

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?
Posted

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

Posted

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"

Posted

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..
Posted

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 :)
Posted

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
Posted

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.
Posted

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
Posted

I'm not sure about error, but Visiting xcache admin folder does nothing, he tells me I can set it up from php.ini instead..

Posted

Hello Luis.. Just reverted back to mod_php and xcache admin works

How do I adjust memory allocation in the admin panel?

Posted

This is my xcache results, what are the different xcache php sections (php 0, php 1, etc)

post-111695-0-78353300-1335091395_thumb.

I've now changes this to 256M instead of 128M.

  • 3 weeks later...
Posted

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...

Archived

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

  • Recently Browsing   0 members

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