June 19, 2013

Comment: Cache Performance Comparison

… heavily caching using apc (~200k items, 300MB size, up to 250 page-req/sec, several apc-gets per page), and after restarting the….” thats why i tried memcached… the production server does ~25k memcache-gets(unix-socket)/sec, compared to ~100k apc-gets/sec. after a… didn’t work well)… but i’m confident that memcache _can_ handle all the caching i throw at it (better than apc).

Comment: APC or Memcached

Yes…. use a hierarchy of caches. local (APC in this case ) -> memcached -> disk If you’re using something like MogileFS of tagulacache… APC cache and run out of memory. In Tailrank we only really have a few objects in memcached so we just use that and skip APC

Comment: APC or Memcached

… for APC to each webserver, then assign 1 GB of RAM for memcached on each server. It is not either/or situation. APC caches PHP opcode, whereas memcached caches results from… database. Use both, use it with nginx instead of Apache, and be prepared to be blown off your feet with the…

Comment: APC or Memcached

… make sense adding the client to use APC as remote cache. MemcacheD is implemented pretty well and has decent client API (It is extension in PHP so it is faster than you would write in PHP itself) – APC is faster because it is local not because memcached is slow – I think it gets…

Comment: APC or Memcached

A very important consideration people forget: APC is hooked to your webserver, so if you restart your … (I do), your entire APC cache gets deleted. memcached runs as a separate daemon and whatever I store in memcache stays intact. I store data for long periods of time that gets accessed again and again…

Comment: MySQL Query Cache

APC does more then just opcode caching. > You can also use … object cache from inside php This are still different shoes And even if you cache whole pages/parts that way you… to use memcached/shm for caching on a shared-hosting. So you are independent of apc/memcached, have optimal caching, reduced queries and a…

Comment: Cache Performance Comparison

APC is faster as a straight PHP call on the memory …, which with memcached is possible but not with APC as it is PHP specific.  For more information on performance and advice on…

Comment: APC or Memcached

…’s not so hard to make APC distributed as well. The distribution of cache entries in Memcached is managed by the client… could write a PHP class that takes care of this, and inserts/requests cache entries from/into the different nodes in…, between the webservers. It allows you to use APC both for local caching, and distributed caching. The same method applies to file…

Comment: MySQL Query Cache

Reindl Harald, APC does more then just opcode caching. You can also use … comparable to memcached but without networking and in the same process (eg no context switches) which makes it faster then memcached but less…

Comment: Cache Performance Comparison

I was considering memcache and APC/EA/XCache for a single server and believe that network cache should be slower, but how much. I’m glad to found this benchmark.