<?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: Living with backups</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/</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: Vitaly</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-603105</link>
		<dc:creator>Vitaly</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-603105</guid>
		<description>Thank you!
In fact, I&#039;m   migrating  my backup scripts to another host now.</description>
		<content:encoded><![CDATA[<p>Thank you!<br />
In fact, I&#8217;m   migrating  my backup scripts to another host now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dermoth</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-603041</link>
		<dc:creator>dermoth</dc:creator>
		<pubDate>Thu, 02 Jul 2009 11:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-603041</guid>
		<description>Vitaly,

That may be a bug.... In 2.6.22 I had one where running I/O-intensive applications in the IDLE class would slow down everything (both MySQL and the IDLE application were running much slower than when they were both in the default class).

Check the crond scripts or use ionice to verify you&#039;re not using classes already (i.e. the system may already use the IDLE class for I/O-intensive jobs)... Other than the my only suggestion would be to upgrade.</description>
		<content:encoded><![CDATA[<p>Vitaly,</p>
<p>That may be a bug&#8230;. In 2.6.22 I had one where running I/O-intensive applications in the IDLE class would slow down everything (both MySQL and the IDLE application were running much slower than when they were both in the default class).</p>
<p>Check the crond scripts or use ionice to verify you&#8217;re not using classes already (i.e. the system may already use the IDLE class for I/O-intensive jobs)&#8230; Other than the my only suggestion would be to upgrade.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitaly</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-602901</link>
		<dc:creator>Vitaly</dc:creator>
		<pubDate>Thu, 02 Jul 2009 07:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-602901</guid>
		<description>Thank you, I read your post, probably I just didn&#039;t understand it :-)
First, I&#039;m still with RHEL4 (2.6.9-42.0.3.ELsmp) - it means, I cannot switch between schedulers.
Second - my question is mostly why slowing down is *so* drastic, in many cases it seems like mysql is stucked at all.

Thank you!</description>
		<content:encoded><![CDATA[<p>Thank you, I read your post, probably I just didn&#8217;t understand it <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
First, I&#8217;m still with RHEL4 (2.6.9-42.0.3.ELsmp) &#8211; it means, I cannot switch between schedulers.<br />
Second &#8211; my question is mostly why slowing down is *so* drastic, in many cases it seems like mysql is stucked at all.</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dermoth</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-602277</link>
		<dc:creator>dermoth</dc:creator>
		<pubDate>Wed, 01 Jul 2009 16:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-602277</guid>
		<description>Vitaly, you should read my post above... There&#039;s pretty much the answer to your question there.

Nice value affects only processor scheduler and has no effect on IO-intensive tasks. IO classes (ionice) works only with CFQ, and as I point out in that post, even when using IO classes to give priority to MySQL, CFQ makes MySQL run slower than Deadline on my hardware.

I haven&#039;t tested with the Anticipatory scheduler, however it should be even worse by design; Anticipatory should make Mysql wait even more on IO expecting sequential reads; while it will likely make random requests.

Once you find the fastest scheduler for your load/hardware, you may want to tune the scheduler parameters to see if you can get any better results. These are in /sys/block//queue/iosched/.</description>
		<content:encoded><![CDATA[<p>Vitaly, you should read my post above&#8230; There&#8217;s pretty much the answer to your question there.</p>
<p>Nice value affects only processor scheduler and has no effect on IO-intensive tasks. IO classes (ionice) works only with CFQ, and as I point out in that post, even when using IO classes to give priority to MySQL, CFQ makes MySQL run slower than Deadline on my hardware.</p>
<p>I haven&#8217;t tested with the Anticipatory scheduler, however it should be even worse by design; Anticipatory should make Mysql wait even more on IO expecting sequential reads; while it will likely make random requests.</p>
<p>Once you find the fastest scheduler for your load/hardware, you may want to tune the scheduler parameters to see if you can get any better results. These are in /sys/block//queue/iosched/.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitaly</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-600938</link>
		<dc:creator>Vitaly</dc:creator>
		<pubDate>Tue, 30 Jun 2009 09:11:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-600938</guid>
		<description>Thanks for the interesting article!
I use my DB server as backup/archiving server for some data (no MySQL related).
I understand that MySQL will respond slowly during when some IO-demanding processes are running (gzip, etc...).
But many times my MySQL DB server just isn&#039;t responding - at least, the same query that usually takes  about 2 secs, isn&#039;t responding after few *minutes*!
I played with &quot;ionice for poors&quot; perl script and at the end I&#039;ll probably move all non-DB thins to another box, but I&#039;m just curious - is this some bug in  scheduler? in MySQL? or this is expected behaviour?</description>
		<content:encoded><![CDATA[<p>Thanks for the interesting article!<br />
I use my DB server as backup/archiving server for some data (no MySQL related).<br />
I understand that MySQL will respond slowly during when some IO-demanding processes are running (gzip, etc&#8230;).<br />
But many times my MySQL DB server just isn&#8217;t responding &#8211; at least, the same query that usually takes  about 2 secs, isn&#8217;t responding after few *minutes*!<br />
I played with &#8220;ionice for poors&#8221; perl script and at the end I&#8217;ll probably move all non-DB thins to another box, but I&#8217;m just curious &#8211; is this some bug in  scheduler? in MySQL? or this is expected behaviour?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dermoth</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-385651</link>
		<dc:creator>dermoth</dc:creator>
		<pubDate>Tue, 18 Nov 2008 21:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-385651</guid>
		<description>I played recently with backups while performing server upgrades... My new backup slave performs the whole backup (~60GB uncompressed dump, though using on-the-fly compression with Gzip the file end up slightly over 6GB) in single-transaction while keeping up in replication. Interestingly though, what&#039;s hurting more the server (and sometime tripping off the replication alarms) is the rsync job during the checksuming phase. Quick testing showed that a single process saturating the server with I/O reads cause replicating to slightly lag behind.

I can most likely avoid the checksums in rsync (haven&#039;t tested yet since it&#039;s not really annoying - I think --whole-file does the trick) though I tested various schedulers/setting do see how it affects the results.

Originally running Linux-2.6.22, I had to upgrade to 2.6.27 due to a bug in CFQ: performing read I/O in the Idle was making *both* dd (Idle class) and MySQL (default class) to slow down to ridiculously low speed!

- Using the deadline scheduler (which was the default) gives the best performance in all tested kernels - side read operation are fast and MySQL starts lagging slightly.

- Using CFQ with default class, side read operation is about twice as fast while MySQL replication is nearly halted.

- Using CFQ with side I/O in the Idle class (on 2.6.27), side read operations are still a bit faster than using deadline, and MySQL is lagging behind significantly more than using deadline.

The IO subsystem is a hardware RAID 0+1 (3 stripped RAID1), 6x 10k SCSI-320 disks, 128M controller cache without write caching.

I think that might be of interest to others.</description>
		<content:encoded><![CDATA[<p>I played recently with backups while performing server upgrades&#8230; My new backup slave performs the whole backup (~60GB uncompressed dump, though using on-the-fly compression with Gzip the file end up slightly over 6GB) in single-transaction while keeping up in replication. Interestingly though, what&#8217;s hurting more the server (and sometime tripping off the replication alarms) is the rsync job during the checksuming phase. Quick testing showed that a single process saturating the server with I/O reads cause replicating to slightly lag behind.</p>
<p>I can most likely avoid the checksums in rsync (haven&#8217;t tested yet since it&#8217;s not really annoying &#8211; I think &#8211;whole-file does the trick) though I tested various schedulers/setting do see how it affects the results.</p>
<p>Originally running Linux-2.6.22, I had to upgrade to 2.6.27 due to a bug in CFQ: performing read I/O in the Idle was making *both* dd (Idle class) and MySQL (default class) to slow down to ridiculously low speed!</p>
<p>- Using the deadline scheduler (which was the default) gives the best performance in all tested kernels &#8211; side read operation are fast and MySQL starts lagging slightly.</p>
<p>- Using CFQ with default class, side read operation is about twice as fast while MySQL replication is nearly halted.</p>
<p>- Using CFQ with side I/O in the Idle class (on 2.6.27), side read operations are still a bit faster than using deadline, and MySQL is lagging behind significantly more than using deadline.</p>
<p>The IO subsystem is a hardware RAID 0+1 (3 stripped RAID1), 6x 10k SCSI-320 disks, 128M controller cache without write caching.</p>
<p>I think that might be of interest to others.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Edwards</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-379070</link>
		<dc:creator>Dave Edwards</dc:creator>
		<pubDate>Fri, 14 Nov 2008 19:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-379070</guid>
		<description>&lt;a href=&quot;http://www.pythian.com/blogs/1359/log-buffer-123-a-carnival-of-the-vanities-for-dbas&quot; rel=&quot;nofollow&quot;&gt;&quot;Replication, backups. We all have to do it. Maciej Dobrzanski of the MySQL Performance Blog expounds on what it means to be living with backups.&quot;&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://www.pythian.com/blogs/1359/log-buffer-123-a-carnival-of-the-vanities-for-dbas" rel="nofollow">&#8220;Replication, backups. We all have to do it. Maciej Dobrzanski of the MySQL Performance Blog expounds on what it means to be living with backups.&#8221;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-373340</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 07 Nov 2008 17:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-373340</guid>
		<description>Using bandwidth limit in rsync or compression speed (with low priority) as  a way to offload the system is a good strategy. Though it does not work in all cases.  For example if you use rsync to really sync the backup with old backup version quite commonly you will have a lot of disk IO with little bandwidth used to only transfer the data which is actually changed.   The compression can lead you into the trouble when you have a lot of small files plus it is not very flexible in picking the pace you want backups to be happening at.</description>
		<content:encoded><![CDATA[<p>Using bandwidth limit in rsync or compression speed (with low priority) as  a way to offload the system is a good strategy. Though it does not work in all cases.  For example if you use rsync to really sync the backup with old backup version quite commonly you will have a lot of disk IO with little bandwidth used to only transfer the data which is actually changed.   The compression can lead you into the trouble when you have a lot of small files plus it is not very flexible in picking the pace you want backups to be happening at.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-373339</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 07 Nov 2008 17:23:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-373339</guid>
		<description>Matt, 

Using slave for backups is good though you always should consider couple of things 

- good replication (and lag monitoring) 
- checks to ensure master and slaves are fully in sync. 

With maatkit now able to do non-intrusive checks we&#039;ve been checking many replication pairs and the ones which are up and running for a few months quite frequently would have some mild data inconsistencies.</description>
		<content:encoded><![CDATA[<p>Matt, </p>
<p>Using slave for backups is good though you always should consider couple of things </p>
<p>- good replication (and lag monitoring)<br />
- checks to ensure master and slaves are fully in sync. </p>
<p>With maatkit now able to do non-intrusive checks we&#8217;ve been checking many replication pairs and the ones which are up and running for a few months quite frequently would have some mild data inconsistencies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-373286</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 07 Nov 2008 13:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-373286</guid>
		<description>Maciej,

I used to use gzip because as you said, bzip2 is a lot slower. However with quad core CPUs the parallel bzip2 actually turns out to be faster, even with the -9 flag. Running pbzip2 under &#039;nice&#039; makes sure the DB&#039;s not too starved of CPU time as well although as I&#039;m sure you&#039;re aware, a write-only DB is mostly I/O bound. Also if you&#039;re backing up to a slow storage device (for instance a USB disk or a slow fileserver), pbzip2 can return a substantial time saving as you&#039;re chucking around half the amount of data.</description>
		<content:encoded><![CDATA[<p>Maciej,</p>
<p>I used to use gzip because as you said, bzip2 is a lot slower. However with quad core CPUs the parallel bzip2 actually turns out to be faster, even with the -9 flag. Running pbzip2 under &#8216;nice&#8217; makes sure the DB&#8217;s not too starved of CPU time as well although as I&#8217;m sure you&#8217;re aware, a write-only DB is mostly I/O bound. Also if you&#8217;re backing up to a slow storage device (for instance a USB disk or a slow fileserver), pbzip2 can return a substantial time saving as you&#8217;re chucking around half the amount of data.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
