On Wed, 21 Jun 2000, Nicole Harrington. wrote:

> 
>  Hello
>  I have a user who needs to store a large amount of small html files. Like
> around 2 million...
> 
>  Assuming FreeBSD 4.0-Stable with Soft Updates, what is a sane number that can
> be handled per directory?

        Softupdates doesn't really help with large directories.  The
limiting factor is that directories are unsorted so opening a file is a
linear search on the directory.

        Break your files into subdirectories and then maybe another level
or two of subdirectoies.  Try to keep the directories balanced.  Ideally,
the path is a perfect hash on the filenames.

        Still, you might want to think about a DB or somethign other thana
large directory for storing 2 million files.

        Adrian
--
[ [EMAIL PROTECTED] -- Ubergeeks Consulting -- http://www.ubergeeks.com/ ]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to