aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/boot/common/loader.87
-rw-r--r--sys/boot/forth/loader.conf1
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/boot/common/loader.8 b/sys/boot/common/loader.8
index e2cbf7c896621..5006eb72fa8ef 100644
--- a/sys/boot/common/loader.8
+++ b/sys/boot/common/loader.8
@@ -404,6 +404,13 @@ MIB variable.
Other variables are used to override kernel tunable parameters.
The following tunables are available:
.Bl -tag -width Va
+.It Va hw.physmem
+Limit the amount of phyiscal memory the system will use.
+By default the size is in bytes, but the k, K, m, M, g and G suffixes
+are also accepted and indicate kilobytes, megabytes and gigabytes
+respectively.
+An invalid suffix will result in the variable being ignored by the
+kernel.
.It Va kern.maxusers
Set the size of a number of statically allocated system tables; see
.Xr tuning 7
diff --git a/sys/boot/forth/loader.conf b/sys/boot/forth/loader.conf
index e04aa4a1c7c67..5bc2b0732baec 100644
--- a/sys/boot/forth/loader.conf
+++ b/sys/boot/forth/loader.conf
@@ -71,6 +71,7 @@ module_path="/boot/kernel;/boot/modules;/modules" # Set the module search path
### Kernel tunables ########################################
##############################################################
+#hw.physmem="1G" # Limit phyiscal memory. See loader(8)
#kern.maxusers="32" # Set size of various static tables
#kern.ipc.nmbclusters="" # Set the number of mbuf clusters
#kern.vm.kmem.size="" # Sets the size of kernel memory (bytes)