From owner-freebsd-current@FreeBSD.ORG Fri Oct 29 18:07:15 2004 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 922B216A4CE for ; Fri, 29 Oct 2004 18:07:15 +0000 (GMT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED20643D41 for ; Fri, 29 Oct 2004 18:07:13 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.1/8.13.1) with ESMTP id i9TI6XQr026868; Fri, 29 Oct 2004 11:06:39 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200410291806.i9TI6XQr026868@gw.catspoiler.org> Date: Fri, 29 Oct 2004 11:06:33 -0700 (PDT) From: Don Lewis To: phk@critter.freebsd.dk In-Reply-To: <16180.1099045813@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: current@FreeBSD.org Subject: Re: HEADSUP: UFS on GEOM now. 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: Fri, 29 Oct 2004 18:07:15 -0000 On 29 Oct, Poul-Henning Kamp wrote: > > This is hopefully a no-op for all purposes than the increased access > flexibility. > > I am very interested if anybody can measure the performance difference > better than I could myself: 1.7% +/- 0.5%. > > Poul-Henning > > phk 2004-10-29 10:15:56 UTC > > FreeBSD src repository > > Modified files: > sys/ufs/ffs ffs_alloc.c ffs_extern.h ffs_rawread.c > ffs_snapshot.c ffs_softdep.c ffs_vfsops.c > ffs_vnops.c > sys/ufs/ufs inode.h ufs_vnops.c ufsmount.h > Log: > Move UFS from DEVFS backing to GEOM backing. > > This eliminates a bunch of vnode overhead (approx 1-2 % speed > improvement) and gives us more control over the access to the storage > device. > > Access counts on the underlying device are not correctly tracked and > therefore it is possible to read-only mount the same disk device multiple > times: > syv# mount -p > /dev/md0 /var ufs rw 2 2 > /dev/ad0 /mnt ufs ro 1 1 > /dev/ad0 /mnt2 ufs ro 1 1 > /dev/ad0 /mnt3 ufs ro 1 1 > > Since UFS/FFS is not a synchrousely consistent filesystem (ie: it caches > things in RAM) this is not possible with read-write mounts, and the system > will correctly reject this. Very cool!