Messages in this thread | | | Date | Tue, 21 Mar 2000 08:09:36 -0500 (EST) | From | George <> | Subject | Re: Some questions about linux kernel. |
| |
On Tue, 21 Mar 2000, Richard B. Johnson wrote:
>On Tue, 21 Mar 2000, Alan Cox 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.
There's a limit to the size. If you allocated 1,024 bytes it wouldn't be worth the mmap(). Check out malloc.h for M_MMAP_THRESHOLD and mallopt(). I can't remember the number off-hand.
-George Greer
- 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/
| |