filesystem performance with lots of small files

Claus Guttesen kometen at
Thu Aug 25 22:39:18 GMT 2005

> 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

You could try the following change:

sysctl vfs.ufs.dirhash_maxmem=8388608

Did you use the GENERIC-kernel? If so, remember that witness,
invariants etc. are a part of the RELENG_6-branch. You should disable
these settings with a custom-build kernel. You may also want to read


More information about the freebsd-current mailing list