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 <> wrote:
Is 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 and also attached
to this mail, as it's so small.

[ Soc. => | ]
[ Mehr => ]
[ Chat => Jabber: | Google Talk: ]
[ Mehr => MSN: | Yahoo!: askwar | ICQ: 350677419 ]

Sent from: Schaffhausen Schaffhausen Schweiz.
zones-discuss mailing list

Reply via email to