glibc/sysdeps/generic
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
..
bits Add <sys/auxv.h> and getauxval. 2012-05-20 10:40:35 -07:00
net Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
netinet Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
nfs Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
sys Split sys/param.h out into common file and sysdeps bits/param.h file. 2012-08-17 09:55:17 -07:00
_G_config.h Remove _G_HAVE_SYS_WAIT and _IO_HAVE_SYS_WAIT. 2012-09-21 10:02:03 +00:00
_itoa.h Remove use of INTDEF/INTUSE in stdio-common 2012-06-01 01:25:41 +02:00
a.out.h
abort-instr.h
aio_misc.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
allocalim.h
asm-syntax.h
bp-checks.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
bp-semctl.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
bp-start.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
bp-sym.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
bp-thunks.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
confstr.h
device-nrs.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dirstream.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-cache.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-dtprocnum.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-fptr.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-hash.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-irel.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-librecon.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-lookupcfg.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-machine.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-osinfo.h Fix another instance of the _dl_random masking bug, plus coding style. 2012-03-12 15:57:17 -07:00
dl-procinfo.c
dl-procinfo.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-sysdep.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
dl-tls.h
dwarf2.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
eloop-threshold.h Distinguish ELOOP diagnosis threshold from SYMLOOP_MAX. 2012-08-03 11:39:30 -07:00
entry.h
errqueue.h
fd_to_filename.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fork.h
fpu_control.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
frame.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
framestate.c move libgcc_s soname definition to shlib-versions 2012-04-26 09:19:54 +05:30
gccframe.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
get-rounding-mode.h Make strtod respect the rounding mode (bug 14518). 2012-09-12 23:36:19 +00:00
gmp-mparam.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
hp-timing.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
ifreq.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
ifunc-sel.h Move sysdeps/generic/elf/* to sysdeps/generic 2012-03-19 21:04:21 +01:00
intr-msg.h
inttypes.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
ldconfig.h Add x32 support to ldconfig 2012-03-16 15:20:45 -07:00
ldsodefs.h Fix lots of bitrot for stub configurations. 2012-07-30 16:34:33 -07:00
libcidn.abilist Add missed zero length files in previous abilist commit. 2012-04-28 15:38:24 -04:00
libm-test-ulps
libnss_compat.abilist Add missed zero length files in previous abilist commit. 2012-04-28 15:38:24 -04:00
libnss_db.abilist Add missed zero length files in previous abilist commit. 2012-04-28 15:38:24 -04:00
libnss_dns.abilist Add missed zero length files in previous abilist commit. 2012-04-28 15:38:24 -04:00
libnss_files.abilist Add missed zero length files in previous abilist commit. 2012-04-28 15:38:24 -04:00
libnss_hesiod.abilist Add missed zero length files in previous abilist commit. 2012-04-28 15:38:24 -04:00
libnss_nis.abilist Add missed zero length files in previous abilist commit. 2012-04-28 15:38:24 -04:00
libnss_nisplus.abilist Add missed zero length files in previous abilist commit. 2012-04-28 15:38:24 -04:00
local-setxid.h
localplt.data Move localplt baselines to sysdeps directories. 2012-07-20 19:20:34 +00:00
machine-gmon.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
machine-lock.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
machine-sp.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
Makefile Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
malloc-machine.h Make malloc build for no-threads configurations. 2012-08-17 11:29:45 -07:00
malloc-sysdep.h Shrink heap on linux when overcommit_memory == 2 2012-09-25 14:30:52 +05:30
math_ldbl_opt.h
math_ldbl.h
math_private.h Fix ilogb exception and errno (bug 6794) 2012-04-17 22:12:53 +02:00
memcopy.h Remove all traces of reg_char. 2012-04-18 16:19:10 -07:00
memusage.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
not-cancel.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
nscd-types.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
pagecopy.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
paths.h Hurd: Fix paths in paths.h 2012-05-10 15:57:29 -07:00
profil-counter.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
pty-private.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
register-dump.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
rtld-lowlevel.h
sigcontextinfo.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
siglist.h Don't assume SIGWINCH is defined. 2012-07-31 09:39:14 -07:00
sigset-cvt-mask.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
stackguard-macros.h Split up stackguard-macros.h into sysdeps directories. 2012-05-15 23:34:30 +00:00
stackinfo.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
stdint.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
symbol-hacks.h
sysdep-cancel.h
sysdep.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
testrtsig.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
thread_state.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tls-macros.h
tls.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-audit.h Move testsuite audit definitions to sysdeps tst-audit.h files. 2012-07-26 11:29:07 +00:00
tst-stack-align.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unsecvars.h
unwind-dw2-fde-glibc.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unwind-dw2-fde.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unwind-dw2-fde.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unwind-dw2.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unwind-pe.c
unwind-pe.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
unwind.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
utmp-equal.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00