From owner-freebsd-fs@FreeBSD.ORG Wed Jan 26 17:46:05 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0BEF16A4CE for ; Wed, 26 Jan 2005 17:46:05 +0000 (GMT) Received: from web41205.mail.yahoo.com (web41205.mail.yahoo.com [66.218.93.38]) by mx1.FreeBSD.org (Postfix) with SMTP id BBF2E43D1F for ; Wed, 26 Jan 2005 17:46:05 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 1703 invoked by uid 60001); 26 Jan 2005 17:46:04 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=KsZkXXyEWTZUnMHPB3DOgnFeLDGhZ31MQioS2bTZNG56aa8MxOgwCYzpivmDsRPppblxLabrjEkGzTjsPY1b6k7NX1AuboB3QWC3BwODToFPkmDzSgLBNoeqUGbk83rn1FQOIKqwJHnn3zzZ+/R2t5ZVIXtDrMoITP7ZpNLFls0= ; Message-ID: <20050126174604.1701.qmail@web41205.mail.yahoo.com> Received: from [213.54.133.150] by web41205.mail.yahoo.com via HTTP; Wed, 26 Jan 2005 09:46:04 PST Date: Wed, 26 Jan 2005 09:46:04 -0800 (PST) From: Arne "Wörner" To: freebsd-fs@FreeBSD.ORG In-Reply-To: <20050126172541.GA13950@VARK.MIT.EDU> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: ufs+softupdates / consistency X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 17:46:06 -0000 --- David Schultz wrote: > On Wed, Jan 26, 2005, Arne WXrner wrote: > > On > > http://e2fsprogs.sourceforge.net/ext2intro.html > > I found the strings > > "BSD-like synchronous updates" > > "it can cause corruption in the user data" . > > On > > http://www.mckusick.com/softdep/ > > I did not find such a statement. > > Are soft updates safe for user data? I do not really > > understand, what the first www page means... Maybe they mean, > > that the new file size (that would be meta data, I think) is > > written before the user data, so that the file contains > > undetermined data in its tail. > > The comments you refer to that seem to imply that synchronous > updates are unsafe and asynchronous updates are safer are wrong > in general (synchronous updates are safer), but the authors may > be referring to bugs in the ext2fs implementation at that time. > Soft Updates, in contrast, provides asynchronous updates, issued > in an order that makes them safe. > I would be glad, if somebody explains me, why ext2fs/async in Linux kernel 2.4.27 (KNOPPIX V3.7) is much faster (about 4 times faster) than a ufs with soft updates on the same slice of the hard disc? Is it due to consistency reasons? In case of a ext2fs/sync in my Linux setting Linux was about 4 times slower. Are we already trying to issue write order requests for the disc blocks (whose write order is arbitrary) sorted by sector number (in order to move the disc heads as less as possible)? The disc write cache could do that, but I disabled it in order to decrease the probability of inconsistency. -Arne __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250