Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Nov 2008 15:39:38 +0100 (CET)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        no-spam@people.net.au
Cc:        freebsd-questions@freebsd.org
Subject:   Re: UFS2 limits
Message-ID:  <20081109152835.N49145@wojtek.tensor.gdynia.pl>
In-Reply-To: <50261.1226194851@people.net.au>
References:  <50261.1226194851@people.net.au>

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



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