<?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: Beware:  ext3 and sync-binlog do not play well together</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/</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: Steve Katz</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/comment-page-1/#comment-676252</link>
		<dc:creator>Steve Katz</dc:creator>
		<pubDate>Thu, 12 Nov 2009 21:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=594#comment-676252</guid>
		<description>Does this same problem exist on CentOS 5.4?</description>
		<content:encoded><![CDATA[<p>Does this same problem exist on CentOS 5.4?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stewart Smith</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/comment-page-1/#comment-532284</link>
		<dc:creator>Stewart Smith</dc:creator>
		<pubDate>Wed, 08 Apr 2009 00:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=594#comment-532284</guid>
		<description>It can depend on the performance characteristics of the device. with battery backed RAID cache, barriers should be the best performing setup as you will want to be using the write cache.</description>
		<content:encoded><![CDATA[<p>It can depend on the performance characteristics of the device. with battery backed RAID cache, barriers should be the best performing setup as you will want to be using the write cache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Nguyen</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/comment-page-1/#comment-532041</link>
		<dc:creator>David Nguyen</dc:creator>
		<pubDate>Tue, 07 Apr 2009 19:56:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=594#comment-532041</guid>
		<description>Thanks for your quick replies.   I am running MySQL on a Dell PowerEdge 2950 with PERC6 (with BBU) 6 x 15K drives configured with Raid 10.   

Is the recommendation to:

1) mount XFS with -onobarrier 
2) write cache disabled for the drive
3) write-back enabled for the controller</description>
		<content:encoded><![CDATA[<p>Thanks for your quick replies.   I am running MySQL on a Dell PowerEdge 2950 with PERC6 (with BBU) 6 x 15K drives configured with Raid 10.   </p>
<p>Is the recommendation to:</p>
<p>1) mount XFS with -onobarrier<br />
2) write cache disabled for the drive<br />
3) write-back enabled for the controller</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stewart Smith</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/comment-page-1/#comment-531446</link>
		<dc:creator>Stewart Smith</dc:creator>
		<pubDate>Tue, 07 Apr 2009 00:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=594#comment-531446</guid>
		<description>with -onobarrier, be sure that you have write cache disabled for the drive - otherwise you *will* get filesystem corruption on crash.

Note that ext3, by default, does *NOT* use write barriers - so it&#039;s actually dangerous if write cache is enabled.</description>
		<content:encoded><![CDATA[<p>with -onobarrier, be sure that you have write cache disabled for the drive &#8211; otherwise you *will* get filesystem corruption on crash.</p>
<p>Note that ext3, by default, does *NOT* use write barriers &#8211; so it&#8217;s actually dangerous if write cache is enabled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/comment-page-1/#comment-531218</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Mon, 06 Apr 2009 19:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=594#comment-531218</guid>
		<description>David,

You may mount XFS partition with -o nobarrier option.</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>You may mount XFS partition with -o nobarrier option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Nguyen</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/comment-page-1/#comment-531210</link>
		<dc:creator>David Nguyen</dc:creator>
		<pubDate>Mon, 06 Apr 2009 18:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=594#comment-531210</guid>
		<description>I&#039;ve ran several sysbench tests with ext3, ext2, and XFS.  I noticed a huge performance hit with ext3 and sync_binlog=1 and only a ~10% hit with ext2 (just as you have posted above).  However, I was not able to get good numbers with XFS on Debian.  What are some of the recommended XFS tuning parameters?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve ran several sysbench tests with ext3, ext2, and XFS.  I noticed a huge performance hit with ext3 and sync_binlog=1 and only a ~10% hit with ext2 (just as you have posted above).  However, I was not able to get good numbers with XFS on Debian.  What are some of the recommended XFS tuning parameters?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/comment-page-1/#comment-453274</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sat, 24 Jan 2009 00:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=594#comment-453274</guid>
		<description>Steward,

Are you sure about fsync()==/bin/sync ?  I know it does flushes the log but I think I commonly see &quot;dirty&quot; pages in the cache on server running Innodb on ext3 while running tens of durable commits per seconds which would keep this number very low if it would be full syncs.

Speaking about Pre-Allocation I think it is different story.   This helps with fragmentation by reserving the space. But if files change their size with each write you get important meta data updates all the time.   Though I guess it would be interesting to just see how it affects performance -  growing file vs  fallocate preallocated vs physically preallocated.</description>
		<content:encoded><![CDATA[<p>Steward,</p>
<p>Are you sure about fsync()==/bin/sync ?  I know it does flushes the log but I think I commonly see &#8220;dirty&#8221; pages in the cache on server running Innodb on ext3 while running tens of durable commits per seconds which would keep this number very low if it would be full syncs.</p>
<p>Speaking about Pre-Allocation I think it is different story.   This helps with fragmentation by reserving the space. But if files change their size with each write you get important meta data updates all the time.   Though I guess it would be interesting to just see how it affects performance &#8211;  growing file vs  fallocate preallocated vs physically preallocated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stewart Smith</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/comment-page-1/#comment-453086</link>
		<dc:creator>Stewart Smith</dc:creator>
		<pubDate>Fri, 23 Jan 2009 21:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=594#comment-453086</guid>
		<description>well... fsync()==/bin/sync

innodb does &quot;preallocate&quot; but just by writing out the files. NDB (on XFS... or recent glibc and kernel) call the filesystem&#039;s fallocate function (xfsctl or if posix_fallocate is implemented correctly in libc and kernel) to ask it to preallocate the disk space (which usually results in much less fragmented files on any remotely aged file system)</description>
		<content:encoded><![CDATA[<p>well&#8230; fsync()==/bin/sync</p>
<p>innodb does &#8220;preallocate&#8221; but just by writing out the files. NDB (on XFS&#8230; or recent glibc and kernel) call the filesystem&#8217;s fallocate function (xfsctl or if posix_fallocate is implemented correctly in libc and kernel) to ask it to preallocate the disk space (which usually results in much less fragmented files on any remotely aged file system)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/comment-page-1/#comment-452894</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 23 Jan 2009 16:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=594#comment-452894</guid>
		<description>Steward, 

You&#039;re saying FSYNC == O_SYNC for opening files ?

Speaking about NDB I assume you mean besides Innodb which has fixed sized logs....   BTW even for tablespaces Innodb uses background pre-allocation.</description>
		<content:encoded><![CDATA[<p>Steward, </p>
<p>You&#8217;re saying FSYNC == O_SYNC for opening files ?</p>
<p>Speaking about NDB I assume you mean besides Innodb which has fixed sized logs&#8230;.   BTW even for tablespaces Innodb uses background pre-allocation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stewart Smith</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/comment-page-1/#comment-452472</link>
		<dc:creator>Stewart Smith</dc:creator>
		<pubDate>Fri, 23 Jan 2009 07:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=594#comment-452472</guid>
		<description>on ext3, think of fsync==sync.

The only engine inside MySQL that does pre-allocation correctly is NDB.</description>
		<content:encoded><![CDATA[<p>on ext3, think of fsync==sync.</p>
<p>The only engine inside MySQL that does pre-allocation correctly is NDB.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
