glibc/malloc
Siddhesh Poyarekar 9fab36eb58 Shrink heap on linux when overcommit_memory == 2
Using madvise with MADV_DONTNEED to release memory back to the kernel
is not sufficient to change the commit charge accounted against the
process on Linux.  It is OK however, when overcommit is enabled or is
heuristic.  However, when overcommit is restricted to a percentage of
memory setting the contents of /proc/sys/vm/overcommit_memory as 2, it
makes a difference since memory requests will fail.  Hence, we do what
we do with secure exec binaries, which is to call mmap on the region
to be dropped with MAP_FIXED. This internally unmaps the pages in
question and reduces the amount of memory accounted against the
process.
2012-09-25 14:30:52 +05:30
..
arena.c Shrink heap on linux when overcommit_memory == 2 2012-09-25 14:30:52 +05:30
Depend
hooks.c Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0 2012-09-05 21:49:30 +05:30
Makefile Set "fail on error" mode directly in testsuite shell scripts 2012-09-25 02:48:31 +00:00
malloc.c Cleanup code duplication in malloc on fallback to use another arena 2012-09-07 14:40:58 +05:30
malloc.h
mallocbug.c
mcheck-init.c
mcheck.c * malloc/arena.c: Fold copyright years. 2012-09-05 20:47:16 -03:00
mcheck.h
memusage.c * malloc/arena.c: Fold copyright years. 2012-09-05 20:47:16 -03:00
memusage.sh
memusagestat.c
morecore.c
mtrace.c Rename __secure_getenv to secure_getenv 2012-07-25 19:46:22 +02:00
mtrace.pl
obstack.c
obstack.h
set-freeres.c
thread-freeres.c
tst-calloc.c
tst-malloc-usable.c Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0 2012-09-05 21:49:30 +05:30
tst-malloc.c
tst-mallocfork.c
tst-mallocstate.c
tst-mcheck.c
tst-mtrace.c
tst-mtrace.sh Set "fail on error" mode directly in testsuite shell scripts 2012-09-25 02:48:31 +00:00
tst-obstack.c
tst-trim1.c
tst-valloc.c
Versions