Welcome to MSDN Blogs Sign in | Join | Help

Can someone clear up the uncertainly regarding CG and the Large Object Heap?

The CLR's GC implementation has "troubles" with large objects. These do not get collected as part of the managed generations and that can cause all sorts of unpleasantness such as memory fragmentation or worse.  My app might be impacted by this since it implements file and image manipulations algorithms which employ large buffers.

The annoying part is not the limitation itself but the lack of documentation regarding this issue. There are quite a few newgroup discussions on GC theory etc,  but I have yet to find an authorative answer from someone on the CLR team. Various sources place the "magic breaking number" at anywhere from 20K to several megs, with the most popular figure being 85K. And other information such as scenarios, possible workarounds and performance metrics are almost impossible to come by. 

Does anyone have solid information regarding this issue?

 

Published Wednesday, July 16, 2003 8:24 PM by Addys

Comments

# re: Can someone clear up the uncertainly regarding CG and the Large Object Heap?

Wednesday, July 16, 2003 4:23 PM by Roy Osherove
try these disussions maybe..? :

http://www.dotnet247.com/247reference/msgs/27/135346.aspx

http://discuss.develop.com/archives/wa.exe?A2=ind0202A&L=DOTNET&P=R6843&I=-3

http://discuss.develop.com/archives/wa.exe?A2=ind0208A&L=DOTNET-CLR&P=R16238

http://discuss.develop.com/archives/wa.exe?A2=ind0208B&L=DOTNET-CLR&P=R4211&I=-3

# .NET Garbage Collector and a Volatile Trading Market

Thursday, February 26, 2004 4:40 AM by Code 'n' Stuff

# Extreme RAD from a Trading Desk

Tuesday, May 11, 2004 10:20 AM by TrackBack
Extreme RAD from a Trading Desk
New Comments to this post are disabled
 
Page view tracker