Problems with FFS and directories of over 1000 entries....

Dan Nelson dnelson at allantgroup.com
Thu Mar 4 13:03:49 PST 2004


In the last episode (Mar 04), Forrest Aldrich said:
> I understand that FFS has some performance problems in directory/file 
> structures that have over 1000 entires... though I'm not sure this 
> applies to FFS under FreeBSD-5.x.   Can someone comment on this?

I see no issues on my systems, either 4.x or 5.x, with up to 10k files
in a directory.  Enabling the UFS_DIRHASH kernel option (available in
4.4 and later) will greatly speed up access to large directories, at
the cost of a little memory (adjustable via sysctl).

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list