Skip site navigation (1)Skip section navigation (2)
Date:      23 Dec 2004 06:36:03 -0000
From:      conover@rahul.net (John Conover)
To:        Damien Hull <dhull@digitaloverload.net>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: UFS2 with Soft Updates Robust?
Message-ID:  <20041223063603.17929.qmail@rahul.net>
In-Reply-To: <1103781420.16972.17.camel@tower1.digitaloverload.local>
References:  <20041221104508.1002.qmail@rahul.net> <41C8DC87.5080207@mac.com> <1103781420.16972.17.camel@tower1.digitaloverload.local>

next in thread | previous in thread | raw e-mail | index | archive | help
Damien Hull writes:
> 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? If so what options does
> one have? 
> 
> I've read that softupdates should be turned on. How much of a
> performance loss will I see if I turn softupates off?
>

Oh, no, not at all, Damien-I consider UFS/FFS quite sturdy. I put it
in a PC with softupdates on, (and no other options, like cache write
through, synchronous writes, etc.,) and for 30 minutes cycled the
machine's power switch 15 times, hitting the power as soon as fsck
started, etc. to see if I could induce an exception/fault scenario
with something it couldn't fix auto'magically. Also, I hit the power
switch with a dozen cat /dev/zero > bigfile1, ..., processes,
too-after they had filled up about 20G of spinning real estate.

UFS/FFS withstood the abuse well.

So I have been told, for maximum reliability/durability, cache write
through should be enabled, along with synchronous writes-albeit at a
substantial speed penalty, (I don't know how much-that's a test for
another day.)

So far, I've done this on about a half dozen open source OS
distributions, and one Sys V Rel. 4 with Veritas journaling FS.

FreeBSD and Veritas are the only two that survived.

        John

For the record, the box is an Intel reference MB, and an Adaptec
2940UW, with a Fujitsu 35G SCSI drive. All out of the box default
settings. No RAID.

-- 

John Conover, conover@rahul.net, http://www.johncon.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041223063603.17929.qmail>