<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx</link><description>Once two programs do this, you are screwed.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx#10259603</link><pubDate>Mon, 23 Jan 2012 12:51:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10259603</guid><dc:creator>Kirill</dc:creator><description>&lt;p&gt;As long as my program is &amp;quot;Program 10&amp;quot;, I don&amp;#39;t see what the problem is...&lt;/p&gt;
&lt;p&gt;*trollface*&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10259603" width="1" height="1"&gt;</description></item><item><title>re: Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx#10259275</link><pubDate>Sat, 21 Jan 2012 20:10:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10259275</guid><dc:creator>Hear</dc:creator><description>&lt;p&gt;It reminds me of a time I couldn&amp;#39;t hear what someone was saying, so I came closer and told him to repeat, so he spoke again, but more silently (since I was closer).&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t hear him again, so I got even closer... (guess what he did)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10259275" width="1" height="1"&gt;</description></item><item><title>re: Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx#10259214</link><pubDate>Sat, 21 Jan 2012 10:53:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10259214</guid><dc:creator>640k</dc:creator><description>&lt;p&gt;2 refrigerators is enough for everyone.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10259214" width="1" height="1"&gt;</description></item><item><title>re: Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx#10258907</link><pubDate>Fri, 20 Jan 2012 17:13:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10258907</guid><dc:creator>user</dc:creator><description>&lt;p&gt;I hope IE guys read your blog.&lt;/p&gt;
&lt;p&gt;As I&amp;#39;m writing this there ar three iexplorer processes on my machine consuming 48, 7 and 32 mb of memory for keeping 4 tabs open, 3 from your weblog and one for that amazon thing, let&amp;#39;s close that amazon tab ... hmm the first process releases 4mb of memory, let&amp;#39;s close a tab from your weblog ... another 8 mb released. now IE is consuming almost 75 mb of memory just to display two pages of your blog.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10258907" width="1" height="1"&gt;</description></item><item><title>re: Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx#10258866</link><pubDate>Fri, 20 Jan 2012 15:30:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10258866</guid><dc:creator>SheepNine</dc:creator><description>&lt;p&gt;Is it mere coincidence that it is the BLUE process whimpering fetally in the corner while the PINK process proceeds to consume huge swaths of available RAM?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10258866" width="1" height="1"&gt;</description></item><item><title>re: Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx#10258798</link><pubDate>Fri, 20 Jan 2012 10:50:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10258798</guid><dc:creator>Danny</dc:creator><description>&lt;p&gt;Ray, isn&amp;#39;t this just another variation of walls and ladders game with a twist?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10258798" width="1" height="1"&gt;</description></item><item><title>re: Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx#10258651</link><pubDate>Thu, 19 Jan 2012 21:46:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10258651</guid><dc:creator>lefty</dc:creator><description>&lt;p&gt;Clearly the solution to this problem is to set your memory threshold level at something like 5% so you end up shutting out both Program A and Program B. As the author of Program C, I sure don&amp;#39;t care about their performance.&lt;/p&gt;
&lt;p&gt;And the solution to Raymond&amp;#39;s &amp;#39;too much food&amp;#39; problem is to send the in-laws to my place. &amp;nbsp;I love free food (maybe not fish eyes, though).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10258651" width="1" height="1"&gt;</description></item><item><title>re: Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx#10258520</link><pubDate>Thu, 19 Jan 2012 15:46:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10258520</guid><dc:creator>Skyborne</dc:creator><description>&lt;p&gt;&amp;gt; swapping to a local file&lt;/p&gt;
&lt;p&gt;And by that I actually mean a &amp;quot;private&amp;quot; file, but that brings up another point: what if your cache is accidentally on a network filesystem?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10258520" width="1" height="1"&gt;</description></item><item><title>re: Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx#10258518</link><pubDate>Thu, 19 Jan 2012 15:44:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10258518</guid><dc:creator>Skyborne</dc:creator><description>&lt;p&gt;@Ken Hagan, I was thinking along those same lines, but it seems like Program 20 wants *discard* under pressure to implement a weak cache (and probably some strong-&amp;gt;weak cache management in-app so that the entire cache doesn&amp;#39;t drop and cause thrashing as it gets re-populated and immediately re-dropped under continuing pressure), but everything I know of (esp. on linux) creates *swap* under pressure behavior.&lt;/p&gt;
&lt;p&gt;mmap is actually worse, because you get swapping to a local file, maybe on volume manager / encryption / software raid / an ssd that the user doesn&amp;#39;t actually want you swapping your cache to all the time.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10258518" width="1" height="1"&gt;</description></item><item><title>re: Don't try to allocate memory until there is only x% free</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/01/18/10257834.aspx#10258506</link><pubDate>Thu, 19 Jan 2012 15:11:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10258506</guid><dc:creator>Larry Hosken</dc:creator><description>&lt;p&gt;cheong00&amp;#39;s onto something. When your in-laws leave, you might want to hold an Iron Chef contest/potluck party. Early on some Saturday, you divvy up the left-behind food amongst some friends. That evening, they need to bring back dishes they cooked that incorporates that food. Then comes a dinner party/contest judging.&lt;/p&gt;
&lt;p&gt;Heck, maybe don&amp;#39;t wait until the in-laws leave. They probably bring food that they like to cook with. They might do well in the contest and thus feel happy.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10258506" width="1" height="1"&gt;</description></item></channel></rss>