[Gllug] mallinfo

Kostas Georgiou k.georgiou at imperial.ac.uk
Tue Oct 30 13:17:27 UTC 2007


On Tue, Oct 30, 2007 at 12:47:19PM +0000, t.clarke wrote:

> Thanks for the prompt responses, Guys !
> 
> Changing 'arena' for 'hblkhd' works a treat.
> 
> Since the code needs to run on both Unix and Linux I guess I will need to
> test if 'arena' is zero and if so report on 'hblkhd' instead, or maybe
> play safe and simply add both values together !

Add both of them, linux by default uses mmap only for allocations above
128k or so. It is configurable with mallopt or the env variables so you
can change the limits or even disable mmap if you don't care too much
about releasing memory back to the OS since sbrk is faster.

Kostas 
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list