<?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>Dotdeb &#187; google-perftools</title>
	<atom:link href="http://www.dotdeb.org/tag/google-perftools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotdeb.org</link>
	<description>The repository for Debian-based LAMP servers</description>
	<lastBuildDate>Mon, 06 Sep 2010 15:52:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MySQL on Amazon benchmarks : RDS vs EC2</title>
		<link>http://www.dotdeb.org/2010/05/04/mysql-on-amazon-benchmarks-rds-vs-ec2/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mysql-on-amazon-benchmarks-rds-vs-ec2</link>
		<comments>http://www.dotdeb.org/2010/05/04/mysql-on-amazon-benchmarks-rds-vs-ec2/#comments</comments>
		<pubDate>Tue, 04 May 2010 16:52:14 +0000</pubDate>
		<dc:creator>Guillaume Plessis</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[google-perftools]]></category>
		<category><![CDATA[InnoDB]]></category>

		<guid isPermaLink="false">http://www.dotdeb.org/?p=352</guid>
		<description><![CDATA[On May 3rd, I gave a talk for the french Amazon Web Ser [...]]]></description>
			<content:encoded><![CDATA[<p>On May 3rd, I gave a talk for the<a title="the french AWS user group" href="http://www.aws-ug.fr/"> french Amazon Web Services user group</a> about hosting MySQL on Amazon. Two solutions exist :</p>
<ul>
<li>using RDS, a &#8220;Database as a Service&#8221;</li>
<li>running your own MySQL server on a EC2 instance, with an EBS volume attached, a snapshot-enabled filesystem&#8230;</li>
</ul>
<p>The comparison is made on <strong>features</strong>, <strong>cost</strong> and <strong>performances</strong>. I used the same MySQL version as RDS (5.1.42) and the same config. Performances are measured by <a title="tpcc-mysql on Launchpad" href="https://code.launchpad.net/~percona-dev/perconatools/tpcc-mysql">tpcc-mysql</a> from <a title="MySQL Performance Blog" href="http://www.mysqlperformanceblog.com/">Percona</a> and they are charted using <a title="Google Fusion Tables" href="http://tables.googlelabs.com/">Google Fusion Tables</a>.</p>
<p>You&#8217;ll se that, altough MySQL + EC2 requires some additionnal DBA or sysadmin skills, it allows a lot of more tuning and a real performance boost (+270%).</p>
<p>So, if you&#8217;re planning to host MySQL databases on Amazon, feel free to take a look at these slides :</p>
<div id="__ss_4080077" style="width: 425px;"><object id="__sse4080077" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=prsentationawsug-en-100513045920-phpapp02&amp;stripped_title=mysql-on-amazon-rds-vs-ec2" /><param name="name" value="__sse4080077" /><param name="allowfullscreen" value="true" /><embed id="__sse4080077" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=prsentationawsug-en-100513045920-phpapp02&amp;stripped_title=mysql-on-amazon-rds-vs-ec2" name="__sse4080077" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
<p>Note for french-speaking people : la présentation est disponible <a title="MySQL et Amazon : RDS vs EC2" href="http://www.slideshare.net/gplessis/mysql-et-amazon-rds-vs-ec2">en français</a>.</p>
 <p>Feel free to Flattr this post at <a href="http://flattr.com/" title="Flattr" target="_blank">flattr.com</a>, if you like it.</p> <p><a href="http://flattr.com/" title="Flattr" target="_blank"><img src="http://www.dotdeb.org/wp-content/plugins/flattrss/button-compact-static-100x17.png" alt="flattr this!"/></a></p><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.dotdeb.org/2010/05/04/mysql-on-amazon-benchmarks-rds-vs-ec2/&via=dotdeb&text=MySQL on Amazon benchmarks : RDS vs EC2&related=w_a_s_t_e:Dotdeb's maintainer&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.dotdeb.org/2010/05/04/mysql-on-amazon-benchmarks-rds-vs-ec2/&via=dotdeb&text=MySQL on Amazon benchmarks : RDS vs EC2&related=w_a_s_t_e:Dotdeb's maintainer&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotdeb.org/2010/05/04/mysql-on-amazon-benchmarks-rds-vs-ec2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google Perftools 1.4 are available for Debian 5.0 &#8220;Lenny&#8221;</title>
		<link>http://www.dotdeb.org/2009/10/03/google-perftools-1-4-are-available-for-debian-5-0-lenny/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=google-perftools-1-4-are-available-for-debian-5-0-lenny</link>
		<comments>http://www.dotdeb.org/2009/10/03/google-perftools-1-4-are-available-for-debian-5-0-lenny/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 10:55:21 +0000</pubDate>
		<dc:creator>Guillaume Plessis</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[google-perftools]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.dotdeb.org/?p=282</guid>
		<description><![CDATA[Looking for a new way to speed up your MySQL server? T [...]]]></description>
			<content:encoded><![CDATA[<p>Looking for a new way to speed up your MySQL server? The tcmalloc library from <a title="Google Perftools on Google Code" href="http://code.google.com/p/google-perftools/">Google Perftools</a> could be the answer (about 15-20% performance improvement). Refer to <a title="Using Google perftools to speed up your MySQL server." href="http://www.dotdeb.org/2008/08/25/using-the-google-perftools-to-speed-up-your-mysql-server/">this (updated) How-to</a> for more information.</p>
<p>I just packaged Google Perftools 1.4 for Debian 5.0 (a.k.a. &#8220;Lenny&#8221;). According to the <a title="Google Perftools' Changelog" href="http://google-perftools.googlecode.com/svn/trunk/ChangeLog">Changelog</a>, they&#8217;re bringing a lot of bugfixes and improvements, and then they enhance the stability of the daemons they&#8217;re plugged in, especially on 64bits systems.</p>
<p>Upgrading from previous version is highly recommended.</p>
<script type="text/javascript">
var flattr_wp_ver = '0.9.14';
var flattr_uid = '13101';
var flattr_url = 'http://www.dotdeb.org';
var flattr_lng = 'en_GB';
var flattr_cat = 'text';
var flattr_tag = 'blog,wordpress,rss,feed';
var flattr_btn = 'large';
var flattr_tle = 'Dotdeb';
var flattr_dsc = 'The repository for Debian-based LAMP servers';
</script>
<script src="https://api.flattr.com/js/0.5.0/load.js?mode=auto" type="text/javascript"></script> <p>Feel free to Flattr this post at <a href="http://flattr.com/" title="Flattr" target="_blank">flattr.com</a>, if you like it.</p> <p><a href="http://flattr.com/" title="Flattr" target="_blank"><img src="http://www.dotdeb.org/wp-content/plugins/flattrss/button-compact-static-100x17.png" alt="flattr this!"/></a></p><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.dotdeb.org/2009/10/03/google-perftools-1-4-are-available-for-debian-5-0-lenny/&via=dotdeb&text=Google Perftools 1.4 are available for Debian 5.0 "Lenny"&related=w_a_s_t_e:Dotdeb's maintainer&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.dotdeb.org/2009/10/03/google-perftools-1-4-are-available-for-debian-5-0-lenny/&via=dotdeb&text=Google Perftools 1.4 are available for Debian 5.0 "Lenny"&related=w_a_s_t_e:Dotdeb's maintainer&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotdeb.org/2009/10/03/google-perftools-1-4-are-available-for-debian-5-0-lenny/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Google Perftools 1.3 available for Lenny</title>
		<link>http://www.dotdeb.org/2009/06/16/google-perftools-1-3-available-for-lenny/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=google-perftools-1-3-available-for-lenny</link>
		<comments>http://www.dotdeb.org/2009/06/16/google-perftools-1-3-available-for-lenny/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 21:28:43 +0000</pubDate>
		<dc:creator>Guillaume Plessis</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[google-perftools]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.dotdeb.org/?p=236</guid>
		<description><![CDATA[Do you remember how to speed up your MySQL server using [...]]]></description>
			<content:encoded><![CDATA[<p>Do you remember <a title="Using the Google Perftools to speed up your MySQL server" href="http://www.dotdeb.org/2008/08/25/using-the-google-perftools-to-speed-up-your-mysql-server/">how to speed up your MySQL server using the Google Perftools</a>? It seems that the amd64 flavour of these libraries makes MySQL crash.</p>
<p>I just bumped the version of the google-perftools packages for Lenny from 1.0 to 1.3. According to the <a title="Google Perftools' Changelog" href="http://google-perftools.googlecode.com/svn/trunk/ChangeLog">Changelog</a> they&#8217;re bringing a lot of bugfixes and improvements, and then enhance the stability of the daemons they&#8217;re plugged in.</p>
<p>Upgrading is highly recommended.</p>
<p><span style="text-decoration: underline;">Update :</span> The packages are now available for Etch.</p>
<p><span style="text-decoration: underline;">Update #2 :</span> <strong>Please d</strong><strong>esactivate the Google Perftools 1.3!</strong> They&#8217;re crashing MySQL. I&#8217;m rolling back to the old version (Etch : 0.98, Lenny : 1.0) until I fix (or Google) fix this issue. Really sorry for the mess&#8230;</p>
 <p>Feel free to Flattr this post at <a href="http://flattr.com/" title="Flattr" target="_blank">flattr.com</a>, if you like it.</p> <p><a href="http://flattr.com/" title="Flattr" target="_blank"><img src="http://www.dotdeb.org/wp-content/plugins/flattrss/button-compact-static-100x17.png" alt="flattr this!"/></a></p><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.dotdeb.org/2009/06/16/google-perftools-1-3-available-for-lenny/&via=dotdeb&text=Google Perftools 1.3 available for Lenny&related=w_a_s_t_e:Dotdeb's maintainer&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.dotdeb.org/2009/06/16/google-perftools-1-3-available-for-lenny/&via=dotdeb&text=Google Perftools 1.3 available for Lenny&related=w_a_s_t_e:Dotdeb's maintainer&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotdeb.org/2009/06/16/google-perftools-1-3-available-for-lenny/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Using the Google Perftools to speed up your MySQL server</title>
		<link>http://www.dotdeb.org/2008/08/25/using-the-google-perftools-to-speed-up-your-mysql-server/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=using-the-google-perftools-to-speed-up-your-mysql-server</link>
		<comments>http://www.dotdeb.org/2008/08/25/using-the-google-perftools-to-speed-up-your-mysql-server/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 15:13:44 +0000</pubDate>
		<dc:creator>Guillaume Plessis</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[google-perftools]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.dotdeb.org/?p=99</guid>
		<description><![CDATA[The Google Perftools, especially tcmalloc (Thread Cachi [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://goog-perftools.sourceforge.net/">Google Perftools</a>, especially <a href="http://goog-perftools.sourceforge.net/doc/tcmalloc.html">tcmalloc</a> (Thread Caching Malloc), can be very useful to speed up your applications, depending on your environment :</p>
<blockquote><p>TCMalloc is faster than the glibc 2.3 malloc (available as a separate library called ptmalloc2) and other mallocs that I have tested. ptmalloc2 takes approximately 300 nanoseconds to execute a malloc/free pair on a 2.8 GHz P4 (for small objects). The TCMalloc implementation takes approximately 50 nanoseconds for the same operation pair.</p></blockquote>
<p>Its deployment in your LAMP stack can speed up your MySQL servers, since it enhances memory allocation on threaded applications with the downside of larger memory footprints.</p>
<p>Here is how to use it easily&#8230;</p>
<p><strong>Installation</strong></p>
<p>First of all, be sure you use Debian 5.0 (a.k.a. &#8220;Lenny&#8221;) or later. Then install the minimal tcmalloc library from Dotdeb :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libtcmalloc-minimal0</pre></div></div>

<p>Then, since the mainstream MySQL packages are not compiled against tcmalloc, you&#8217;ll have to trick your OS&#8217; dynamic linker by adding the following line at the top of your <em>/etc/init.d/mysql</em> init script :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LD_PRELOAD</span>=<span style="color: #ff0000;">&quot;/usr/lib/libtcmalloc_minimal.so.0&quot;</span></pre></div></div>

<p><img class="aligncenter size-full wp-image-285" title="/etc/init.d/mysql modification" src="http://www.dotdeb.org/wp-content/uploads/2008/08/Capture-d’écran-2009-10-03-à-12.59.48.png" alt="/etc/init.d/mysql modification" width="468" height="193" /></p>
<p>After relauching your MySQL server using the modified init script, you&#8217;ll take profit from tcmalloc&#8217;s faster memory allocation.</p>
<p><strong>Results</strong></p>
<p>At the time of writing this article, I didn&#8217;t make benchmarks, but some reported that they had a ~15-20% performance gain. Please leave comments about your experience.</p>
<script type="text/javascript">
var flattr_wp_ver = '0.9.14';
var flattr_uid = '13101';
var flattr_url = 'http://www.dotdeb.org';
var flattr_lng = 'en_GB';
var flattr_cat = 'text';
var flattr_tag = 'blog,wordpress,rss,feed';
var flattr_btn = 'large';
var flattr_tle = 'Dotdeb';
var flattr_dsc = 'The repository for Debian-based LAMP servers';
</script>
<script src="https://api.flattr.com/js/0.5.0/load.js?mode=auto" type="text/javascript"></script> <p>Feel free to Flattr this post at <a href="http://flattr.com/" title="Flattr" target="_blank">flattr.com</a>, if you like it.</p> <p><a href="http://flattr.com/" title="Flattr" target="_blank"><img src="http://www.dotdeb.org/wp-content/plugins/flattrss/button-compact-static-100x17.png" alt="flattr this!"/></a></p><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.dotdeb.org/2008/08/25/using-the-google-perftools-to-speed-up-your-mysql-server/&via=dotdeb&text=Using the Google Perftools to speed up your MySQL server&related=w_a_s_t_e:Dotdeb's maintainer&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.dotdeb.org/2008/08/25/using-the-google-perftools-to-speed-up-your-mysql-server/&via=dotdeb&text=Using the Google Perftools to speed up your MySQL server&related=w_a_s_t_e:Dotdeb's maintainer&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotdeb.org/2008/08/25/using-the-google-perftools-to-speed-up-your-mysql-server/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
