File Cache - benchmarks needed

Events happening in the community are now at Drupal community events on www.drupal.org.
ogi's picture

Hi,

I've just released first alpha of File Cache module and it will "compete" mainly with memcache and (to a lesser degree) boost. In my tests File Cache consistently outperforms memcache by very small margin and I would like test results by someone else :-) It's interesting to benchmark File Cache on memory filesystem too.

Comments

Awesome, if it is simple to

threading_signals's picture

Awesome, if it is simple to setup, that would be a plus. Going to try it out.

I can believe that File Cache

threading_signals's picture

I can believe that File Cache can beat memcache due to no tcp overhead. With a nginx load balancer module enabled, and since apc can store user cache in memory (I believe that means sessions can be stored with it), this could probably cut down the number of moving parts to manage.

apc and sessions

ogi's picture

apc module can't store sessions in apc user cache. memcache module have code for storing sessions in memcached but I don't know how well it's working.

Cool!

mikeytown2's picture

Idea for 7.x-2.x version of boost.
http://drupal.org/node/325813#comment-3951218

Can File Cache be setup to only intercept the cache_page table? variable_set('cache_class_cache_page', 'MyCustomCache');. Also can File Cache change the dir to "cache"? If yes then I think we might have some magic in the making here. What this would be is if your using Drupal it would be the degraded performance option, but in theory it should be easier to setup; no need to edit your .htaccess file... although I'll be adding auto patching to the 7.x version in the near future. Anyway working together might be beneficial. I'm still busy with my other project advagg to spearhead this but keep a merge/friendly integration in mind. I also need to patch up 6.x boost quite a bit and port over things like the crawler to 7.x.

Integration with Boost

ogi's picture

This sounds great! I didn't know that Boost 7.x-2.x is planned to rely on cache bins.

File Cache can be set for any individual cache bins leaving others for someone else. Any cache implementation for Drupal 7 is able to do that :-) (Oh, the joys of Drupal extensibility.)

Right now File Cache uses only one directory for all cache bins that are handled by it. This will be more configurable in the future.

There's still work before 1.0 so it will take some time, hopefully in a couple of weeks range. The major target for alpha2 is to be fully conformant to core's cache.inc. Right now expiration logic in File Cache is much more simple than what's in includes/cache.inc.

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: