summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/vmparam.h
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1998-02-23 07:42:43 +0000
committerdyson <dyson@FreeBSD.org>1998-02-23 07:42:43 +0000
commitb77de226503076b55efebae9b92333cd8c2535d9 (patch)
treebdb3fd29c61030f23285407603dd71187d9b5400 /sys/i386/include/vmparam.h
parent7a5637f439561a817219e40be825525402c4ac18 (diff)
downloadFreeBSD-src-b77de226503076b55efebae9b92333cd8c2535d9.zip
FreeBSD-src-b77de226503076b55efebae9b92333cd8c2535d9.tar.gz
Try to dynamically size the VM_KMEM_SIZE (but is still able to be overridden
in a way identically as before.) I had problems with the system properly handling the number of vnodes when there is alot of system memory, and the default VM_KMEM_SIZE. Two new options "VM_KMEM_SIZE_SCALE" and "VM_KMEM_SIZE_MAX" have been added to support better auto-sizing for systems with greater than 128MB. Add some accouting for vm_zone memory allocations, and provide properly for vm_zone allocations out of the kmem_map. Also move the vm_zone allocation stats to the VM OID tree from the KERN OID tree.
Diffstat (limited to 'sys/i386/include/vmparam.h')
-rw-r--r--sys/i386/include/vmparam.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/sys/i386/include/vmparam.h b/sys/i386/include/vmparam.h
index 0764850..4f188d6 100644
--- a/sys/i386/include/vmparam.h
+++ b/sys/i386/include/vmparam.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91
- * $Id: vmparam.h,v 1.27 1997/10/27 00:38:46 jkh Exp $
+ * $Id: vmparam.h,v 1.28 1998/02/05 03:31:53 dyson Exp $
*/
@@ -117,7 +117,23 @@
/* virtual sizes (bytes) for various kernel submaps */
#ifndef VM_KMEM_SIZE
-#define VM_KMEM_SIZE (32 * 1024 * 1024)
+#define VM_KMEM_SIZE (12 * 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
+
+/*
+ * Ceiling on amount of kmem_map kva space.
+ */
+#ifndef VM_KMEM_SIZE_MAX
+#define VM_KMEM_SIZE_MAX (80 * 1024 * 1024)
#endif
/* initial pagein size of beginning of executable file */
OpenPOWER on IntegriCloud