Re: Some questions about linux kernel.

From: Matthew Kirkwood (weejock@ferret.lmh.ox.ac.uk)
Date: Tue Mar 21 2000 - 10:30:00 EST


On Tue, 21 Mar 2000, Richard B. Johnson wrote:

> > > Malloc(), as stated before, just sets a new break address when it
> > > runs out of heap. It keeps track of the heap, but not very carefully.
> >
> > Not any more. Modern mallocs are a lot smarter. They also use mmap for
> > their backing store
>
> Certainly not the C runtime library distributed by RedHat.

> malloc(0x1000);

glibc's malloc() will use mmap() only to allocate large lumps.
(Currently the default is 128Kb or larger, I think.)

Matthew.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:33 EST