summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/vmparam.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-07-03 04:53:14 +0000
committeralc <alc@FreeBSD.org>2008-07-03 04:53:14 +0000
commit4ef7d0cd626301f42a9524824b5f48418a0fa12e (patch)
tree60738bea15234aaca4f921974172558c8fe141c6 /sys/amd64/include/vmparam.h
parent82cb212638bce4d20d1cba65822b7f787a4cfae0 (diff)
downloadFreeBSD-src-4ef7d0cd626301f42a9524824b5f48418a0fa12e.zip
FreeBSD-src-4ef7d0cd626301f42a9524824b5f48418a0fa12e.tar.gz
Increase the ceiling on the kmem map's size to 3.6GB. Also, define the
ceiling as a fraction of the kernel map's size rather than an absolute quantity. Thus, scaling of the kmem map's size will be automatic with changes to the kernel map's size.
Diffstat (limited to 'sys/amd64/include/vmparam.h')
-rw-r--r--sys/amd64/include/vmparam.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h
index 755a7d9..b209258 100644
--- a/sys/amd64/include/vmparam.h
+++ b/sys/amd64/include/vmparam.h
@@ -202,7 +202,8 @@
* Ceiling on amount of kmem_map kva space.
*/
#ifndef VM_KMEM_SIZE_MAX
-#define VM_KMEM_SIZE_MAX (400 * 1024 * 1024)
+#define VM_KMEM_SIZE_MAX ((VM_MAX_KERNEL_ADDRESS - \
+ VM_MIN_KERNEL_ADDRESS + 1) * 3 / 5)
#endif
/* initial pagein size of beginning of executable file */
OpenPOWER on IntegriCloud