From owner-cvs-all Wed Jul 11 19:54:46 2001 Delivered-To: cvs-all@freebsd.org Received: from green.bikeshed.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E1F4837B401; Wed, 11 Jul 2001 19:54:39 -0700 (PDT) (envelope-from green@green.bikeshed.org) Received: from localhost (green@localhost) by green.bikeshed.org (8.11.4/8.11.1) with ESMTP id f6C2sXA12152; Wed, 11 Jul 2001 22:54:36 -0400 (EDT) (envelope-from green@green.bikeshed.org) Message-Id: <200107120254.f6C2sXA12152@green.bikeshed.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Ian Dowse Cc: Dag-Erling Smorgrav , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/conf NOTES src/sys/conf files options src/sys/ufs/ufs dirhash.h ufs_dirhash.c inode.h ufs_inode.c ufs_lookup.c In-Reply-To: Message from Ian Dowse of "Wed, 11 Jul 2001 21:16:13 BST." <200107112116.aa67322@salmon.maths.tcd.ie> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 11 Jul 2001 22:54:33 -0400 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ian Dowse wrote: > In message , Dag-Erling Smorgrav writes: > >Ian Dowse writes: > >> Bring in dirhash, a simple hash-based lookup optimisation for large > > > >Are you going to MFC this in a while? > > Yeah, I have a releng_4 version that I've been running without any > problems, but I'll probably wait at least a week or two for any > bugs or suggestions to show up. There are almost certainly still > some access patterns where dirhash is a pessimisation over the > non-dirhash case - I think the worst of these (sequential access, > large working set) have mostly been addressed, but some filesystem > benchmarks may well come out worse with dirhash switched on. > > I'd be very interested in any such results, or any suggestions for > improvements. I'm not sure if it's just -CURRENT or dirhash being enabled, but there is a definite (10-20%) drop in speed for the large, linear access case. However, that's just a synthetic benchmark -- I use procmail and mh to sort all my mail to different maildirs, and I can say that this common operation is now DRAMATICALLY faster! Thanks for developing such a useful real-world solution. -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message