<?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: fadvise syscall, myisam data file caching, and a lesson learned in debugging</title>
	<atom:link href="http://ebergen.net/wordpress/2009/06/11/fadvise-syscall-myisam-data-file-caching-and-a-lesson-learned-in-debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://ebergen.net/wordpress/2009/06/11/fadvise-syscall-myisam-data-file-caching-and-a-lesson-learned-in-debugging/</link>
	<description>You will probably want some waders, a pickaxe, and one of those hats with a light on it before you go in here.</description>
	<lastBuildDate>Fri, 11 May 2012 07:02:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Eric Wheeler</title>
		<link>http://ebergen.net/wordpress/2009/06/11/fadvise-syscall-myisam-data-file-caching-and-a-lesson-learned-in-debugging/comment-page-1/#comment-367897</link>
		<dc:creator>Eric Wheeler</dc:creator>
		<pubDate>Mon, 21 Nov 2011 06:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=271#comment-367897</guid>
		<description>Interesting article, I wonder: do you have a simple binary that opens the .MYD, calls fadvise on the read-only fd, and daemonizes, and would this be sufficient to get the kernel to hold the file content cached?  Can you or have you released your cache-pinning program?

I&#039;m looking to use fadvise for an opposite example: I need to set FADV_NOREUSE for block-device backups since it is pointless to cache a sequential block-device read when it will only be read once.

In this case, I am using the rdiff to replicate LVM snapshots, and was thinking of writing an LD_PRELOAD wrapper for open() and fadvising the resulting file descriptor instead of hacking the rdiff code.  

Since you have dug into the depths of fadvise, do you you have any advice here?

-Eric</description>
		<content:encoded><![CDATA[<p>Interesting article, I wonder: do you have a simple binary that opens the .MYD, calls fadvise on the read-only fd, and daemonizes, and would this be sufficient to get the kernel to hold the file content cached?  Can you or have you released your cache-pinning program?</p>
<p>I&#8217;m looking to use fadvise for an opposite example: I need to set FADV_NOREUSE for block-device backups since it is pointless to cache a sequential block-device read when it will only be read once.</p>
<p>In this case, I am using the rdiff to replicate LVM snapshots, and was thinking of writing an LD_PRELOAD wrapper for open() and fadvising the resulting file descriptor instead of hacking the rdiff code.  </p>
<p>Since you have dug into the depths of fadvise, do you you have any advice here?</p>
<p>-Eric</p>
]]></content:encoded>
	</item>
</channel>
</rss>

