Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2010 11:51:50 -0500
From:      Janos Dohanics <web@3dresearch.com>
To:        freebsd-questions@freebsd.org
Subject:   Directory with large number of files
Message-ID:  <201003101151.50738.web@3dresearch.com>

next in thread | raw e-mail | index | archive | help
I have a directory with over 180,000 files in 4 subdirectories. Over 170,000 
of the files are in one of the subdirectories. The files are image files, 
mostly <50K. The machine has 2 GB RAM.

What would be a reasonable setting for vfs.ufs.dirhash_maxmem? Is there a 
disadvantage to setting vfs.ufs.dirhash_maxmem too high?

Is there any other setting to change to find files faster in a directory with 
such large number of files?

Thank you for your advice.

-- 
Janos Dohanics



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