On Monday 16 August 2010 06:48:56 Ashish Goel wrote: > do u have a refenrce for that, i am more interested in knowing how heap > manager intracts with VMM
Have a look at this: http://mxr.mozilla.org/mozilla-central/source/memory/jemalloc/jemalloc.c Quoting from the Linux malloc(3) page: "Normally, malloc() allocates memory from the heap, and adjusts the size of the heap as required, using sbrk(2). When allocating blocks of memory larger than MMAP_THRESHOLD bytes, the glibc malloc() implementation allocates the memory as a private anonymous mapping using mmap(2). MMAP_THRESHOLD is 128 kB by default, but is adjustable using mallopt(3). Allocations performed using mmap(2) are unaffected by the RLIMIT_DATA resource limit (see getrlimit(2))." mmap() being the interaction you are looking for ... -- Mihai Donțu -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.