From owner-freebsd-questions@FreeBSD.ORG Tue Jan 18 00:32:13 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF8CC16A4CE for ; Tue, 18 Jan 2005 00:32:13 +0000 (GMT) Received: from av7-1-sn4.m-sp.skanova.net (av7-1-sn4.m-sp.skanova.net [81.228.10.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFA8E43D41 for ; Tue, 18 Jan 2005 00:32:12 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av7-1-sn4.m-sp.skanova.net (Postfix, from userid 502) id 1625F37E46; Tue, 18 Jan 2005 01:32:12 +0100 (CET) Received: from smtp4-1-sn4.m-sp.skanova.net (smtp4-1-sn4.m-sp.skanova.net [81.228.10.181]) by av7-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id 0561837E87 for ; Tue, 18 Jan 2005 01:32:12 +0100 (CET) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp4-1-sn4.m-sp.skanova.net (Postfix) with SMTP id 9FE4237E43 for ; Tue, 18 Jan 2005 01:32:11 +0100 (CET) Received: (qmail 84855 invoked by uid 1001); 18 Jan 2005 00:32:10 -0000 Date: Tue, 18 Jan 2005 01:32:10 +0100 From: Erik Trulsson To: Kris Kennaway Message-ID: <20050118003210.GA84803@falcon.midgard.homeip.net> Mail-Followup-To: Kris Kennaway , Miguel Mendez , freebsd-questions@freebsd.org References: <41EC0D80.8090403@totem.is-a-geek.com> <20050117191343.GA79136@xor.obsecurity.org> <20050117213425.595e6856.flynn@energyhq.es.eu.org> <20050117224911.GA31567@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050117224911.GA31567@xor.obsecurity.org> User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: Slow directory access with lots of files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2005 00:32:14 -0000 On Mon, Jan 17, 2005 at 02:49:11PM -0800, Kris Kennaway wrote: > On Mon, Jan 17, 2005 at 09:34:25PM +0100, Miguel Mendez wrote: > > On Mon, 17 Jan 2005 11:13:43 -0800 > > Kris Kennaway wrote: > > > > Hi, > > > > > Do you have UFS_DIRHASH in your kernel? If you don't, or if you added > > > it after the disk was already populated, you'll see the benefits if > > > you dump, wipe and restore the disk. > > > > Could you elaborate on that? My impression has always been that dirhash > > does all its magic in memory, without persistant data stored on disk. > > No. It's an optimized method for laying out the data on disk. I > think you're confusing it with softupdates, but that still doesn't > work entirely that way. No, this time it is you who are confused. UFS_DIRHASH does not affect the layout on disk at all as far as I can tell. You are probably confusing it with the dirpref changes that were made back in 2001 at approximately the same time as UFS_DIRHASH was added. -- Erik Trulsson ertr1013@student.uu.se