<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tokutek &#187; dave</title>
	<atom:link href="http://tokutek.com/author/dwells/feed/" rel="self" type="application/rss+xml" />
	<link>http://tokutek.com</link>
	<description>Database Performance</description>
	<lastBuildDate>Mon, 26 Jul 2010 19:52:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Recovery Times &#8211; Part Deux</title>
		<link>http://tokutek.com/2010/01/recovery-times-part-deux/</link>
		<comments>http://tokutek.com/2010/01/recovery-times-part-deux/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 20:13:15 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[TokuView]]></category>

		<guid isPermaLink="false">http://tokutek.com/?p=986</guid>
		<description><![CDATA[In a follow-up experiment to an earlier post on TokuDB recovery times, I tried to create a better apples-to-apples comparison to InnoDB recovery time. If I measure recovery times when both DBs are doing the same amount of work, TokuDB requires only 2s to recover from a crash, compared to 1020s for InnoDB. Background In [...]]]></description>
			<content:encoded><![CDATA[<p>
In a follow-up experiment to an <a href="http://tokutek.com/2009/12/recovery-time-for-tokudb/">earlier post</a> on <a href="http://tokutek.com/products/tokudb-for-mysql-v3-0-beta/">TokuDB</a> recovery times, I tried to create a better apples-to-apples comparison to InnoDB recovery time.  If I measure recovery times when both DBs are doing the same amount of work, TokuDB requires only 2s to recover from a crash, compared to 1020s for InnoDB.
</p>
<h3>
Background<br />
</h3>
<p>
In the <a href="http://tokutek.com/2009/12/recovery-time-for-tokudb/">first experiment</a>, I compared recovery times when both storage engines (TokuDB and InnoDB) were inserting at maximum rates.  In that experiment, following a power cord pull and server restart, TokuDB recovered in 501s, InnoDB in 18505s.  <a href="http://tokutek.com/2009/12/recovery-time-for-tokudb/comment-page-1/#comment-249">In response</a>, it was suggested that I run a <a href="http://noc.wikimedia.org/~midom/mysql.tar">patched version</a> of InnoDB that vastly improves InnoDB recovery times.  The patched version recovered in 1020s.  (Quite an improvement!)
</p>
<p>
The first experiment ignored the fact that TokuDB was inserting &gt;16,000 rows/s into the table, while InnoDB was inserting less than 200 rows/s.  Given that TokuDB was doing so much more work, you would expect a longer recovery time.  This post discusses an experiment where recovery times were measured when both DBs were doing the same amount of work.</p>
<h3>
The experiment<br />
</h3>
<p>
As before, I ran on the following server:
</p>
<pre>
Sunfire x4150
Dual socket quad core Xeon 3.1GHz
16GiB memory
2 SAS 146GB
6 SAS 146GB hardware RAID 0 256KiB stripe
CentOS 5.1
Ext3 file system
</pre>
<p>
The disks and RAID controller were configured with the write-caches OFF.
</p>
<p>
I modified  <a href="https://code.launchpad.net/~wells-tokutek/mysql-patch/mytools">iiBench</a> to generate rows at a rate of ~200 rows per second for insertion into a MySQL database so that both storage engines would perform insertions at the same rate.  After inserting 250M rows, I pulled the power cords, then measured the time to restart mysqld after the machine was rebooted.  I repeated this experiment inserting ~2000 rows per second.  The results:
</p>
<table>
<tr>
<td>Storage Engine</td>
<td>Insert Rate</td>
<td>Recovery Time</td>
</tr>
<tr>
<td>TokuDB</td>
<td>16,000 rows/s</td>
<td>501s</td>
</tr>
<tr>
<td>TokuDB</td>
<td>2,000 rows/s</td>
<td>13s</td>
</tr>
<tr>
<td>TokuDB</td>
<td>200 rows/s</td>
<td>2s</td>
</tr>
<tr>
<td>Stock InnoDB</td>
<td>200 rows/s</td>
<td>18505s</td>
</tr>
<tr>
<td>Patched InnoDB</td>
<td>200 rows/s</td>
<td>1020s</td>
</tr>
</table>
<p>
The reduced workload meant there was far less log data to scan and recover.  These results also match our findings when we recover from power plug pulls on typical applications, which don&#8217;t necessarily use all of TokuDB&#8217;s insertion bandwidth at all times.
</p>
<p>
A final note: it takes mysqld 1s to start when no recovery is required.
</p>
<p>
<a href="http://www.imdb.com/title/tt0107144/quotes">Looks like the upper hand, is on the other foot!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tokutek.com/2010/01/recovery-times-part-deux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recovery Time for TokuDB</title>
		<link>http://tokutek.com/2009/12/recovery-time-for-tokudb/</link>
		<comments>http://tokutek.com/2009/12/recovery-time-for-tokudb/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 16:56:53 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[TokuView]]></category>
		<category><![CDATA[InnoDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[TokuDB]]></category>

		<guid isPermaLink="false">http://tokutek.com/?p=943</guid>
		<description><![CDATA[Last week Tokutek released version 3.0.0 of TokuDB, adding ACID transactions to its list of features. This post discusses an experiment we ran to measure recovery time following a system crash. In summary, while actively inserting records into a MySQL database using iiBench, we compared the time to recover from a power-cord pull for both [...]]]></description>
			<content:encoded><![CDATA[<p>Last week Tokutek released version 3.0.0 of <a href="http://tokutek.com/products/tokudb-for-mysql-v3-0-beta/">TokuDB</a>, adding ACID transactions to its list of features.  This post discusses an experiment we ran to measure recovery time following a system crash.</p>
<p>In summary, while actively inserting records into a MySQL database using <a href="https://code.launchpad.net/~wells-tokutek/mysql-patch/mytools">iiBench</a>, we compared the time to recover from a power-cord pull for both InnoDB and TokuDB.</p>
<table>
<tr>
<td>
   Storage Engine</td>
<td>       Recovery Time</td>
</tr>
<tr>
<td>      TokuDB</td>
<td>               501s (8 min, 21 sec)</td>
</tr>
<tr>
<td>      InnoDB</td>
<td>             18505s (5 hours, 8 min, 25 sec)</td>
</tr>
</table>
<p>This is by no means an exhaustive look at recovery performance, but does illustrate the benefits of Tokutek&#8217;s approach.</p>
<h3>The experiment</h3>
<p>We ran iiBench on the following server:</p>
<pre>
Sunfire x4150
Dual socket quad core Xeon 3.1GHz
16GiB memory
2 SAS 146GB
6 SAS 146GB hardware RAID 0 256KiB stripe
CentOS 5.1
Ext3 file system
</pre>
<p>The disks and RAID controller were configured with the write-caches OFF using <a href="http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&#038;ProductFamily=Server+Products&#038;ProductLine=RAID+Controllers+for+OEMs&#038;ProductProduct=Sun+StorageTek*+SAS+RAID+HBA,+Internal">arcconf</a>. (Note: an experiment with the RAID controller write-cache ON resulted in a non-recoverable database, as you should expect)</p>
<p>We ran an insert-only iiBench test.  After inserting about 250M rows and while actively inserting more, we manually pulled the plugs (2 on a Sunfire x4150).  We then powered up the server and timed how long it took to start mysqld.</p>
<p>The results for InnoDB are not surprising &#8211; they are in line with results reported elsewhere.  During recovery, InnoDB reported 1 transaction to be rolled back or cleaned up, and 68 row operations to undo.</p>
<p>The results for TokuDB are encouraging, in that they indicate recovery can be performed in minutes instead of hours.  In this experiment, rebooting the server almost took as long as recovering the TokuDB database.</p>
<p>The primary reason for TokuDB&#8217;s quick recovery time is the use of regular, automatic checkpoints.  This feature (introduced in version 2.0.0) ensures that work is completed and written to disk (including the necessary fsync) on a regular basis.  Recovery is limited to processing uncommitted transactions and work since the last checkpoint.   When not pushing performance to the absolute max we find recovery times typically take less than a minute.</p>
]]></content:encoded>
			<wfw:commentRss>http://tokutek.com/2009/12/recovery-time-for-tokudb/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
