<?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: Tuning for heavy writing workloads</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 20 Mar 2010 05:35:40 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/comment-page-1/#comment-665845</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sat, 17 Oct 2009 03:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1376#comment-665845</guid>
		<description>Yasufumi,

I see you&#039;re using innodb_log_buffer_size=128M  is it indeed required value or you just set it so high to make sure is not the bottleneck ?

It is my assumption there is no need for log buffer more than twice of peak amount of log records which can be generated a second.</description>
		<content:encoded><![CDATA[<p>Yasufumi,</p>
<p>I see you&#8217;re using innodb_log_buffer_size=128M  is it indeed required value or you just set it so high to make sure is not the bottleneck ?</p>
<p>It is my assumption there is no need for log buffer more than twice of peak amount of log records which can be generated a second.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri K. Cabral</title>
		<link>http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/comment-page-1/#comment-665768</link>
		<dc:creator>Sheeri K. Cabral</dc:creator>
		<pubDate>Fri, 16 Oct 2009 22:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1376#comment-665768</guid>
		<description>(previously when I put 12, I got denied with &quot;you failed the challenge!&quot; but when I put 11 in, it worked.  Is there an off-by-1 error?)</description>
		<content:encoded><![CDATA[<p>(previously when I put 12, I got denied with &#8220;you failed the challenge!&#8221; but when I put 11 in, it worked.  Is there an off-by-1 error?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri K. Cabral</title>
		<link>http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/comment-page-1/#comment-665767</link>
		<dc:creator>Sheeri K. Cabral</dc:creator>
		<pubDate>Fri, 16 Oct 2009 22:36:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1376#comment-665767</guid>
		<description>Recently we&#039;ve found a lot of clients (they are using Pythian&#039;s auditing services, for one-time short-term health checks) that have heavy writing workloads solve problems very easily:

Change the table to MyISAM.  Many people are using MySQL to keep logs, or other information that&#039;s mostly INSERT.  I think it&#039;s important to mention that option as well, especially since this solution doesn&#039;t seem to be good for lots of UPDATE statements either.

(ps the challenge question is somewhat broken, because 4+8 does in fact equal 12</description>
		<content:encoded><![CDATA[<p>Recently we&#8217;ve found a lot of clients (they are using Pythian&#8217;s auditing services, for one-time short-term health checks) that have heavy writing workloads solve problems very easily:</p>
<p>Change the table to MyISAM.  Many people are using MySQL to keep logs, or other information that&#8217;s mostly INSERT.  I think it&#8217;s important to mention that option as well, especially since this solution doesn&#8217;t seem to be good for lots of UPDATE statements either.</p>
<p>(ps the challenge question is somewhat broken, because 4+8 does in fact equal 12</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/comment-page-1/#comment-665437</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 16 Oct 2009 00:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1376#comment-665437</guid>
		<description>Yasufumi,

Great. Looking forward to your next post on binlog.

Would love to see how innodb_support_xa=1 affects performance too!</description>
		<content:encoded><![CDATA[<p>Yasufumi,</p>
<p>Great. Looking forward to your next post on binlog.</p>
<p>Would love to see how innodb_support_xa=1 affects performance too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitri</title>
		<link>http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/comment-page-1/#comment-665303</link>
		<dc:creator>Dimitri</dc:creator>
		<pubDate>Thu, 15 Oct 2009 17:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1376#comment-665303</guid>
		<description>Yasufumi,

great analyze of bottlenecks and very constructive approach in proposed solutions! - I&#039;m impatient to test the new XtraDB! :-))

few questions so far:

- do you mean that database/datafile should be recreated to be able to use several rollback segments? (setting the option is not enough?)

- from your TPS graph is not seen when XtraDB outperforms the &quot;Normal 1.0.4&quot;, anyway to see the &quot;whole&quot; picture? 

Thanks a lot for sharing it!

Rgds,
-Dimitri</description>
		<content:encoded><![CDATA[<p>Yasufumi,</p>
<p>great analyze of bottlenecks and very constructive approach in proposed solutions! &#8211; I&#8217;m impatient to test the new XtraDB! <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
<p>few questions so far:</p>
<p>- do you mean that database/datafile should be recreated to be able to use several rollback segments? (setting the option is not enough?)</p>
<p>- from your TPS graph is not seen when XtraDB outperforms the &#8220;Normal 1.0.4&#8243;, anyway to see the &#8220;whole&#8221; picture? </p>
<p>Thanks a lot for sharing it!</p>
<p>Rgds,<br />
-Dimitri</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yasufumi</title>
		<link>http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/comment-page-1/#comment-665198</link>
		<dc:creator>Yasufumi</dc:creator>
		<pubDate>Thu, 15 Oct 2009 10:09:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1376#comment-665198</guid>
		<description>Andy,

This benchmark is for discussing about the pure performance problem in InnoDB engine. The setting is preferred as simple not safer. The binlog may have the another bound. But for real systems, binlog is important of course. Discussing about performance with binlog is the next step, I think. I will test it as you say in the next post and discuss performance disadvantages (or fix it).

Whether innodb_support_xa is needed or not is depend on the each user. If innodb_support_xa=1 and using binlog, 2 times fsync() is done for the each transaction. It is &quot;prepare&quot; fsync() and &quot;commit&quot; fsync(), the writing binlog for the transaction is done between the fsyncs. So, it affects to performance clearly. But MySQL seems to adjust consistency between InnoDB and binlog when crash recovery. &quot;prepared but not committed transaction&quot; seems to be rollbacked if the transaction is not committed in the binlog yet, and be committed if the transaction is committed in the binlog. So innodb_support_xa=1 seems to be safer than innodb_support_xa=0, but it is not perfect.
There are possibility still that the transaction which is committed in InnoDB but not written in binlog exists, when power trouble for example.

Thank you</description>
		<content:encoded><![CDATA[<p>Andy,</p>
<p>This benchmark is for discussing about the pure performance problem in InnoDB engine. The setting is preferred as simple not safer. The binlog may have the another bound. But for real systems, binlog is important of course. Discussing about performance with binlog is the next step, I think. I will test it as you say in the next post and discuss performance disadvantages (or fix it).</p>
<p>Whether innodb_support_xa is needed or not is depend on the each user. If innodb_support_xa=1 and using binlog, 2 times fsync() is done for the each transaction. It is &#8220;prepare&#8221; fsync() and &#8220;commit&#8221; fsync(), the writing binlog for the transaction is done between the fsyncs. So, it affects to performance clearly. But MySQL seems to adjust consistency between InnoDB and binlog when crash recovery. &#8220;prepared but not committed transaction&#8221; seems to be rollbacked if the transaction is not committed in the binlog yet, and be committed if the transaction is committed in the binlog. So innodb_support_xa=1 seems to be safer than innodb_support_xa=0, but it is not perfect.<br />
There are possibility still that the transaction which is committed in InnoDB but not written in binlog exists, when power trouble for example.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/comment-page-1/#comment-665173</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 15 Oct 2009 07:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1376#comment-665173</guid>
		<description>Yasufumi,

Is it safe to not use binlog in production? I thought binlog is needed for recovery purpose.

If binlog is needed, then innodb_support_xa is also needed, right?

How much of a performance penalty does enabling binlog &amp; innodb_support_xa incur then?</description>
		<content:encoded><![CDATA[<p>Yasufumi,</p>
<p>Is it safe to not use binlog in production? I thought binlog is needed for recovery purpose.</p>
<p>If binlog is needed, then innodb_support_xa is also needed, right?</p>
<p>How much of a performance penalty does enabling binlog &amp; innodb_support_xa incur then?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yasufumi</title>
		<link>http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/comment-page-1/#comment-665163</link>
		<dc:creator>Yasufumi</dc:creator>
		<pubDate>Thu, 15 Oct 2009 06:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1376#comment-665163</guid>
		<description>Ryan,

The disadvantages of &quot;innodb_stats_update_need_lock = 0&quot; is only that &quot;DATA_FREE&quot; column of &quot;SHOW TABLE STATUS&quot; is not updated. The value is only used for the &quot;SHOW TABLE STATUS&quot; for now. So, there are no influence to the other operations.

And I intend &quot;innodb_support_xa = false&quot; as a little optimization. The undo entry may be different a little from &quot;true&quot;. And this test doesn&#039;t use binlogs.

Thank you</description>
		<content:encoded><![CDATA[<p>Ryan,</p>
<p>The disadvantages of &#8220;innodb_stats_update_need_lock = 0&#8243; is only that &#8220;DATA_FREE&#8221; column of &#8220;SHOW TABLE STATUS&#8221; is not updated. The value is only used for the &#8220;SHOW TABLE STATUS&#8221; for now. So, there are no influence to the other operations.</p>
<p>And I intend &#8220;innodb_support_xa = false&#8221; as a little optimization. The undo entry may be different a little from &#8220;true&#8221;. And this test doesn&#8217;t use binlogs.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Huddleston</title>
		<link>http://www.mysqlperformanceblog.com/2009/10/14/tuning-for-heavy-writing-workloads/comment-page-1/#comment-665139</link>
		<dc:creator>Ryan Huddleston</dc:creator>
		<pubDate>Thu, 15 Oct 2009 04:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1376#comment-665139</guid>
		<description>Couple questions on your settings. What are the disadvantages of setting innodb_stats_update_need_lock = 0? What about innodb_support_xa = false, does that introduce possible issues with synchronization with the binlogs?</description>
		<content:encoded><![CDATA[<p>Couple questions on your settings. What are the disadvantages of setting innodb_stats_update_need_lock = 0? What about innodb_support_xa = false, does that introduce possible issues with synchronization with the binlogs?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
