From owner-freebsd-current@FreeBSD.ORG Tue Sep 30 16:44:34 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8323A16A4B3 for ; Tue, 30 Sep 2003 16:44:34 -0700 (PDT) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21D5C43F3F for ; Tue, 30 Sep 2003 16:44:33 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP (SSL) id MUA74016; Tue, 30 Sep 2003 16:44:31 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id BF3905D07; Tue, 30 Sep 2003 16:44:30 -0700 (PDT) To: "Marc G. Fournier" In-Reply-To: Message from "Marc G. Fournier" <20030930202715.C94686@ganymede.hub.org> Date: Tue, 30 Sep 2003 16:44:30 -0700 From: "Kevin Oberman" Message-Id: <20030930234430.BF3905D07@ptavv.es.net> cc: freebsd-current@freebsd.org cc: Lukas Ertl Subject: Re: Improvements to fsck performance in -current ...? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2003 23:44:34 -0000 > Date: Tue, 30 Sep 2003 20:28:20 -0300 (ADT) > From: "Marc G. Fournier" > > > > On Wed, 1 Oct 2003, Lukas Ertl wrote: > > > > are either of these enhancements back-patchable to the 4.x fsck, or do > > > they require some non-4.x compatible changes to work? > > > > It's not just the fsck application itself, background fsck basically needs > > file system snapshots, which are only available on UFS2, and I'm not sure > > if they can be backported to UFS1 at all. > > Ah, okay, so when I move my servers to 5.x, then I'm going to need to > reformat the systems from scratch, else I lose some serious improvements > ... is there a list somewhere of what UFS2 has over UFS1? "file system > snapshots", is that similar to journalling? I think this is wrong. I have seen no issue in snapshots or background fsck with UFS1 volumes. And, if you mean "jounalling" as in jfs, no. As I understand it, snapshot is an atomic capture of the file system metadata which allows fsck to analyze and repair it on an active file system. (Note: This only applies to softupdate enabled systems as softupdates assure a level of consistency in the metadata that assures that fsck will not make changes to active file space on the file system. To get to UFS2, you must newfs the partition. I don't know of nay other way. The basic improvement in UFS2 is the expansion of many fields to 64 bits to allow for much larger structures. While newfs in V5.1 and CURRENT defaults to UFS2, there are no problems continuing to run UFS1 file systems. Finally, I don't think there is any issue any longer with using soft updates on /. The only reason that root did not default to SU under V4 is that SU disks only periodically update free space information and a small root partition can fill up during an installworld when all of the files in (especially) /sbin are replaces which requires enough space to hold two copies of the directory. Under the default partition sizes in V5, this is really not an issue and all partitions created by sysinstall under V5 will default to SU, including /. If I got some of this wrong, I hope someone will correct it, but I am pretty sure I'm close. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634