From 8f7939aeefab4113d677e0a2f3f497abfaa5f059 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 15 Jan 2001 06:45:01 +0000 Subject: [PATCH] Make NSWAPDEV reasonable so people do not mistakenly use unreasonable values when creating custom kernels from LINT. Suggested-by: "Louis A. Mamakos" --- sys/conf/NOTES | 7 ++++++- sys/i386/conf/NOTES | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 364543fac89e..5a8d17e7ab7b 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -710,7 +710,12 @@ options MD_ROOT options MD_NSECT=40000 # Allow this many swap-devices. -options NSWAPDEV=20 +# +# In order to manage swap, the system must reserve bitmap space that +# scales with the largest mounted swap device multiplied by NSWAPDEV, +# irregardless of whether other swap devices exist or not. So it +# is not a good idea to make this value too large. +options NSWAPDEV=4 # Disk quotas are supported when this option is enabled. options QUOTA #enable disk quotas diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES index 364543fac89e..5a8d17e7ab7b 100644 --- a/sys/i386/conf/NOTES +++ b/sys/i386/conf/NOTES @@ -710,7 +710,12 @@ options MD_ROOT options MD_NSECT=40000 # Allow this many swap-devices. -options NSWAPDEV=20 +# +# In order to manage swap, the system must reserve bitmap space that +# scales with the largest mounted swap device multiplied by NSWAPDEV, +# irregardless of whether other swap devices exist or not. So it +# is not a good idea to make this value too large. +options NSWAPDEV=4 # Disk quotas are supported when this option is enabled. options QUOTA #enable disk quotas