From owner-freebsd-questions Sat Apr 13 13:22:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from HAL9000.wox.org (12-232-222-90.client.attbi.com [12.232.222.90]) by hub.freebsd.org (Postfix) with ESMTP id E5CC937B416 for ; Sat, 13 Apr 2002 13:22:40 -0700 (PDT) Received: (from das@localhost) by HAL9000.wox.org (8.11.6/8.11.6) id g3DKMe422306; Sat, 13 Apr 2002 13:22:40 -0700 (PDT) (envelope-from das) Date: Sat, 13 Apr 2002 13:22:40 -0700 From: David Schultz To: Gregory Keefe Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Softupdates Message-ID: <20020413132240.A22260@HAL9000.wox.org> Mail-Followup-To: Gregory Keefe , freebsd-questions@FreeBSD.ORG References: <002301c1e31e$1dbe2850$9865fea9@GPC> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002301c1e31e$1dbe2850$9865fea9@GPC>; from keefeg@keefeg.com on Sat, Apr 13, 2002 at 03:05:02PM -0400 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 Thus spake Gregory Keefe : > FreeBSD Claim: > http://www.freebsd.org/features.html > Soft Updates allows improved file system performance without sacrificing > safety and reliability > > A Unix Expert's Claim: > http://cr.yp.to/qmail/faq/reliability.html > ``Do not use async or softupdates filesystems. If you do, and if your system > crashes at the wrong moment, you will lose [data].'' > > http://cr.yp.to/daemontools/multilog.html > ``Beware that NFS, async filesystems, and softupdates filesystems may > discard files that were not safely written to disk before an outage.'' DJB's statements are correct, but they do not tell the whole story. Async mounts, the default in Linux, are fast but dangerous because a crash can potentially cause irreparable filesystem corruption. Softupdates, the default in FreeBSD, does not corrupt your filesystem in the event of a crash and is about as fast as async. This is what the first quote means by `safe'. However, under softupdates, writes can be delayed up to 30 seconds; after a crash, your filesystem is fine, but you could lose any mail you received in the last 30 seconds. If this is not acceptable, you can use a synchronous mount, but it will be horribly slow! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message