[Mono-list] understanding heap-buddy output

Sean Dague sean at dague.net
Fri Jun 6 15:14:56 EDT 2008


We're trying to figure out why OpenSim (http://opensimulator.org) takes
many times as much memory to run on Mono as .NET.  As part of that we've
gotten someone run heap-buddy on one of the busier regions on
http://osgrid.org.  We got a crash early on, but got some data out of
heap buddy.  It does sort of confuse me though, and any help would be
appreciated in understanding the first couple of lines, as unless that
is just some odd artifact, that seems very bad:

                  Type                      #     Total    AvSz  AvAge BT#
System.ComponentMo...hangedEventHandler 32020768 1587.9M    52.0   0.1 649
System.ComponentMo...ChangeEventHandler 32012000 1587.5M    52.0   0.1 5
                                 string  9910548  759.8M    80.4   3.3 8229
OpenSim.Region.Env...r/OnBackupDelegate  2229214  110.5M    52.0   0.0 4
                                  int[]    82657   47.3M   600.1  63.8 4029
                               object[]   171957   33.3M   203.0  26.0 7500
                                 byte[]   686457   22.6M    34.5  11.6 993
                                 char[]   678077   21.5M    33.3   0.1 1529
                                 double   835002   12.7M    16.0   1.3 69
                                 uint[]    82166   11.2M   142.4   5.9 56
System.Collections...t/SimpleEnumerator   415279    9.5M    24.0   0.0 1557
                                    int   813089    9.3M    12.0   0.5 1047
OpenSim.Region.Phy...ager.PhysicsVector   485803    9.3M    20.0   3.4 207
                        System.MonoType   171790    6.7M    40.9   3.9 924
                                 Vertex   326340    6.2M    20.0   0.5 355
 OpenSim.Region.Physics.Meshing.Simplex   289228    4.4M    16.0   0.0 106
                 libsecondlife.LLUUID[]    20592    4.4M   222.8 165.8 81
OpenSim.Region.Phy....Meshing.Simplex[]    86840    4.3M    52.1   0.0 51
OpenSim.Region.Env...es.SceneObjectPart     8000    4.2M   544.0 152.1 2
                               double[]      285    4.0M 14653.8  30.4 75
                               Triangle   127472    3.9M    32.0   2.8 46
                               single[]     1356    3.8M  2947.9   7.4 21
                    System.Data.DataRow    60993    3.3M    56.0  70.3 35
     System.Data.DataRowChangeEventArgs   211968    3.2M    16.0   0.0 132
                                   long   169468    2.6M    16.0   1.8 13

(skipped 1385 types)
-- 
__________________________________________________________________

Sean Dague                                       Mid-Hudson Valley
sean at dague dot net                            Linux Users Group
http://dague.net                                 http://mhvlug.org

There is no silver bullet.  Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20080606/ff69a2ed/attachment.bin 


More information about the Mono-list mailing list