[lkml]   [2004]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: mmap + mprotect + malloc strange behaviour
    Kaloian Manassiev wrote:

    >Nevermind, I found it :)
    >I just found out (by reading
    >that there is a limit on the number of mappings that a
    >process may have and that for some reason malloc
    >consumes mappings.
    >I just increased the limit by editing the file
    >/proc/sys/vm/max_map_count. This works okay for my
    >Does someone know what repercussions this could have
    >on the "normal" operation of the system?
    The glibc malloc heap switches to using mmap()/munmap() for large
    allocations (>=128kbytes ?). This behaviour can be turned off by setting;

    export MALLOC_MMAP_MAX_=0

    See also the mallopt() library call.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:04    [W:0.020 / U:3.964 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site