filesystem performance with lots of small files

Marian Hettwer MH at
Thu Aug 25 21:25:32 GMT 2005

Hi Mike,

Mike Tancsa wrote:
> At 01:58 PM 25/08/2005, Marian Hettwer wrote:
>> couldn't find any sysctl'ÂŽs or kernel parameters.
>> I'll report numbers, as soon as I have them.
>> And yes, I disabled the debugging features in my kernel (WITNESS, 
>> Besides, I know that 6-BETA is not about performance at all :)
>> any tips on file system performance with small files, though ?
> It might be hitting the dirhash max mem value.  What does 
> vfs.ufs.dirhash_maxmem and vfs.ufs.dirhash_mem show ?
I didn't changed anything from the defaults... it looks like that:
mhettwer at submaster-test$ sysctl vfs.ufs.dirhash_maxmem
vfs.ufs.dirhash_maxmem: 2097152
mhettwer at submaster-test$ sysctl vfs.ufs.dirhash_mem
vfs.ufs.dirhash_mem: 368622

By the way, the copy job of my small files finished, so here we go with 
some small facts :)
mhettwer at submaster-test$ sudo time find /usr/tmp/ | wc -l
       133.81 real         2.01 user         3.95 sys

nearly three million files. quite a lot ...


More information about the freebsd-current mailing list