<?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: 5.0.83-build17 Percona binaries</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/</link>
	<description>Percona&#039;s MySQL &#38; InnoDB performance and scalability blog</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:45:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/comment-page-1/#comment-626427</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Sat, 08 Aug 2009 21:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=866#comment-626427</guid>
		<description>Gabriel, I meant to reply sooner -- sorry.  Yes, I was referring to checkpointing activity.  I stand corrected, I see you are well aware of that problem.</description>
		<content:encoded><![CDATA[<p>Gabriel, I meant to reply sooner &#8212; sorry.  Yes, I was referring to checkpointing activity.  I stand corrected, I see you are well aware of that problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Davies</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/comment-page-1/#comment-625114</link>
		<dc:creator>Stuart Davies</dc:creator>
		<pubDate>Thu, 06 Aug 2009 13:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=866#comment-625114</guid>
		<description>Just as an aside as know lots of people want to try out the intel SSD&#039;s, some simple config changes I&#039;d make to get the most out of them (assuming its going to be dedicated to the database:
1) Update to the latest firmware (http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;DwnldID=17485)
2) Hard erase the drive after the update to make sure its 
3) Make sure you use software raid. Raid cards these days are rarely as good as linux in maximising throughput, even the PCI-E x8 variants. We get the best results using the standard intel host controller which has 6 SATA ports.
4) Switch on AHCI for the disk configuration in your bios, it vastly improves small file access whether reading or writing, key for db operations! (http://www.pcper.com/article.php?aid=669&amp;type=expert&amp;pid=3) 
4) Align the drive when formatting to match the SSD (see here: http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-erase-block-size/)
5) Set the drive mount in /etc/fstab to be noatime
6) Make sure the mysqltmp is mounted on the drive
7) Relocate the innodb log files to a directory on a seperate partition on a standard HDD. It&#039;ll help minimise writes and the standard hard drives are excellent at sequential writes which is what most of the writes to the log files are.
innodb_log_group_home_dir=/var/lib/mysqlnonssd/
innodb_log_arch_dir=/var/lib/mysqlnonssd/
8) Make sure you bypass the OS caches
innodb_flush_method=O_DIRECT
9) We get the best results with filepertable. Especially if you find your tables fragment a lot. 
innodb_file_per_table=1

I&#039;m sure other people can chime in with some additional settings such as using the percona or ourdelta builds both of which have decent enhancements.
Our server listed above comfortably averages 3500 queries a second with peaks up to 10000 queries being handled well.
The query mix on our server (details of which are in a post above) is as follows:
49.99% change db
34.73% SELECT
2.93% DELETE
1.47% INSERT
5.31% REPLACE
5.57% UPDATE
All of this on a 43.4GB data set constituting 161,000,000 data rows (details of the table mix was stated above)
Obiously this is just my own findings but hopefully will help someone.

-Stu</description>
		<content:encoded><![CDATA[<p>Just as an aside as know lots of people want to try out the intel SSD&#8217;s, some simple config changes I&#8217;d make to get the most out of them (assuming its going to be dedicated to the database:<br />
1) Update to the latest firmware (<a href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&#038;DwnldID=17485" rel="nofollow">http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&#038;DwnldID=17485</a>)<br />
2) Hard erase the drive after the update to make sure its<br />
3) Make sure you use software raid. Raid cards these days are rarely as good as linux in maximising throughput, even the PCI-E x8 variants. We get the best results using the standard intel host controller which has 6 SATA ports.<br />
4) Switch on AHCI for the disk configuration in your bios, it vastly improves small file access whether reading or writing, key for db operations! (<a href="http://www.pcper.com/article.php?aid=669&#038;type=expert&#038;pid=3" rel="nofollow">http://www.pcper.com/article.php?aid=669&#038;type=expert&#038;pid=3</a>)<br />
4) Align the drive when formatting to match the SSD (see here: <a href="http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-erase-block-size/" rel="nofollow">http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-erase-block-size/</a>)<br />
5) Set the drive mount in /etc/fstab to be noatime<br />
6) Make sure the mysqltmp is mounted on the drive<br />
7) Relocate the innodb log files to a directory on a seperate partition on a standard HDD. It&#8217;ll help minimise writes and the standard hard drives are excellent at sequential writes which is what most of the writes to the log files are.<br />
innodb_log_group_home_dir=/var/lib/mysqlnonssd/<br />
innodb_log_arch_dir=/var/lib/mysqlnonssd/<br />
 <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Make sure you bypass the OS caches<br />
innodb_flush_method=O_DIRECT<br />
9) We get the best results with filepertable. Especially if you find your tables fragment a lot.<br />
innodb_file_per_table=1</p>
<p>I&#8217;m sure other people can chime in with some additional settings such as using the percona or ourdelta builds both of which have decent enhancements.<br />
Our server listed above comfortably averages 3500 queries a second with peaks up to 10000 queries being handled well.<br />
The query mix on our server (details of which are in a post above) is as follows:<br />
49.99% change db<br />
34.73% SELECT<br />
2.93% DELETE<br />
1.47% INSERT<br />
5.31% REPLACE<br />
5.57% UPDATE<br />
All of this on a 43.4GB data set constituting 161,000,000 data rows (details of the table mix was stated above)<br />
Obiously this is just my own findings but hopefully will help someone.</p>
<p>-Stu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/comment-page-1/#comment-624000</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Tue, 04 Aug 2009 14:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=866#comment-624000</guid>
		<description>Baron, are you referring to the innodb adaptive checkpoint feature ? With the X25-M SSDs, this only makes it worse. And the problem is specific to the X25-M flash drives, because we don&#039;t have such freezes with writes on the X25-E drives. On the other hand, using innodb_adaptive_checkpoint with the X25-E makes the server run very smoothly, even when with a lot a INSERTs.

This problem really comes from the drive, and is verified by benchmarks.</description>
		<content:encoded><![CDATA[<p>Baron, are you referring to the innodb adaptive checkpoint feature ? With the X25-M SSDs, this only makes it worse. And the problem is specific to the X25-M flash drives, because we don&#8217;t have such freezes with writes on the X25-E drives. On the other hand, using innodb_adaptive_checkpoint with the X25-E makes the server run very smoothly, even when with a lot a INSERTs.</p>
<p>This problem really comes from the drive, and is verified by benchmarks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/comment-page-1/#comment-623946</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Tue, 04 Aug 2009 11:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=866#comment-623946</guid>
		<description>Gabriel, you are observing InnoDB&#039;s behavior, not the flash drive&#039;s.  We&#039;ve addressed this in some of our patches.</description>
		<content:encoded><![CDATA[<p>Gabriel, you are observing InnoDB&#8217;s behavior, not the flash drive&#8217;s.  We&#8217;ve addressed this in some of our patches.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/comment-page-1/#comment-623876</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Tue, 04 Aug 2009 10:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=866#comment-623876</guid>
		<description>@Stuart

Agreed. With the SSD drives, operations with phpMyadmin are a lot smoother than with HDDs, but I really wanted to warn about the write activity on these drives. The read only performance is the same as the X25-E drives for much more capacity.
What makes thoses drives inoperable with write heavy databases, is that when the writes are &quot;blocking&quot;, the pending reads from the drive are also blocked! (using a RAID controller with a big write cache doesn&#039;t really help)
So if you have a lot a read activity on your databases, and InnoDB decides to flush the buffer pool (&quot;checkpointing&quot;), you will notice your read queries are piling up in the processlist until the writes are completed. This checkpointing may occur more or less often, depending on the log size and the write ratio, but in my case it happens ~10 times a day (70% writes / 30% reads)
This is really a problem when queries supposed to take 5000 queries / sec on the server.</description>
		<content:encoded><![CDATA[<p>@Stuart</p>
<p>Agreed. With the SSD drives, operations with phpMyadmin are a lot smoother than with HDDs, but I really wanted to warn about the write activity on these drives. The read only performance is the same as the X25-E drives for much more capacity.<br />
What makes thoses drives inoperable with write heavy databases, is that when the writes are &#8220;blocking&#8221;, the pending reads from the drive are also blocked! (using a RAID controller with a big write cache doesn&#8217;t really help)<br />
So if you have a lot a read activity on your databases, and InnoDB decides to flush the buffer pool (&#8220;checkpointing&#8221;), you will notice your read queries are piling up in the processlist until the writes are completed. This checkpointing may occur more or less often, depending on the log size and the write ratio, but in my case it happens ~10 times a day (70% writes / 30% reads)<br />
This is really a problem when queries supposed to take 5000 queries / sec on the server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Davies</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/comment-page-1/#comment-623852</link>
		<dc:creator>Stuart Davies</dc:creator>
		<pubDate>Tue, 04 Aug 2009 09:17:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=866#comment-623852</guid>
		<description>Hi Gabriel / Imran,
The X25-M&#039;s certainly arent worse than 7200rpm drives! Maybe in very write heavy scenarios I&#039;d agree. It does however give a massive boost in responsiveness over the 7200rpm drives for reads, especially on large tables that dont fit in the buffer pool.
To give an idea with our current dataset (42GB database split over 100 ish tables with 15 tables that are between 1 - 4GB in size) an X25-M will show the tables instan
Server specs are:
8GB Quad core xeon X5355 running ubuntu 9.04 with Raid 1 array X25-M and Raid 10 array of 4 x 1.5TB Seagate 7200 rpm drives both configured using mdadm.
As the data set does not fit in the limited memory queries will naturally do a lot of seeks and reads.
With the database configured on the raid 10 set just showing a table or navigating the phpmyadmin interface takes upwards of 20 seconds.
With the database on the SSD response is near instant.
I have noticed the write delays on large data writes such as repairs, but with a mixed read-write load it happens less frequently. The best solution we have found is to hold the logs on the 7200 disks as the writing is largely sequential to the log file anyway.

Would I buy one after our results? Yes but only in the following scenarios:
- A database with a read write ratio below 80% read / 20% write. 
- Slave servers to maximise throughput without having to spend the earth. You can configure a really cheap server with just a couple of them in a raid 1 set and dont have to worry about padding the server out with memory.

In any other scenario Gabriel is absolutely right and I&#039;d go for a X25-E if you can afford it.

Anyway just my thoughts! Always make sure you trial the solution for your own workload! :)</description>
		<content:encoded><![CDATA[<p>Hi Gabriel / Imran,<br />
The X25-M&#8217;s certainly arent worse than 7200rpm drives! Maybe in very write heavy scenarios I&#8217;d agree. It does however give a massive boost in responsiveness over the 7200rpm drives for reads, especially on large tables that dont fit in the buffer pool.<br />
To give an idea with our current dataset (42GB database split over 100 ish tables with 15 tables that are between 1 &#8211; 4GB in size) an X25-M will show the tables instan<br />
Server specs are:<br />
8GB Quad core xeon X5355 running ubuntu 9.04 with Raid 1 array X25-M and Raid 10 array of 4 x 1.5TB Seagate 7200 rpm drives both configured using mdadm.<br />
As the data set does not fit in the limited memory queries will naturally do a lot of seeks and reads.<br />
With the database configured on the raid 10 set just showing a table or navigating the phpmyadmin interface takes upwards of 20 seconds.<br />
With the database on the SSD response is near instant.<br />
I have noticed the write delays on large data writes such as repairs, but with a mixed read-write load it happens less frequently. The best solution we have found is to hold the logs on the 7200 disks as the writing is largely sequential to the log file anyway.</p>
<p>Would I buy one after our results? Yes but only in the following scenarios:<br />
- A database with a read write ratio below 80% read / 20% write.<br />
- Slave servers to maximise throughput without having to spend the earth. You can configure a really cheap server with just a couple of them in a raid 1 set and dont have to worry about padding the server out with memory.</p>
<p>In any other scenario Gabriel is absolutely right and I&#8217;d go for a X25-E if you can afford it.</p>
<p>Anyway just my thoughts! Always make sure you trial the solution for your own workload! <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pservit</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/comment-page-1/#comment-623313</link>
		<dc:creator>pservit</dc:creator>
		<pubDate>Mon, 03 Aug 2009 08:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=866#comment-623313</guid>
		<description>I have problems with -highperf under freebsd 7.2 (mysqld process locked in ucond state). So test it before using in production.</description>
		<content:encoded><![CDATA[<p>I have problems with -highperf under freebsd 7.2 (mysqld process locked in ucond state). So test it before using in production.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/comment-page-1/#comment-621701</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Fri, 31 Jul 2009 14:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=866#comment-621701</guid>
		<description>By the way, I don&#039;t see the innodb fast recovery patch in this release? Why?

I &quot;backported&quot; the xtradb fast recovery patch to 5.0.82 and it is compiling/working fine, but recovery is not that fast in some cases: 100GB InnoDB data, 24GB buffer pool, 3x256M logs on SSD is taking 40 minutes to recover, worst case scenario, fast recovery enabled. I don&#039;t know how much time it would take without that patch though.</description>
		<content:encoded><![CDATA[<p>By the way, I don&#8217;t see the innodb fast recovery patch in this release? Why?</p>
<p>I &#8220;backported&#8221; the xtradb fast recovery patch to 5.0.82 and it is compiling/working fine, but recovery is not that fast in some cases: 100GB InnoDB data, 24GB buffer pool, 3x256M logs on SSD is taking 40 minutes to recover, worst case scenario, fast recovery enabled. I don&#8217;t know how much time it would take without that patch though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/comment-page-1/#comment-621694</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Fri, 31 Jul 2009 14:02:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=866#comment-621694</guid>
		<description>@imran
About the Intel SSDs: Stay away from the X25-M MLC series (the bigger and cheaper ones). Thoses are the best money can buy for laptops, but they are worse than standard 7200rpm HDDs on servers: The reads and writes are really not consistent at all over time so you have awesome write speeds for about 1-2 seconds, then long I/O freezes before the next I/O burst (see our benchmark results: http://pub.grosboulet.com/benchmark-seqwrite.jpg). It is as if the drive was choking on the data to write. Needless to say, that behaviour is very bad when innodb is flushing the pages when checkpointing: You basically can&#039;t do anything else when that happens.

However, not a single problem with the X25-E SLC series, I guess the 2 series (Mainstream vs Extreme) have a very different firmware, because it&#039;s not about the write speed (SLC drives are always higher of course), it&#039;s about having a drive capable of writing consistently over time. Too bad the Intel SLC drives are so small (32/64GB max) and so expensive compared to their MLC counterpart!</description>
		<content:encoded><![CDATA[<p>@imran<br />
About the Intel SSDs: Stay away from the X25-M MLC series (the bigger and cheaper ones). Thoses are the best money can buy for laptops, but they are worse than standard 7200rpm HDDs on servers: The reads and writes are really not consistent at all over time so you have awesome write speeds for about 1-2 seconds, then long I/O freezes before the next I/O burst (see our benchmark results: <a href="http://pub.grosboulet.com/benchmark-seqwrite.jpg" rel="nofollow">http://pub.grosboulet.com/benchmark-seqwrite.jpg</a>). It is as if the drive was choking on the data to write. Needless to say, that behaviour is very bad when innodb is flushing the pages when checkpointing: You basically can&#8217;t do anything else when that happens.</p>
<p>However, not a single problem with the X25-E SLC series, I guess the 2 series (Mainstream vs Extreme) have a very different firmware, because it&#8217;s not about the write speed (SLC drives are always higher of course), it&#8217;s about having a drive capable of writing consistently over time. Too bad the Intel SLC drives are so small (32/64GB max) and so expensive compared to their MLC counterpart!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: imran</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/28/5-0-83-build17-percona-binaries/comment-page-1/#comment-621397</link>
		<dc:creator>imran</dc:creator>
		<pubDate>Fri, 31 Jul 2009 06:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=866#comment-621397</guid>
		<description>@Stuart:

Would love to hear how the results turn out with the Intel SSD&#039;s whenever you get around to it.</description>
		<content:encoded><![CDATA[<p>@Stuart:</p>
<p>Would love to hear how the results turn out with the Intel SSD&#8217;s whenever you get around to it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

