I have a FreeBSD server that has about 10,500 subdirectories within a single
This number will keep rising and I assume UFS2 has a limit to the number of
sub-directories in a single directory - can anyone tell me what it is?

make sure your kernel is compiled with

options         UFS_DIRHASH

or it will be slow

the limit is 32765, just because link count is 2 bytes wide and each subdir adds two to base directory. you have to change to 2 level hierarchy.

with files - i started creating empty files, it turned slow after about 320000.
freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to