summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2011-02-24 09:22:56 +0000
committerpluknet <pluknet@FreeBSD.org>2011-02-24 09:22:56 +0000
commit3061aea0d28ba07288dbcf07855fb6560587e53d (patch)
tree0d4aa83738a0ccb309e6c0a886f926e5ed06854c /lib/libc
parent7e21857a467b489be83f79ca1e430863445d8863 (diff)
downloadFreeBSD-src-3061aea0d28ba07288dbcf07855fb6560587e53d.zip
FreeBSD-src-3061aea0d28ba07288dbcf07855fb6560587e53d.tar.gz
Remove sysctl vm.max_proc_mmap used to protect from KVA space exhaustion.
As it was pointed out by Alan Cox, that no longer serves its purpose with the modern UMA allocator compared to the old one used in 4.x days. The removal of sysctl eliminates max_proc_mmap type overflow leading to the broken mmap(2) seen with large amount of physical memory on arches with factually unbound KVA space (such as amd64). It was found that slightly less than 256GB of physmem was enough to trigger the overflow. Reviewed by: alc, kib Approved by: avg (mentor) MFC after: 2 months
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/mmap.23
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index 0b1f35f..5e0c226 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -346,9 +346,6 @@ was specified and the
argument was not available.
.Dv MAP_ANON
was specified and insufficient memory was available.
-The system has reached the per-process mmap limit specified in the
-.Va vm.max_proc_mmap
-sysctl.
.El
.Sh SEE ALSO
.Xr madvise 2 ,
OpenPOWER on IntegriCloud