<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech Blog &#187; cache</title>
	<atom:link href="http://informationideas.com/news/tag/cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://informationideas.com/news</link>
	<description>Using technology to help your business</description>
	<lastBuildDate>Thu, 05 Aug 2010 22:53:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mysql SQL_NO_CACHE Benchmark Problem</title>
		<link>http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/</link>
		<comments>http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 23:57:00 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[cache]]></category>

		<guid isPermaLink="false">http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/</guid>
		<description><![CDATA[I have been trying to benchmark the sql calls to mysql from an application without success. Even when I set the SELECT statement to SQL_NO_CACHE, the results seemed to be still cached. Apparently, Linux does its own caching of disk reads also. That was giving me incorrect benchmark results if I hit the same data [...]]]></description>
			<content:encoded><![CDATA[<p>I have been trying to benchmark the sql calls to mysql from an application without success.  Even when I set the SELECT statement to SQL_NO_CACHE, the results seemed to be still cached.  Apparently, Linux does its own caching of disk reads also.  That was giving me incorrect benchmark results if I hit the same data twice.</p>
<p>For those using Linux kernel 2.6.16 or higher, you can <a href="http://dailyvim.blogspot.com/2008/02/drop-cache.html" target="_blank">clear Linux cache</a> with the following command.<br />
echo 3 &gt; /proc/sys/vm/drop_caches</p>
<p>Unfortunately for me, I am stuck on 2.5.xx and will have to figure out another method.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/&amp;title=Mysql+SQL_NO_CACHE+Benchmark+Problem" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/&amp;title=Mysql+SQL_NO_CACHE+Benchmark+Problem" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/&amp;t=Mysql+SQL_NO_CACHE+Benchmark+Problem" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/&amp;title=Mysql+SQL_NO_CACHE+Benchmark+Problem&amp;summary=I%20have%20been%20trying%20to%20benchmark%20the%20sql%20calls%20to%20mysql%20from%20an%20application%20without%20success.%20%20Even%20when%20I%20set%20the%20SELECT%20statement%20to%20SQL_NO_CACHE%2C%20the%20results%20seemed%20to%20be%20still%20cached.%20%20Apparently%2C%20Linux%20does%20its%20own%20caching%20of%20disk%20reads%20also.%20%20That%20was%20giving%20me%20incorrect%20benchmark%20results%20if%20I%20h&amp;source=Tech Blog" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Mysql+SQL_NO_CACHE+Benchmark+Problem+-+http://b2l.me/ab3amv&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://informationideas.com/news/2008/02/25/mysql-sql_no_cache-benchmark-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
