<?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: Reservoir sampling and performance considerations</title>
	<atom:link href="http://huddledmasses.org/reservoir-sampling-and-performance-considerations/feed/" rel="self" type="application/rss+xml" />
	<link>http://huddledmasses.org/reservoir-sampling-and-performance-considerations/</link>
	<description>You can do more than breathe for free...</description>
	<lastBuildDate>Fri, 03 Feb 2012 03:27:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Joel 'Jaykul' Bennett</title>
		<link>http://huddledmasses.org/reservoir-sampling-and-performance-considerations/comment-page-1/#comment-138675</link>
		<dc:creator>Joel 'Jaykul' Bennett</dc:creator>
		<pubDate>Wed, 23 Jan 2008 14:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/reservoir-sampling-and-performance-considerations/#comment-138675</guid>
		<description>Actually, I did run every test in it&#039;s own process, sequentially rather than all at once, to make sure they had a situation that was as similar to each other as possible ... I was watching memory use in the Task Manager and checking Working Set, and Peak Working Set, as well as the Private Working Set.

In this case (and, I suspect, ain any case like this) the numbers are essentially the same for the Working Set at the end of the script and the Peak Working Set -- at most a few Kb difference on a process using over 180Mb -- I just went with what I thought was the simple number because the differences were so small.

Actually, it&#039;s an interesting side effect of non-deterministic garbage collection (and having plenty of RAM) that it takes a couple of minutes for the Working Set memory to start coming down from it&#039;s peak unless you start thrashing RAM with some other application.</description>
		<content:encoded><![CDATA[<p>Actually, I did run every test in it&#8217;s own process, sequentially rather than all at once, to make sure they had a situation that was as similar to each other as possible &#8230; I was watching memory use in the Task Manager and checking Working Set, and Peak Working Set, as well as the Private Working Set.</p>
<p>In this case (and, I suspect, ain any case like this) the numbers are essentially the same for the Working Set at the end of the script and the Peak Working Set &#8212; at most a few Kb difference on a process using over 180Mb &#8212; I just went with what I thought was the simple number because the differences were so small.</p>
<p>Actually, it&#8217;s an interesting side effect of non-deterministic garbage collection (and having plenty of <span class="caps">RAM</span>) that it takes a couple of minutes for the Working Set memory to start coming down from it&#8217;s peak unless you start thrashing <span class="caps">RAM</span> with some other application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Sotnikov</title>
		<link>http://huddledmasses.org/reservoir-sampling-and-performance-considerations/comment-page-1/#comment-138269</link>
		<dc:creator>Dmitry Sotnikov</dc:creator>
		<pubDate>Mon, 21 Jan 2008 14:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/reservoir-sampling-and-performance-considerations/#comment-138269</guid>
		<description>Quick question Joel, why not use PeakWorkingSet rather than just WorkingSet when detecting the memory consumption? This would show peak consumption regardless of how Windows frees up memory, right?

Of course you&#039;ll need to start the tests in different processes to make sure that you don&#039;t get the same peak over and over. ;)

Just my two cents.

Dmitry</description>
		<content:encoded><![CDATA[<p>Quick question Joel, why not use PeakWorkingSet rather than just WorkingSet when detecting the memory consumption? This would show peak consumption regardless of how Windows frees up memory, right?</p>
<p>Of course you&#8217;ll need to start the tests in different processes to make sure that you don&#8217;t get the same peak over and over.  <img src='http://huddledmasses.org/wordpress/wp-includes/' alt=';)' class='wp-smiley' /> </p>
<p>Just my two cents.</p>
<p>Dmitry</p>
]]></content:encoded>
	</item>
</channel>
</rss>

