summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-03-09 23:35:50 +0000
committerjake <jake@FreeBSD.org>2002-03-09 23:35:50 +0000
commit5f2da45bc710ac1c9b75828dd9b270a4059e5aa4 (patch)
tree48ba6df0aaa0cf0a696376c0a27b8c748e6c9b58 /sys/sparc64
parent00d9ca2b85c56e173b3d9d594abf5481fa2afb0a (diff)
downloadFreeBSD-src-5f2da45bc710ac1c9b75828dd9b270a4059e5aa4.zip
FreeBSD-src-5f2da45bc710ac1c9b75828dd9b270a4059e5aa4.tar.gz
Increase VM_KMEM_SIZE to 16 megs from 12. Define VM_KMEM_SIZE_SCALE so that
the number of physical pages per KVA page allocated scales properly with memory size. This fixes problems with kmem_map being too small. Noticed by: mike, wollman Submitted by: tmm
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/include/vmparam.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/sparc64/include/vmparam.h b/sys/sparc64/include/vmparam.h
index 614222e..3aff8a0 100644
--- a/sys/sparc64/include/vmparam.h
+++ b/sys/sparc64/include/vmparam.h
@@ -103,7 +103,16 @@
* Virtual size (bytes) for various kernel submaps.
*/
#ifndef VM_KMEM_SIZE
-#define VM_KMEM_SIZE (12*1024*1024)
+#define VM_KMEM_SIZE (16*1024*1024)
+#endif
+
+/*
+ * How many physical pages per KVA page allocated.
+ * min(max(VM_KMEM_SIZE, Physical memory/VM_KMEM_SIZE_SCALE), VM_KMEM_SIZE_MAX)
+ * is the total KVA space allocated for kmem_map.
+ */
+#ifndef VM_KMEM_SIZE_SCALE
+#define VM_KMEM_SIZE_SCALE (3)
#endif
/*
OpenPOWER on IntegriCloud