From owner-freebsd-fs@FreeBSD.ORG Tue Dec 22 01:17:44 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB0F31065670 for ; Tue, 22 Dec 2009 01:17:44 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from mail-yw0-f172.google.com (mail-yw0-f172.google.com [209.85.211.172]) by mx1.freebsd.org (Postfix) with ESMTP id 8CBEA8FC08 for ; Tue, 22 Dec 2009 01:17:44 +0000 (UTC) Received: by ywh2 with SMTP id 2so5990105ywh.27 for ; Mon, 21 Dec 2009 17:17:43 -0800 (PST) Received: by 10.150.38.4 with SMTP id l4mr12026784ybl.340.1261442804484; Mon, 21 Dec 2009 16:46:44 -0800 (PST) Received: from ?10.0.1.198? (udp022762uds.hawaiiantel.net [72.234.79.107]) by mx.google.com with ESMTPS id 6sm2196328ywd.22.2009.12.21.16.46.41 (version=SSLv3 cipher=RC4-MD5); Mon, 21 Dec 2009 16:46:43 -0800 (PST) Date: Mon, 21 Dec 2009 14:47:49 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Robert Watson In-Reply-To: Message-ID: References: <712903.15604.qm@web113517.mail.gq1.yahoo.com> <3612709F-15CA-4A59-86B1-2674BAA2936D@gmail.com> <240049.46806.qm@web113517.mail.gq1.yahoo.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-fs@freebsd.org, jeff@FreeBSD.org, "Pedro F. Giffuni" Subject: SU+J, journaled softupdates X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 01:17:44 -0000 On Tue, 22 Dec 2009, Robert Watson wrote: > I'm CC'ing Jeff Roberson, who perhaps can comment on his on-going project to > merge journaling techniques with soft updates in UFS (which is just meta-data > journaling, but hopefully will address many of the fsck/bgfsck-related > concerns people have). Hi folks, I have blogged a little bit about my plans at http://jeffr_tech.livejournal.com/. Briefly, I have created a small intent journal that works in concert with softupdates to eliminate the requirement for fsck on boot. Instead fsck has been augmented with a recovery process that reads the journal and corrects the filesystem. The recovery process is very quick and scales with the size of the journal, not the filesystem. The journal is enabled with tunefs on an existing ffs filesystem. The filesystem must be clean to enable. The filesystem must be clean before mounting with a legacy implementation but it is otherwise metadata compatible. A legacy fsck will destroy the journal but otherwise there are no other problems. Presently the code does not support non-journaled softupdates but I will rectify that. Peter Holm (pho@) has been helping me test and once I've fixed the final bugs revealed by his stress2 suite I will make a release and provide instructions. I'm hoping many people will be interested so we can quickly get to some confidence with the patch. One thing to keep in mind is that at runtime this can only slow down softupdates. It is additional overhead which I have attempted to minimize but there is no way around it. To eliminate fsck you must pay a price. This also can not cope with disks that lie about write ordering coupled with power failures. In this case the normal fsck can recover the file system. Cheers, Jeff > > Robert N M Watson > Computer Laboratory > University of Cambridge >