summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authormjacob <mjacob@cvs.openbsd.org>2000-04-07 21:05:06 +0000
committermjacob <mjacob@cvs.openbsd.org>2000-04-07 21:05:06 +0000
commit2be85821416175baab2116541e7acc745d3e02aa (patch)
tree8f41de2ce5ef4833a23246fc2f1e21babcc581ad /sys/arch
parentf11f4a7dbafbd6400a9fa3cdf96b7c9ea0864e22 (diff)
Protect MAXPHYS against redefinition- this allows you to make a config
option for increasing it to something reasonable for large I/O subsystems (you get 22MB/s on some of the DataDirect RAID arrays at 64K, about 37MB/s when you get go to 256KB transfers).
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/include/param.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/include/param.h b/sys/arch/i386/include/param.h
index ed1128db081..6d32250764f 100644
--- a/sys/arch/i386/include/param.h
+++ b/sys/arch/i386/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.10 2000/02/22 19:27:48 deraadt Exp $ */
+/* $OpenBSD: param.h,v 1.11 2000/04/07 21:05:05 mjacob Exp $ */
/* $NetBSD: param.h,v 1.29 1996/03/04 05:04:26 cgd Exp $ */
/*-
@@ -82,7 +82,9 @@
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
#define DEV_BSIZE (1 << DEV_BSHIFT)
#define BLKDEV_IOSIZE 2048
+#ifndef MAXPHYS
#define MAXPHYS (64 * 1024) /* max raw I/O transfer size */
+#endif
#define CLSIZELOG2 0
#define CLSIZE (1 << CLSIZELOG2)