From a32d2d99c4b9cd75a6209e1c6516e8632e465377 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Thu, 4 May 2000 07:48:40 +0000 Subject: [PATCH] Increase the initial size of a RAID-5 plex lock table to 256 entries, which seems to correspond better with what a busy plex needs. This may also help us avoid race conditions when expanding the table which may have been contributing to the random corruption, panics and hangs we've been seeing in RAID-5 plexes, particularly with ata drives. Eagerly-awaited-by: sos --- sys/dev/vinum/vinumvar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/vinum/vinumvar.h b/sys/dev/vinum/vinumvar.h index 703da914088..3865e1256b3 100644 --- a/sys/dev/vinum/vinumvar.h +++ b/sys/dev/vinum/vinumvar.h @@ -37,7 +37,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumvar.h,v 1.21 1999/10/12 04:39:08 grog Exp grog $ + * $Id: vinumvar.h,v 1.24 2000/03/01 02:34:57 grog Exp grog $ * $FreeBSD$ */ @@ -166,7 +166,7 @@ enum constants { INITIAL_SUBDISKS_IN_DRIVE = 4, /* number of subdisks to allocate to a drive */ INITIAL_DRIVE_FREELIST = 16, /* number of entries in drive freelist */ PLEX_REGION_TABLE_SIZE = 8, /* number of entries in plex region tables */ - INITIAL_LOCKS = 64, /* number of locks to allocate to a plex */ + INITIAL_LOCKS = 256, /* number of locks to allocate to a plex */ MAX_REVIVE_BLOCKSIZE = 65536, /* maximum revive block size */ DEFAULT_REVIVE_BLOCKSIZE = 65536, /* default revive block size */ VINUMHOSTNAMELEN = 32, /* host name field in label */