<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: APC or Memcached</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anirudh Zala</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-645228</link>
		<dc:creator>Anirudh Zala</dc:creator>
		<pubDate>Wed, 02 Sep 2009 08:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-645228</guid>
		<description>I have not much experience to both of these technologies. But I have an interesting question about performance of APC and Memcache. Consider a scenario where &quot;An application that is running on 4 webservers behind load balancer (which divides requests according to load on each server)&quot;. Each web server has 4gb of RAM.

Now what would be better solution for implementing caching strategy on above servers?

1: Assigning 100MB to APC on each webserver OR
2: Using a separate Mamcached enabled machine with 4gb of RAM.</description>
		<content:encoded><![CDATA[<p>I have not much experience to both of these technologies. But I have an interesting question about performance of APC and Memcache. Consider a scenario where &#8220;An application that is running on 4 webservers behind load balancer (which divides requests according to load on each server)&#8221;. Each web server has 4gb of RAM.</p>
<p>Now what would be better solution for implementing caching strategy on above servers?</p>
<p>1: Assigning 100MB to APC on each webserver OR<br />
2: Using a separate Mamcached enabled machine with 4gb of RAM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; links for 2009-03-20 Thej Live</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-514102</link>
		<dc:creator>&#187; links for 2009-03-20 Thej Live</dc:creator>
		<pubDate>Sat, 21 Mar 2009 05:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-514102</guid>
		<description>[...] APC or Memcached &#124; MySQL Performance Blog APC Cache (Eaccelerator and other similar caches) is Fast but it is not distributed so you’re wasting cache and reducing possible hit rate by caching things locally if you have many web servers. MemcacheD is relatively slow but distributed and so you do not waste memory by caching same item in a few places, it is also faster to warmup as you need only one access to bring item into the cache, not access for each of web servers. (tags: apc cache php) [...]</description>
		<content:encoded><![CDATA[<p>[...] APC or Memcached | MySQL Performance Blog APC Cache (Eaccelerator and other similar caches) is Fast but it is not distributed so you’re wasting cache and reducing possible hit rate by caching things locally if you have many web servers. MemcacheD is relatively slow but distributed and so you do not waste memory by caching same item in a few places, it is also faster to warmup as you need only one access to bring item into the cache, not access for each of web servers. (tags: apc cache php) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Memory Caching Performance &#124; AF-Design</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-458867</link>
		<dc:creator>PHP Memory Caching Performance &#124; AF-Design</dc:creator>
		<pubDate>Thu, 29 Jan 2009 05:22:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-458867</guid>
		<description>[...] with both APC and Memcached in a production environment. I&#8217;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 [...]</description>
		<content:encoded><![CDATA[<p>[...] with both APC and Memcached in a production environment. I&#8217;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 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-315424</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Fri, 20 Jun 2008 13:00:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-315424</guid>
		<description>I just laugh when I read this, I developed my own framework focused on advanced cache control methods and functionality. I use both APC and Memcached combined. I use each where they will be most efficiently effective. One is not really better than the other, they are designed to do different things. If you want to create something amazing, use them in tandem.</description>
		<content:encoded><![CDATA[<p>I just laugh when I read this, I developed my own framework focused on advanced cache control methods and functionality. I use both APC and Memcached combined. I use each where they will be most efficiently effective. One is not really better than the other, they are designed to do different things. If you want to create something amazing, use them in tandem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Johnston</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-298190</link>
		<dc:creator>Stephen Johnston</dc:creator>
		<pubDate>Tue, 13 May 2008 00:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-298190</guid>
		<description>Memecached has a 1 megabyte item limit, so your 50mb objects are out of luck with memcached anyway.</description>
		<content:encoded><![CDATA[<p>Memecached has a 1 megabyte item limit, so your 50mb objects are out of luck with memcached anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: perlchild</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-195186</link>
		<dc:creator>perlchild</dc:creator>
		<pubDate>Fri, 16 Nov 2007 17:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-195186</guid>
		<description>50MB?
Some of my developers have larger objects than that...
(external xml imports, so no way to shrink them either)</description>
		<content:encoded><![CDATA[<p>50MB?<br />
Some of my developers have larger objects than that&#8230;<br />
(external xml imports, so no way to shrink them either)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-179314</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sat, 20 Oct 2007 15:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-179314</guid>
		<description>Enzo,

Even if you have multipe web servers there are some things which you can cache in local APC - yes they will be copied on all of your web nodes but if their total size is say 50MB why would you care ?

Cache invalidation is another problem which can be done with TTL and versions even in such envinronment.</description>
		<content:encoded><![CDATA[<p>Enzo,</p>
<p>Even if you have multipe web servers there are some things which you can cache in local APC &#8211; yes they will be copied on all of your web nodes but if their total size is say 50MB why would you care ?</p>
<p>Cache invalidation is another problem which can be done with TTL and versions even in such envinronment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enzo</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-179071</link>
		<dc:creator>Enzo</dc:creator>
		<pubDate>Fri, 19 Oct 2007 20:43:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-179071</guid>
		<description>If you have multiple webservers, then local APC caches aren&#039;t going to cut it. Request will be load balanced across various servers and so what was cached on one server will no be in the cache on the other server so you&#039;ll end up w/ more cache misses.

Memcached solves this problem since it is distributed.</description>
		<content:encoded><![CDATA[<p>If you have multiple webservers, then local APC caches aren&#8217;t going to cut it. Request will be load balanced across various servers and so what was cached on one server will no be in the cache on the other server so you&#8217;ll end up w/ more cache misses.</p>
<p>Memcached solves this problem since it is distributed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Memcached: When You Absolutely Positively Have to Get It To Scale the Next Day &#171; SmoothSpan Blog</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-171288</link>
		<dc:creator>Memcached: When You Absolutely Positively Have to Get It To Scale the Next Day &#171; SmoothSpan Blog</dc:creator>
		<pubDate>Sun, 23 Sep 2007 21:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-171288</guid>
		<description>[...] Memcached is slower than local caches such as APC cache since it is distributed.  However, it has the potential to store a lot more objects since it can harness many machines.  Consider whether your application benefits from a really big cache, or whether some of the objects aren&#8217;t better off with smaller, higher performance, local caches. [...]</description>
		<content:encoded><![CDATA[<p>[...] Memcached is slower than local caches such as APC cache since it is distributed.  However, it has the potential to store a lot more objects since it can harness many machines.  Consider whether your application benefits from a really big cache, or whether some of the objects aren&#8217;t better off with smaller, higher performance, local caches. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-4730</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 03 Oct 2006 13:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-4730</guid>
		<description>Robin,  

It might be hard to convince people to use anything. Especially if this is technology which they are not familiar with. 

In the case you&#039;re speaking about I would probably use small local APC cache plus distributed memcached, running on the same set of boxes.  Memcached is fast but even run locally it is much slower than APC. 

For most applications you would not notice too much differnece to be honest as even 20.000 of lookups per second means your pages will be lightning fast even with 100 cache lookups per cache :)</description>
		<content:encoded><![CDATA[<p>Robin,  </p>
<p>It might be hard to convince people to use anything. Especially if this is technology which they are not familiar with. </p>
<p>In the case you&#8217;re speaking about I would probably use small local APC cache plus distributed memcached, running on the same set of boxes.  Memcached is fast but even run locally it is much slower than APC. </p>
<p>For most applications you would not notice too much differnece to be honest as even 20.000 of lookups per second means your pages will be lightning fast even with 100 cache lookups per cache <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
