summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2006-12-10 04:23:23 +0000
committermjacob <mjacob@FreeBSD.org>2006-12-10 04:23:23 +0000
commita3ec1a89dc8b524488d9ec1e008b37f31933ecea (patch)
tree1898ce039450ab37324f0987dbd3df2f40984cdf
parent6a6429aa4ca2dc8188ab000180a45809d622c0ba (diff)
downloadFreeBSD-src-a3ec1a89dc8b524488d9ec1e008b37f31933ecea.zip
FreeBSD-src-a3ec1a89dc8b524488d9ec1e008b37f31933ecea.tar.gz
Make MAXPHYS and DFLTPHYS options (finally).
-rw-r--r--sys/conf/NOTES15
-rw-r--r--sys/conf/options2
2 files changed, 17 insertions, 0 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index c603023..762648d 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -110,6 +110,21 @@ options DFLDSIZ=(1024UL*1024*1024)
#
options BLKDEV_IOSIZE=8192
+#
+# MAXPHYS and DFLTPHYS
+#
+# These are the max and default 'raw' I/O block device access sizes.
+# Reads and writes will be split into DFLTPHYS chunks. Some applications
+# have better performance with larger raw I/O access sizes. Typically
+# MAXPHYS should be twice the size of DFLTPHYS. Note that certain VM
+# parameters are derived from these values and making them too large
+# can make an an unbootable kernel.
+#
+# The defaults are 64K and 128K respectively.
+options DFLTPHYS=(64*1024)
+options MAXPHYS=(128*1024)
+
+
# Options for the VM subsystem
# Deprecated options supported for backwards compatibility
#options PQ_NOOPT # No coloring
diff --git a/sys/conf/options b/sys/conf/options
index 8a2ffe6..5053580 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -535,6 +535,8 @@ ENABLE_ALART opt_intpm.h
# These cause changes all over the kernel
BLKDEV_IOSIZE opt_global.h
+MAXPHYS opt_global.h
+DFLTPHYS opt_global.h
BURN_BRIDGES opt_global.h
DEBUG opt_global.h
DEBUG_LOCKS opt_global.h
OpenPOWER on IntegriCloud