From owner-freebsd-questions Thu Aug 30 18:24: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp-2.enteract.com (smtp-2.enteract.com [207.229.143.4]) by hub.freebsd.org (Postfix) with ESMTP id 2847037B401 for ; Thu, 30 Aug 2001 18:23:56 -0700 (PDT) (envelope-from nasby@enteract.com) Received: from shell-1.enteract.com (shell-1.enteract.com [207.229.143.40]) by smtp-2.enteract.com (Postfix) with ESMTP id 71B20643D; Thu, 30 Aug 2001 20:22:07 -0500 (CDT) Received: (from nasby@localhost) by shell-1.enteract.com (8.11.6/8.11.2) id f7V1M6h25902; Thu, 30 Aug 2001 20:22:06 -0500 (CDT) (envelope-from nasby) Date: Thu, 30 Aug 2001 20:22:06 -0500 From: "Jim C. Nasby" To: Mike Meyer Cc: Trevin Chow , questions@freebsd.org Subject: SCSI write caching (was: Re: Performance tuning and adding RAM) Message-ID: <20010830202206.R63459@enteract.com> Reply-To: jim@nasby.net References: <15245.36122.131328.798913@guru.mired.org> <20010829215734.F79672-100000@benny.geektank.org> <15245.52453.614096.245669@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15245.52453.614096.245669@guru.mired.org>; from mwm@mired.org on Thu, Aug 30, 2001 at 12:19:33AM -0500 X-Operating-System: FreeBSD 4.3-STABLE i386 X-Distributed: Join the Effort! http://www.distributed.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Aug 30, 2001 at 12:19:33AM -0500, Mike Meyer wrote: > Trevin Chow types: > > On Wed, 29 Aug 2001, Mike Meyer wrote: > > > The reliability of soft updates is dependent on knowing that data > > > written to disk is actually on the disk. If you turn on softupdates, > > > turn off write cache on your disk drives. > > I'm confused by your last statement. Why do I turn off write cache on my > > HDs? Are you talking about another sysctl variable or in teh actual bios? > > I'm talking about a (mis)feature that some hard disks have. To quote > the tuning(7) man page: > > With IDE write caching turned on, IDE hard drives will not only > write data to disk out of order, they will sometimes delay some of > the blocks indefinitely when under heavy disk loads. > > > If you are using SCSI disks, you can use the camcontrol modepage > command to check and disable it. It's the WCE value on page 8; use > "camcontrol modepage daX -m 8 -e" to start an editor, change the 1 to > a 0, and then exit. Is this also necessary with SCSI drives? I was under the impression that they weren't susceptible to this problem... > > -- > Mike Meyer http://www.mired.org/home/mwm/ > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Jim C. Nasby (aka Decibel!) jim@nasby.net Member: Triangle Fraternity, Sports Car Club of America Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message