From owner-freebsd-hackers Sun Jun 25 19:40:27 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 1185837B567 for ; Sun, 25 Jun 2000 19:40:22 -0700 (PDT) (envelope-from DougB@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id TAA02016; Sun, 25 Jun 2000 19:40:03 -0700 (PDT) (envelope-from DougB@gorean.org) Message-ID: <3956C282.AD89DD0C@gorean.org> Date: Sun, 25 Jun 2000 19:40:02 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 5.0-CURRENT-0603 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Nicole Harrington." Cc: Luigi Rizzo , hackers@FreeBSD.ORG Subject: Re: How many files can I put in one diretory? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Nicole Harrington." wrote: > > On 22-Jun-00 Luigi Rizzo wrote: > >> > >> Hello > >> I have a user who needs to store a large amount of small html files. Like > >> around 2 million... > > > > that sounds insane! Because a name is a name, why dont they call > > those files xx/yy/zz/tt.html and the like, to get down to a more > > reasonable # of files per directory. > > > > Well.. Yea that's the idea.. But what is a reasonable number? 10K 100K etc. I heard 10k a while back from several sources I considered reliable. I've always stuck to that limit and never had a problem on freebsd or sun. I've also had very good luck with a hashed directory structure, such as: /a/b/c/abcfile The level of hashing, and the number of characters per level can be determined by your expected number of files, naming schemes, etc. Good luck, Doug -- "Live free or die" - State motto of my ancestral homeland, New Hampshire Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message