<?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: Note to self: EXT4 Filesystem with MySQL on Ubuntu under VirtualBox is toxic; use &#8216;nobarrier&#8217; mount option</title>
	<atom:link href="http://dropsafe.crypticide.com/article/9768/feed" rel="self" type="application/rss+xml" />
	<link>http://dropsafe.crypticide.com/article/9768</link>
	<description>network security, digital rights and bicycles</description>
	<lastBuildDate>Sat, 18 May 2013 14:02:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Simon</title>
		<link>http://dropsafe.crypticide.com/article/9768/comment-page-1#comment-49298</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 13 Dec 2012 10:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://dropsafe.crypticide.com/?p=9768#comment-49298</guid>
		<description><![CDATA[Yes  but the reason for the slow performance is that mysql does fsync, so that when the database returns a commit it is on disk. Not merely that the filesystem is self consistent, but that the data is safe. Thus it is the same as running on ZFS with sync=standard as I read the excerpt of zfs docs.  The only  linux benchmark I found show comparable performance between ZFS and ext4 for mysql but that may be the vaguaries of random benchmarks, although I expect solaris ZFS is faster. But I think in both cases they have to write outstanding data and sometimes metadata and ensure it is flushed through disk write cache before returning, and since both try to ensure they are writing to contiguous blank space it is probably unsuprising the performance is in a similar ballpark. Or is there some subtlety I missed here. Anyway I learnt stuff about LVM and modern filesystems even if I&#039;m still misunderstanding something.]]></description>
		<content:encoded><![CDATA[<p>Yes  but the reason for the slow performance is that mysql does fsync, so that when the database returns a commit it is on disk. Not merely that the filesystem is self consistent, but that the data is safe. Thus it is the same as running on ZFS with sync=standard as I read the excerpt of zfs docs.  The only  linux benchmark I found show comparable performance between ZFS and ext4 for mysql but that may be the vaguaries of random benchmarks, although I expect solaris ZFS is faster. But I think in both cases they have to write outstanding data and sometimes metadata and ensure it is flushed through disk write cache before returning, and since both try to ensure they are writing to contiguous blank space it is probably unsuprising the performance is in a similar ballpark. Or is there some subtlety I missed here. Anyway I learnt stuff about LVM and modern filesystems even if I&#8217;m still misunderstanding something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alecm</title>
		<link>http://dropsafe.crypticide.com/article/9768/comment-page-1#comment-49293</link>
		<dc:creator>alecm</dc:creator>
		<pubDate>Thu, 13 Dec 2012 10:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://dropsafe.crypticide.com/?p=9768#comment-49293</guid>
		<description><![CDATA[Compare: 

https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/writebarr.html

A write barrier is a kernel mechanism used to ensure that file system metadata is correctly written and ordered on persistent storage, even when storage devices with volatile write caches lose power. File systems with write barriers enabled also ensure that data transmitted via  fsync() is persistent throughout a power loss.

Enabling write barriers incurs a substantial performance penalty for some applications. 

Specifically, applications that use  fsync() heavily or create and delete many small files will likely run much slower.

with:

http://docs.oracle.com/cd/E19253-01/819-5461/zfsover-2/index.html

ZFS is a transactional file system, which means that the file system state is always consistent on disk. Traditional file systems overwrite data in place, which means that if the system loses power, for example, between the time a data block is allocated and when it is linked into a directory, the file system will be left in an inconsistent state. Historically, this problem was solved through the use of the fsck command. This command was responsible for reviewing and verifying the file system state, and attempting to repair any inconsistencies during the process. This problem of inconsistent file systems caused great pain to administrators, and the fsck command was never guaranteed to fix all possible problems. More recently, file systems have introduced the concept of journaling. The journaling process records actions in a separate journal, which can then be replayed safely if a system crash occurs. This process introduces unnecessary overhead because the data needs to be written twice, often resulting in a new set of problems, such as when the journal cannot be replayed properly.

With a transactional file system, data is managed using copy on write semantics. Data is never overwritten, and any sequence of operations is either entirely committed or entirely ignored. Thus, the file system can never be corrupted through accidental loss of power or a system crash. Although the most recently written pieces of data might be lost, the file system itself will always be consistent. In addition, synchronous data (written using the O_DSYNC flag) is always guaranteed to be written before returning, so it is never lost.]]></description>
		<content:encoded><![CDATA[<p>Compare: </p>
<p><a href="https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/writebarr.html" rel="nofollow">https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/writebarr.html</a></p>
<p>A write barrier is a kernel mechanism used to ensure that file system metadata is correctly written and ordered on persistent storage, even when storage devices with volatile write caches lose power. File systems with write barriers enabled also ensure that data transmitted via  fsync() is persistent throughout a power loss.</p>
<p>Enabling write barriers incurs a substantial performance penalty for some applications. </p>
<p>Specifically, applications that use  fsync() heavily or create and delete many small files will likely run much slower.</p>
<p>with:</p>
<p><a href="http://docs.oracle.com/cd/E19253-01/819-5461/zfsover-2/index.html" rel="nofollow">http://docs.oracle.com/cd/E19253-01/819-5461/zfsover-2/index.html</a></p>
<p>ZFS is a transactional file system, which means that the file system state is always consistent on disk. Traditional file systems overwrite data in place, which means that if the system loses power, for example, between the time a data block is allocated and when it is linked into a directory, the file system will be left in an inconsistent state. Historically, this problem was solved through the use of the fsck command. This command was responsible for reviewing and verifying the file system state, and attempting to repair any inconsistencies during the process. This problem of inconsistent file systems caused great pain to administrators, and the fsck command was never guaranteed to fix all possible problems. More recently, file systems have introduced the concept of journaling. The journaling process records actions in a separate journal, which can then be replayed safely if a system crash occurs. This process introduces unnecessary overhead because the data needs to be written twice, often resulting in a new set of problems, such as when the journal cannot be replayed properly.</p>
<p>With a transactional file system, data is managed using copy on write semantics. Data is never overwritten, and any sequence of operations is either entirely committed or entirely ignored. Thus, the file system can never be corrupted through accidental loss of power or a system crash. Although the most recently written pieces of data might be lost, the file system itself will always be consistent. In addition, synchronous data (written using the O_DSYNC flag) is always guaranteed to be written before returning, so it is never lost.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Waters</title>
		<link>http://dropsafe.crypticide.com/article/9768/comment-page-1#comment-49265</link>
		<dc:creator>Simon Waters</dc:creator>
		<pubDate>Thu, 13 Dec 2012 00:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://dropsafe.crypticide.com/?p=9768#comment-49265</guid>
		<description><![CDATA[As far as I can see ext4 is doing what the database requests correctly, and it seems likely ext3 (which I assume simply has barriers off in the default configs you&#039;ve seen) doesn&#039;t guarantee to do what is expected.

It is so the wrong level to fix this. Presumably the issue is that the importer is committing every single record, and I presume has something daft switched on such as some sort of access logging such that the database has a non-trivial number of records to restore.

I&#039;m curious how ZFS is different in this regard.

Ted Tso explains why ext3 doesn&#039;t crumple too often without barriers.
http://lwn.net/Articles/283161/

Just when I got my head around file system semantics needed for reliable IMAP operation they locked up my correspondent for murdering his wife :(]]></description>
		<content:encoded><![CDATA[<p>As far as I can see ext4 is doing what the database requests correctly, and it seems likely ext3 (which I assume simply has barriers off in the default configs you&#8217;ve seen) doesn&#8217;t guarantee to do what is expected.</p>
<p>It is so the wrong level to fix this. Presumably the issue is that the importer is committing every single record, and I presume has something daft switched on such as some sort of access logging such that the database has a non-trivial number of records to restore.</p>
<p>I&#8217;m curious how ZFS is different in this regard.</p>
<p>Ted Tso explains why ext3 doesn&#8217;t crumple too often without barriers.<br />
<a href="http://lwn.net/Articles/283161/" rel="nofollow">http://lwn.net/Articles/283161/</a></p>
<p>Just when I got my head around file system semantics needed for reliable IMAP operation they locked up my correspondent for murdering his wife <img src='http://dropsafe.crypticide.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alecm</title>
		<link>http://dropsafe.crypticide.com/article/9768/comment-page-1#comment-49189</link>
		<dc:creator>alecm</dc:creator>
		<pubDate>Wed, 12 Dec 2012 07:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://dropsafe.crypticide.com/?p=9768#comment-49189</guid>
		<description><![CDATA[Given the 95% drop in performance I will accept this risk and then go back to ext3 elsewhere]]></description>
		<content:encoded><![CDATA[<p>Given the 95% drop in performance I will accept this risk and then go back to ext3 elsewhere</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Allan</title>
		<link>http://dropsafe.crypticide.com/article/9768/comment-page-1#comment-49188</link>
		<dc:creator>Max Allan</dc:creator>
		<pubDate>Wed, 12 Dec 2012 07:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://dropsafe.crypticide.com/?p=9768#comment-49188</guid>
		<description><![CDATA[So are your disks battery backed or are we going to see a solitary blog post here in a few weeks about how the power went out and you couldn&#039;t fsck your disks?]]></description>
		<content:encoded><![CDATA[<p>So are your disks battery backed or are we going to see a solitary blog post here in a few weeks about how the power went out and you couldn&#8217;t fsck your disks?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alecm</title>
		<link>http://dropsafe.crypticide.com/article/9768/comment-page-1#comment-49181</link>
		<dc:creator>alecm</dc:creator>
		<pubDate>Tue, 11 Dec 2012 23:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://dropsafe.crypticide.com/?p=9768#comment-49181</guid>
		<description><![CDATA[links: 

http://themech.net/2011/10/struggling-with-mysql-performance-problems-under-linux/

http://kernel.org/doc/Documentation/filesystems/ext4.txt]]></description>
		<content:encoded><![CDATA[<p>links: </p>
<p><a href="http://themech.net/2011/10/struggling-with-mysql-performance-problems-under-linux/" rel="nofollow">http://themech.net/2011/10/struggling-with-mysql-performance-problems-under-linux/</a></p>
<p><a href="http://kernel.org/doc/Documentation/filesystems/ext4.txt" rel="nofollow">http://kernel.org/doc/Documentation/filesystems/ext4.txt</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
