From owner-freebsd-questions Thu Jan 2 6:55:32 2003 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 A17EA37B401 for ; Thu, 2 Jan 2003 06:55:31 -0800 (PST) Received: from sentry.24cl.com (174.113.sn.ct.dsl.thebiz.net [216.238.113.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13E5643EA9 for ; Thu, 2 Jan 2003 06:55:31 -0800 (PST) (envelope-from myraq@mgm51.com) Received: from ntmm (unknown [63.119.50.193]) by sentry.24cl.com (Postfix) with ESMTP id 2C48829496 for ; Thu, 2 Jan 2003 09:55:30 -0500 (EST) Message-ID: <200301020955300340.09F341B4@home.24cl.com> In-Reply-To: <20030102141322.GH348@freepuppy.bellavista.cz> References: <200301020901270548.09C1C68B@sentry.24cl.com> <20030102141322.GH348@freepuppy.bellavista.cz> X-Mailer: Calypso Version 3.30.00.00 (1) Date: Thu, 02 Jan 2003 09:55:30 -0500 Reply-To: myraq@mgm51.com From: "MikeM" To: freebsd-questions@FreeBSD.ORG Subject: Re: Lots of files in a directory Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 1/2/03 at 3:13 PM Roman Neuhauser wrote: |# MyRaQ@mgm51.com / 2003-01-02 09:01:27 -0500: |> I'm considering setting up my server as a mirror site for the freedb.org |> lookup database. Unfortunately, I've seem to have run into a stumbling |> block. The server app requires over 250,000 files in a single directory. |> Each file is about 2k in size. |> |> It was a surprise to me (but probably not to those on this list) that the |> file system does not handle that many files in an expeditious manner (I'm |> being kind here). |> | | would this help? (I don't know if this was available in 4.5, look in | your /sys/i386/conf/LINT) | | roman@freepuppy ~ 1003:0 > grep -B2 DIRHASH /sys/i386/conf/LINT | # Directory hashing improves the speed of operations on very large | # directories at the expense of some memory. | options UFS_DIRHASH ============= Thanks for the quick reply. I already have UFS_DIRHASH specified in my kernel config file. :-( To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message