Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2003 11:48:25 -0500
From:      Bill Moran <wmoran@potentialtech.com>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: What is a practical max nujmber of files in a directory
Message-ID:  <3E7207D9.7080906@potentialtech.com>
In-Reply-To: <3E6E05B7.8060006@mac.com>
References:  <3E6D6A0F.5040704@potentialtech.com> <20030311053714.GG34011@dan.emsphone.com> <3E6DFC65.4050205@potentialtech.com> <3E6E05B7.8060006@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E7207D9.7080906>