May 22, 2012

Post: APC or Memcached

…. Looking at this data you can see memcached is about 5 times as slow as APC, and this is with tests done… by caching things locally if you have many web servers. MemcacheD is relatively slow but distributed and so you do not… much of semi-static modules shown on group directory pages. Memcached is good for caching things which take large amount of…

Comment: MySQL Query Cache

APC does more then just opcode caching. > You can also use … its stoopid to use memcached/shm for caching on a shared-hosting. So you are independent of apc/memcached, have optimal caching, reduced…

Post: Cache Performance Comparison

…: Cache Type Cache Gets/sec Array Cache 365000 APC Cache 98000 File Cache 27000 Memcached Cache (TCP/IP) 12200 MySQL Query Cache… of the servers APC Cache may be the most efficient way for you to cache the data. Use Memcached for large scale… need all caches to work, ie query cache enabled, memcached running, apc enabled for cli mode etc. Main PHP File: global.php…

Comment: Cache Performance Comparison

… items, 300MB size, up to 250 page-req/sec, several apc-gets per page), and after restarting the server (clear cache….” 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: Cache Performance Comparison

i’ve just compared apc with memcached using unix sockets. runnig in vmware, apc reached around 100’000 gets/sec and memcached around 1/5 of that. it makes sense because memcached is lockless! i’m having big performance problems when caching lots of date with 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… up your 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… Our real boost is using Squid…

Comment: APC or Memcached

… implementing caching strategy on above servers? 1: Assigning 100MB to APC on each webserver OR 2: Using a separate Mamcached enabled… 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…

Comment: APC or Memcached

APC or Memcached | MySQL Performance Blog APC Cache (Eaccelerator and other similar caches) is Fast but it … by caching things locally if you have many web servers. MemcacheD is relatively slow but distributed and so you do not… the cache, not access for each of web servers. (tags: apc cache php) [...]

Comment: APC or Memcached

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

Comment: APC or Memcached

[...] with both APC and Memcached in a production environment. I’ve read that the performance of APC is roughly 3-5x faster than Memcache. So I decided to do my own test to see which performed better on my rig. If you want [...]