UFS2 limits
Wojciech Puchar
wojtek at wojtek.tensor.gdynia.pl
Sun Nov 9 06:39:55 PST 2008
> Hi,
> I have a FreeBSD server that has about 10,500 subdirectories within a single
> directory.
> 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.
More information about the freebsd-questions
mailing list