summaryrefslogtreecommitdiffstats
path: root/sys/sun4v/include
diff options
context:
space:
mode:
authorsepotvin <sepotvin@FreeBSD.org>2007-04-21 01:14:48 +0000
committersepotvin <sepotvin@FreeBSD.org>2007-04-21 01:14:48 +0000
commita1e73b1eafb356ff4adba96fd8099c15c11471cd (patch)
tree7a4cb32527ec0601ac8912d8ef1baa9431ee0a67 /sys/sun4v/include
parenta1cba020dddfbcf1bcb0f4124b38e2255f16bdc9 (diff)
downloadFreeBSD-src-a1e73b1eafb356ff4adba96fd8099c15c11471cd.zip
FreeBSD-src-a1e73b1eafb356ff4adba96fd8099c15c11471cd.tar.gz
Add support for specifying a minimal size for vm.kmem_size in the loader via
vm.kmem_size_min. Useful when using ZFS to make sure that vm.kmem size will be at least 256mb (for example) without forcing a particular value via vm.kmem_size. Approved by: njl (mentor) Reviewed by: alc
Diffstat (limited to 'sys/sun4v/include')
-rw-r--r--sys/sun4v/include/vmparam.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sun4v/include/vmparam.h b/sys/sun4v/include/vmparam.h
index 1ee39bc..3b87bea 100644
--- a/sys/sun4v/include/vmparam.h
+++ b/sys/sun4v/include/vmparam.h
@@ -163,7 +163,8 @@
/*
* How many physical pages per KVA page allocated.
- * min(max(VM_KMEM_SIZE, Physical memory/VM_KMEM_SIZE_SCALE), VM_KMEM_SIZE_MAX)
+ * min(max(max(VM_KMEM_SIZE, Physical memory/VM_KMEM_SIZE_SCALE),
+ * VM_KMEM_SIZE_MIN), VM_KMEM_SIZE_MAX)
* is the total KVA space allocated for kmem_map.
*/
#ifndef VM_KMEM_SIZE_SCALE
OpenPOWER on IntegriCloud