From owner-freebsd-questions@FreeBSD.ORG Thu Dec 23 06:50:11 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8D3D16A4CE for ; Thu, 23 Dec 2004 06:50:11 +0000 (GMT) Received: from green.rahul.net (green.rahul.net [192.160.13.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id C890343D31 for ; Thu, 23 Dec 2004 06:50:11 +0000 (GMT) (envelope-from conover@rahul.net) Received: from green.rahul.net (localhost.localdomain [127.0.0.1]) by green.rahul.net (Postfix) with SMTP id 10BEABE8C0 for ; Wed, 22 Dec 2004 22:50:04 -0800 (PST) Received: (qmail 18135 invoked by uid 4199); 23 Dec 2004 06:48:41 -0000 Date: 23 Dec 2004 06:48:41 -0000 Message-ID: <20041223064841.18134.qmail@rahul.net> To: Erik Trulsson In-Reply-To: <20041223061448.GA74828@falcon.midgard.homeip.net> References: <20041221104508.1002.qmail@rahul.net> <41C8DC87.5080207@mac.com> <1103781420.16972.17.camel@tower1.digitaloverload.local> <20041223061448.GA74828@falcon.midgard.homeip.net> From: conover@rahul.net (John Conover) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: Damien Hull cc: freebsd-questions Subject: Re: UFS2 with Soft Updates Robust? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John Conover List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2004 06:50:12 -0000 Erik Trulsson writes: > On Wed, Dec 22, 2004 at 08:57:00PM -0900, Damien Hull wrote: > > On Tue, 2004-12-21 at 21:31 -0500, Chuck Swiger wrote: > > > John Conover wrote: > > > > Is UFS2 with soft updates the most robust file system in freebsd? > > > > > > No, although UFS2 with softupdates is robust enough for production use. > > > > > > If you make the filesystem writes syncronous and disable write caching on the > > > hard drive, you will improve the robustness at significant cost to performance. > > > > > > > Are you saying that the UFS2 file system sucks? > > Not at all, but standard IDE-drives suck when it comes to robustness. > (They tend to lie and tell the OS that data has been written to the > disk, when in reality it has only been written to the disks cache.) > (Thus the advice above to turn off write-caching for maximum > robustness.) > > If you use softupdates (on a disk that doesn't lie) the filesystem on > the disk will always be consistent, but data written during the last 30 > seconds or so might not yet have been written to the disk, and can therefore > be lost if e.g. the power to the computer is turned off. > Erik, does that mean if you use softupdates, (on a SCSI,) that, although file(s) currently being written may be truncated since the cache is not flushed, that the file system can be repaired automatically by fsck to a consistent state? Even without synchronous writes or enabling cache write through? John BTW, the reason for the question is that most SCSIs today have many meg of HW cache, and many, (maybe most,) controllers don't permit write through anymore. So, even if the OS flushes its cache, the HW cache may not be written to the disk-so synchronous writes and OS cache write through may be of little value. -- John Conover, conover@rahul.net, http://www.johncon.com/