Not sure. It's been like half a lifetime since I have written any C
code, but somewhere in some dust-covered brain cells I have a
recollection that a malloc doesn't actually consume the memory until
the memory is actually populated, probably as being a linked-list type
data structure. I really am not sure if this is correct or just
severely historic knowledge.
Alexander Skwar wrote:
On Wed, Mar 11, 2009 at 15:44, Paul Davis <paul.da...@sun.com>
there a tool available that can incrementally consume memory in a zone?
How about just doing malloc() calls until you hit your
limit? Or is that a flawed approach?
I wrote a small program which does just that; you can
find it at http://askwar.pastebin.ca/1336018
and also attached
to this mail, as it's so small.
[ Soc. => http://twitter.com/alexs77 | http://www.plurk.com/alexs77
[ Mehr => http://zyb.com/alexws77
[ Chat => Jabber: alexw...@jabber80.com | Google
[ Mehr => MSN: alexw...@live.de | Yahoo!: askwar |
ICQ: 350677419 ]
Sent from: Schaffhausen Schaffhausen Schweiz.
zones-discuss mailing list