glibc/sysdeps/unix
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
..
bsd Make the bsd4.4/bits/fcntl.h be the generic one. 2012-08-07 14:12:10 -07:00
i386 Remove unused sysdeps/unix/i386 files. 2012-04-26 18:45:56 +00:00
inet Merge unix/inet/syscalls.list into unix/syscalls.list. 2012-08-17 12:56:33 -07:00
powerpc Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
sh SH: Add CFI directives. 2012-05-28 00:11:06 +02:00
sysv/linux Shrink heap on linux when overcommit_memory == 2 2012-09-25 14:30:52 +05:30
x86_64 Use RAX_LP and "or" to operate on return value 2012-05-18 11:05:56 -07:00
clock_gettime.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
clock_nanosleep.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
clock_settime.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
confstr.h
get_child_max.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
getlogin_r.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
getlogin.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
getpagesize.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
grantpt.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
Implies
make-syscalls.sh BZ#14138: Move getrlimit (ugetrlimit) syscall to syscalls.list. 2012-08-01 10:25:11 -07:00
Makefile BZ#14138: Move getrlimit (ugetrlimit) syscall to syscalls.list. 2012-08-01 10:25:11 -07:00
s-proto-bp.S
s-proto-cancel.S
s-proto.S
setxid.h Update. 2004-11-12 01:27:04 +00:00
sockatmark.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
stime.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
Subdirs
syscall-template.S Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
syscall.S Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
syscalls.list Merge unix/inet/syscalls.list into unix/syscalls.list. 2012-08-17 12:56:33 -07:00
sysdep.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00