Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 10 Oct 2001 13:31:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 10 Oct 2001 13:30:54 -0400 Received: from chunnel.redhat.com ([199.183.24.220]:48893 "EHLO sisko.scot.redhat.com") by vger.kernel.org with ESMTP id ; Wed, 10 Oct 2001 13:30:35 -0400 Date: Wed, 10 Oct 2001 18:29:12 +0100 From: "Stephen C. Tweedie" To: Alan Cox Cc: Rik van Riel , Linus Torvalds , linux-kernel@vger.kernel.org, Stephen Tweedie Subject: Re: [POT] Which journalised filesystem ? Message-ID: <20011010182912.A4099@redhat.com> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from alan@lxorguk.ukuu.org.uk on Fri, Oct 05, 2001 at 03:57:49PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Oct 05, 2001 at 03:57:49PM +0100, Alan Cox wrote: > > > We (as in Linux) should make sure that we explicitly tell the disk when > > > we need it to flush its disk buffers. We don't do that right, and > > > because of _our_ problems some people claim that writeback caching is > > > evil and bad. > > > > Does this even work right for IDE ? > > Current IDE drives it may be a NOP. Worse than that it would totally ruin > high end raid performance. We need to pass write barriers. A good i2o card > might have 256Mb of writeback cache that we want to avoid flushing - because > it is battery backed and can be ordered. The important thing is to flush to non-volatile storage: non-volatile cache still qualifies. The one thing we need to avoid is the data lingering in volatile cache, and that's a different thing. Sure, journaling filesystems can benefit from a write barrier, but at some point that's not sufficient --- we really need to know, at a high level, whether the data is permanently secured. When your MTA finishes its fsync(), it assumes that the mail spool file has been securely stored and it can tell the sender to go ahead and delete the upstream copy. A barrier is not sufficient there. It's a useful primitive to have, but not a substitute for a flush to permanent storage. --Stephen - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/