On Thu, 2 Jan 2003, MikeM wrote:
> On 1/2/03 at 3:13 PM Roman Neuhauser wrote:
> |# [EMAIL PROTECTED] / 2003-01-02 09:01:27 -0500:
> |> I'm considering setting up my server as a mirror site for the freedb.org
> |> lookup database. Unfortunately, I've seem to have run into a stumbling
> |> block. The server app requires over 250,000 files in a single
> |> Each file is about 2k in size.
It can be argued that the application is poorly designed...
> I already have UFS_DIRHASH specified in my kernel config file. :-(
Maybe you can tweak some sysctls:
atlas% sysctl -a | grep dirhash
Try playing with with "vfs.ufs.dirhash_maxmem". I suppose it has to
be at least as large as the size of the Directory From Hell.
Also remember that any application that lists all of those files
sequentially (as opposed to accessing a single one by name) will be
very slow, no matter what. And don't forget that "ls" and shell
expansion of "*" will not only read through all entries, but also
It would probably be better to patch the dang server to use a
multi-level directory structure instead.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message