<?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>domas mituzas &#187; heap</title>
	<atom:link href="http://mituzas.lt/tag/heap/feed/" rel="self" type="application/rss+xml" />
	<link>http://mituzas.lt</link>
	<description></description>
	<lastBuildDate>Thu, 12 Aug 2010 14:09:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>On valgrind and tcmalloc</title>
		<link>http://mituzas.lt/2008/03/27/on-valgrind-and-tcmalloc/</link>
		<comments>http://mituzas.lt/2008/03/27/on-valgrind-and-tcmalloc/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 10:57:43 +0000</pubDate>
		<dc:creator>Domas Mituzas</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[heap]]></category>
		<category><![CDATA[leaks]]></category>
		<category><![CDATA[profiling]]></category>
		<category><![CDATA[tcmalloc]]></category>
		<category><![CDATA[valgrind]]></category>

		<guid isPermaLink="false">http://dammit.lt/?p=100</guid>
		<description><![CDATA[I already wrote about tcmalloc, and how it helped with memory fragmentation. This time had some experience with extended features &#8211; memory profiling and leak checker. With tcmalloc it is possible to get an overview as well as detailed reports &#8230; <a href="http://mituzas.lt/2008/03/27/on-valgrind-and-tcmalloc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I <a href='http://dammit.lt/2006/12/06/google-perftools-tcmalloc-squid/'>already wrote</a> about <a href='http://goog-perftools.sourceforge.net/doc/tcmalloc.html'>tcmalloc</a>, and how it helped with memory fragmentation. This time had some experience with extended features &#8211; memory profiling and leak checker. With tcmalloc it is possible to get an <a href='http://noc.wikimedia.org/~midom/mem.pdf'>overview</a> as well as detailed reports of what areas of memory are allocated for what uses. Even more, it can detect and <a href='http://flake.defau.lt/tcmallocheap.pdf'>report</a> any memory that leaked. Of course, <a href='http://valgrind.org/'>valgrind</a> does that too. With one slight difference:</p>
<ul>
<li>valgrind slows down applications 20-40 times (my tests ran 4s instead of 14ms)</li>
<li>tcmalloc does not. Same 14ms.</li>
</ul>
<p>I wrote some MySQL UDFs for profiling and heap checking management, so can extract per-thread single-test stuff. Will try to clean up and release. Would be shame not to. </p>
]]></content:encoded>
			<wfw:commentRss>http://mituzas.lt/2008/03/27/on-valgrind-and-tcmalloc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
