From owner-freebsd-questions Fri Mar 14 8:49:25 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 C2D9237B401 for ; Fri, 14 Mar 2003 08:49:23 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-13.pit.adelphia.net [24.53.161.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA6D043F85 for ; Fri, 14 Mar 2003 08:49:22 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.7/8.12.7) with ESMTP id h2EGnKTb008792; Fri, 14 Mar 2003 11:49:21 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E7207D9.7080906@potentialtech.com> Date: Fri, 14 Mar 2003 11:48:25 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030301 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chuck Swiger Cc: questions@FreeBSD.ORG Subject: Re: What is a practical max nujmber of files in a directory References: <3E6D6A0F.5040704@potentialtech.com> <20030311053714.GG34011@dan.emsphone.com> <3E6DFC65.4050205@potentialtech.com> <3E6E05B7.8060006@mac.com> In-Reply-To: <3E6E05B7.8060006@mac.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Chuck Swiger wrote: > Bill Moran wrote: > [ ... ] > >> I'm writing a web-interface to file-sharing. It's back-ended by a >> metadata >> database and a filesystem based file store. > > Sounds like a pretty classic application for WebDAV. > >> The question I need to answer is: how many files can a directory >> contain before the system determines that no more files should be >> placed in it? > > When you have more than a few thousand files per directory, that's the > point where many platforms seem to slow down very significantly. > > What's the size range and average size of an item? Unfortunately, I can't know that at this time. I don't have any examples. > If you do something a little clever-- perhaps concat'ing small (< 8 K) > items together (keeping track of this with your metadata DB), and only > using seperate files for larger items-- you might be able to finesse the > situation. Might help. I'll consider it. I guess I'm just going to have to do my own research. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message