From owner-freebsd-questions Tue Mar 11 7:50:22 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 3B12A37B401 for ; Tue, 11 Mar 2003 07:50:21 -0800 (PST) Received: from pop018.verizon.net (pop018pub.verizon.net [206.46.170.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DA4843F85 for ; Tue, 11 Mar 2003 07:50:20 -0800 (PST) (envelope-from cswiger@mac.com) Received: from mac.com ([129.44.42.236]) by pop018.verizon.net (InterMail vM.5.01.05.27 201-253-122-126-127-20021220) with ESMTP id <20030311155019.FPLH6884.pop018.verizon.net@mac.com> for ; Tue, 11 Mar 2003 09:50:19 -0600 Message-ID: <3E6E05B7.8060006@mac.com> Date: Tue, 11 Mar 2003 10:50:15 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: 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> In-Reply-To: <3E6DFC65.4050205@potentialtech.com> X-Enigmail-Version: 0.73.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at pop018.verizon.net from [129.44.42.236] at Tue, 11 Mar 2003 09:50:19 -0600 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 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? 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. -- -Chuck ...with 900 emails to go; take one down, pass it around; 899 emails to go... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message