[Mono-devel-list] [PATCH] Allocate the first set of io-layer handles in .bss

Ben Maurer bmaurer at ximian.com
Wed Feb 9 23:46:53 EST 2005


Hey guys,

I noticed that io-layer malloc's 80 some kb of ram on startup. Since
this is not big enough to merit malloc using mmap (how's that for
alliteration!) the 80 kb gets committed to real memory, and counted as
part of rss.

This patch fixes up the problem by allocating it as part of the .bss
section. It seems to reduce the rss size according to ps by about the
right amount.

-- Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: io-layer-bss-handle-list.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050209/833f21b2/attachment.bin 


More information about the Mono-devel-list mailing list