<?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>Using GC Efficiently – Part 3</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx</link><description>In this article I’ll talk about pinning and weak references – stuff related to GC handles. (I was planning on talking about finalization in this part of the “Using GC Efficiently” series but since I already covered it in pretty much detail in one of my</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Network streams and pinning</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#327374</link><pubDate>Mon, 20 Dec 2004 15:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:327374</guid><dc:creator>Bernd</dc:creator><description>In my experience, using a network stream results in a pinned 4k byte array. Does anybody have suggestions how to avoid fragmentation of the heap in an application that uses many network connections? Especially in a &amp;quot;unstable&amp;quot; environment, where lots of connections get lost (and therefor lots of new connections are created).&lt;br&gt;&lt;br&gt;Or did I miss something and you can open a network connection without havin to deal with those pinned arrays?&lt;br&gt;&lt;br&gt;Have a nice day,&lt;br&gt;Bernd Rausch</description></item><item><title>re: Using GC Efficiently – Part 3</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#327411</link><pubDate>Mon, 20 Dec 2004 17:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:327411</guid><dc:creator>Jeroen Frijters</dc:creator><description>Re using WeakReference for post-mortem cleanup, Java has the ReferenceQueue concept for this (when a weak reference is cleared it gets posted to the queue by the GC). Any chance the CLR will ever get something similar?</description></item><item><title>New and Notable 68</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#328485</link><pubDate>Tue, 21 Dec 2004 14:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:328485</guid><dc:creator>Sam Gentile's Blog</dc:creator><description /></item><item><title>.::Szőkelizer 114::.</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#328555</link><pubDate>Tue, 21 Dec 2004 15:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:328555</guid><dc:creator>RIO - Randektív Informatikai Oldal</dc:creator><description>&amp;lt;p&amp;gt;&amp;amp;lt;ul&amp;amp;gt;&amp;amp;lt;li&amp;amp;gt;&amp;amp;lt;a href=&amp;amp;quot;http://wah.onterra.net/blog/archive/2004/12/20/195.aspx&amp;amp;quot; target=&amp;amp;quot;_blank&amp;amp;quot;&amp;amp;gt;.NET User interface for Tracking down managed memory leaks&amp;amp;lt;/a&amp;amp;gt;&amp;amp;lt;/li&amp;amp;gt;&amp;amp;lt;li&amp;amp;gt;&amp;amp;lt;a href=&amp;amp;quot;http://www.microso</description></item><item><title>New and Notable 68</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#329109</link><pubDate>Tue, 21 Dec 2004 22:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:329109</guid><dc:creator>Sam Gentile's Blog</dc:creator><description /></item><item><title>re: Using GC Efficiently – Part 3</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#329666</link><pubDate>Wed, 22 Dec 2004 08:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:329666</guid><dc:creator>Ole Thrane</dc:creator><description>I like your ideas on caching, but I see a big problem. Only the GC knows when memory is running out. A cache can always be 'overrun' or it might be accepting new entries even though all memory has been used by other parts of the application.&lt;br&gt;&lt;br&gt;For instance, it is widely known that it very easy to overrun the ASP.NET cache, causing OutOfMemory exceptions in the application.&lt;br&gt;&lt;br&gt;I see two potential solutions for this problem:&lt;br&gt;&lt;br&gt;1. Provide an API for querying the GC about the current memory pressure. The GC.GetTotalMemory() is not accurate and does not reflect the entire amount of memory being used by the process. The ideal API would include events raised by the GC whenever memory was becoming sparse.&lt;br&gt;&lt;br&gt;2. A new object type: 'MediumReference'. It should work in the same way as WeakReference except that the objects pointed to should only be collected when memory pressure is high.&lt;br&gt;&lt;br&gt;I definitely prefer solution 2. It would make building caches so much more simple and failure proof.&lt;br&gt;&lt;br&gt;Of course, having both 1 and 2 would be totally awesome...&lt;br&gt;</description></item><item><title>OdeToCode Links For Dec 22</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#331022</link><pubDate>Thu, 23 Dec 2004 06:43:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:331022</guid><dc:creator>OdeToCode Link Blog</dc:creator><description /></item><item><title>re: Using GC Efficiently – Part 3</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#344013</link><pubDate>Thu, 30 Dec 2004 00:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:344013</guid><dc:creator>Maoni</dc:creator><description>Sorry to reply late - I've been sick in the past few days.&lt;br&gt;&lt;br&gt;Bernd, I believe if you are using the raw socket I/O you do have control over the buffers so you can have a buffer pool and reuse buffers as I suggested; if you are using something that uses I/O for you, for example, remoting, you don't have control over the buffers. We are aware of this problem and trying to find resources to work on it.&lt;br&gt;&lt;br&gt;Jeroen, I am not familiar with it enough to tell you if we are going to implement it or not. It does sound interestingi but it would be good to see how popular it is being used. &lt;br&gt;&lt;br&gt;Ole, you can get the memory pressure of the machine by calling GlobalMemoryStatusEx. I was planning on working on a built in cache class for WinFX that could provide options of cleaning up based on memory pressure and other characteristics.</description></item><item><title>Garbage Collector Toast</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#411624</link><pubDate>Mon, 25 Apr 2005 10:21:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:411624</guid><dc:creator>Anderson on...</dc:creator><description /></item><item><title>Garbage Collector Toast</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#411625</link><pubDate>Mon, 25 Apr 2005 10:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:411625</guid><dc:creator>Anderson on...</dc:creator><description /></item><item><title>Garbage Collection Articles: an updated list</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#443592</link><pubDate>Wed, 27 Jul 2005 00:52:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:443592</guid><dc:creator>Steve Hebert's Development Blog</dc:creator><description>I previously blogged about a set must-read garbage collection articles&amp;amp;amp;nbsp;and issues around directly...</description></item><item><title>Use object pooling of byte arrays to prevent heap fragmentation in socket applications</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#454023</link><pubDate>Sat, 20 Aug 2005 16:18:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:454023</guid><dc:creator>adarshk's WebLog - .net network programing</dc:creator><description>When&amp;amp;amp;nbsp;you are worrking on&amp;amp;amp;nbsp;managed socket application and your application is very extensively&amp;amp;amp;nbsp;doing...</description></item><item><title>Using GC Efficiently - Maoni Stephens</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#455688</link><pubDate>Wed, 24 Aug 2005 20:52:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:455688</guid><dc:creator>Gaurav's Database...</dc:creator><description>Using GC Efficiently – Part 1 &lt;br&gt;Using GC Efficiently – Part 2 &lt;br&gt;Using GC Efficiently – Part 3 &lt;br&gt;Using...</description></item><item><title>Large Object Heap</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#578740</link><pubDate>Wed, 19 Apr 2006 07:52:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:578740</guid><dc:creator>Maoni's WebLog</dc:creator><description>LOH (Large Object Heap) contains objects that are 85,000 bytes or bigger (there’s also some objects that...</description></item><item><title>Garbage Collection - Learns .NET</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#587138</link><pubDate>Sun, 30 Apr 2006 19:34:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:587138</guid><dc:creator>Garbage Collection - Learns .NET</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://kenny-tran.com/blog/net-framework/garbage-collection/"&gt;http://kenny-tran.com/blog/net-framework/garbage-collection/&lt;/a&gt;</description></item><item><title>Using GC Efficiently</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#595596</link><pubDate>Thu, 11 May 2006 22:40:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:595596</guid><dc:creator>Eric Gunnerson's C# Compendium</dc:creator><description>Spending lots of time on C++ means I haven't been paying as much attention to managed code as I did in...</description></item><item><title>An excellent series of articles by Maoni about the Garbage Collection</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#597383</link><pubDate>Sun, 14 May 2006 15:18:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:597383</guid><dc:creator>.Net Adventures </dc:creator><description>&lt;br&gt;Using GC &lt;br&gt;Efficiently Part 1Maoni explains the cost of things so you can make good &lt;br&gt;decisions in...</description></item><item><title>Cow Powered  &amp;raquo; Blog Archive  
	 &amp;raquo; Garbage collection</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#597846</link><pubDate>Mon, 15 May 2006 12:03:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:597846</guid><dc:creator>Cow Powered  » Blog Archive  
	 » Garbage collection</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://cowpowered.com/blog/?p=13"&gt;http://cowpowered.com/blog/?p=13&lt;/a&gt;</description></item><item><title>  An excellent series of articles by Maoni about the Garbage Collection  at  TR</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#709530</link><pubDate>Sun, 20 Aug 2006 21:15:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:709530</guid><dc:creator>  An excellent series of articles by Maoni about the Garbage Collection  at  TR</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://www.target-russia.org/computers-internet/net/an-excellent-series-of-articles-by-maoni-about-the-garbage-collection/"&gt;http://www.target-russia.org/computers-internet/net/an-excellent-series-of-articles-by-maoni-about-the-garbage-collection/&lt;/a&gt;</description></item><item><title>Large Object Heap</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#1041876</link><pubDate>Thu, 09 Nov 2006 04:06:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1041876</guid><dc:creator>Maoni's WebLog</dc:creator><description>&lt;p&gt;LOH (Large Object Heap) contains objects that are 85,000 bytes or bigger (there’s also some objects that&lt;/p&gt;
</description></item><item><title>He’s live… he’s live not… he’s live…</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#1923293</link><pubDate>Wed, 21 Mar 2007 08:18:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1923293</guid><dc:creator>Maoni's WebLog</dc:creator><description>&lt;p&gt;I was making some code changes today and thought this was interesting to share. As you know, the WeakReference&lt;/p&gt;
</description></item><item><title>Top 20 .NET Garbage Collection (GC) Articles</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#3452763</link><pubDate>Fri, 22 Jun 2007 07:40:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3452763</guid><dc:creator>roy ashbrook</dc:creator><description>&lt;p&gt;Ah. Garbage Collection... how I love and hate thee. =P I think one sad thing about programming in .net&lt;/p&gt;
</description></item><item><title>Top 20 .NET Garbage Collection (GC) Articles</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#3452792</link><pubDate>Fri, 22 Jun 2007 07:43:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3452792</guid><dc:creator>roy ashbrook</dc:creator><description>&lt;p&gt;Ah. Garbage Collection... how I love and hate thee. =P I think one sad thing about programming in .net&lt;/p&gt;
</description></item><item><title>Please read</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#4828006</link><pubDate>Sat, 08 Sep 2007 15:00:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4828006</guid><dc:creator>Issa Ghaith</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.all-things-about.blogspot.com"&gt;http://www.all-things-about.blogspot.com&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>An excellent series of articles by Maoni about the Garbage Collection | devintelligence.com</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#8771584</link><pubDate>Fri, 25 Jul 2008 10:59:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8771584</guid><dc:creator>An excellent series of articles by Maoni about the Garbage Collection | devintelligence.com</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www19.a2hosting.com/~tarasn/devintelligence.com/?p=755"&gt;http://www19.a2hosting.com/~tarasn/devintelligence.com/?p=755&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>   [??????]??????Top 20 .NET Garbage Collection (GC) ??????  : ????????????????????? TAHETA.ORG</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#9249916</link><pubDate>Tue, 23 Dec 2008 15:43:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9249916</guid><dc:creator>   [??????]??????Top 20 .NET Garbage Collection (GC) ??????  : ????????????????????? TAHETA.ORG</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.taheta.org/?p=94"&gt;http://www.taheta.org/?p=94&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>.NET Memory Management – Resources</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#9304886</link><pubDate>Sun, 11 Jan 2009 02:40:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9304886</guid><dc:creator>Scott Dorman's Blog</dc:creator><description>&lt;p&gt;Note : This entry was originally posted on 9/14/2008 5:16:11 PM. I present at a lot of the local Florida&lt;/p&gt;
</description></item><item><title>The Inquisitive Coder - Davy Brion&amp;#8217;s Blog  &amp;raquo; Blog Archive   &amp;raquo; Great Links On Using Garbage Collection Efficiently</title><link>http://blogs.msdn.com/maoni/archive/2004/12/19/327149.aspx#9306218</link><pubDate>Sun, 11 Jan 2009 22:24:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9306218</guid><dc:creator>The Inquisitive Coder - Davy Brion&amp;#8217;s Blog  &amp;raquo; Blog Archive   &amp;raquo; Great Links On Using Garbage Collection Efficiently</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://davybrion.com/blog/2009/01/great-links-on-using-garbage-collection-efficiently/"&gt;http://davybrion.com/blog/2009/01/great-links-on-using-garbage-collection-efficiently/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>