<?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>Percona&#039;s MySQL &#38; InnoDB performance and scalability blog</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:45:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Herman</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-759093</link>
		<dc:creator>Herman</dc:creator>
		<pubDate>Wed, 05 May 2010 04:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-759093</guid>
		<description>A very important consideration people forget: APC is hooked to your webserver, so if you restart your Apache often to release memory (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.</description>
		<content:encoded><![CDATA[<p>A very important consideration people forget: APC is hooked to your webserver, so if you restart your Apache often to release memory (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.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anirudh Zala</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-708474</link>
		<dc:creator>Anirudh Zala</dc:creator>
		<pubDate>Tue, 12 Jan 2010 04:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-708474</guid>
		<description>@Abhimanyu

Maybe you didn&#039;t get my question properly. I am interested in user data cache only as far as this thread is concerned. I know that I can use both software for effective data caching strategies. But what would be better solutions?

1GB of RAM on each web server for APC OR using dedicated memacached enabled server having 4GB RAM? Because as effective I want to get 4GB or RAM for caching user data. Just question is how to divide it.</description>
		<content:encoded><![CDATA[<p>@Abhimanyu</p>
<p>Maybe you didn&#8217;t get my question properly. I am interested in user data cache only as far as this thread is concerned. I know that I can use both software for effective data caching strategies. But what would be better solutions?</p>
<p>1GB of RAM on each web server for APC OR using dedicated memacached enabled server having 4GB RAM? Because as effective I want to get 4GB or RAM for caching user data. Just question is how to divide it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anirudh Zala</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-708467</link>
		<dc:creator>Anirudh Zala</dc:creator>
		<pubDate>Tue, 12 Jan 2010 03:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-708467</guid>
		<description>@Abhimanyu

As far as I know, APC is also used for user data cache :) so you can store results of database queries also.</description>
		<content:encoded><![CDATA[<p>@Abhimanyu</p>
<p>As far as I know, APC is also used for user data cache <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  so you can store results of database queries also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhimanyu</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/comment-page-1/#comment-708272</link>
		<dc:creator>Abhimanyu</dc:creator>
		<pubDate>Mon, 11 Jan 2010 17:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/#comment-708272</guid>
		<description>&quot;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.&quot;

Jhala saheb,

Assign 100 MB 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 queries. When you use both, you avoid repetetive PHP compilation as well as costly connections to database. Use both, use it with nginx instead of Apache, and be prepared to be blown off your feet with the astonishing performance.</description>
		<content:encoded><![CDATA[<p>&#8220;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.&#8221;</p>
<p>Jhala saheb,</p>
<p>Assign 100 MB 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 queries. When you use both, you avoid repetetive PHP compilation as well as costly connections to database. Use both, use it with nginx instead of Apache, and be prepared to be blown off your feet with the astonishing performance.</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

