From c9403fdacdeb8ef4c5d8ca5639db5c654a7acd99 Mon Sep 17 00:00:00 2001 From: mjacob Date: Fri, 7 Apr 2000 21:05:05 +0000 Subject: [PATCH] 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). --- sys/arch/i386/include/param.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.20.1