9b5ad47fb7
directories. When enabled via "options UFS_DIRHASH", in-core hash arrays are maintained for large directories. These allow all directory operations to take place quickly instead of requiring long linear searches. For now anyway, dirhash is not enabled by default. The in-core hash arrays have a memory requirement that is approximately half the size of the size of the on-disk directory file. A number of new sysctl variables allow control over which directories get hashed and over the maximum amount of memory that dirhash will use: vfs.ufs.dirhash_minsize The minimum on-disk directory size for which hashing should be used. The default is 2560 (2.5k). vfs.ufs.dirhash_maxmem The system-wide maximum total memory to be used by dirhash data structures. The default is 2097152 (2MB). The current amount of memory being used by dirhash is visible through the read-only sysctl variable vfs.ufs.dirhash_maxmem. Finally, some extra sanity checks that are enabled by default, but which may have an impact on performance, can be disabled by setting vfs.ufs.dirhash_docheck to 0. Discussed on: -fs, -hackers |
||
---|---|---|
.. | ||
defines | ||
files | ||
files.alpha | ||
files.i386 | ||
files.ia64 | ||
files.pc98 | ||
files.powerpc | ||
kern.mk | ||
kmod.mk | ||
ldscript.alpha | ||
ldscript.amd64 | ||
ldscript.i386 | ||
ldscript.ia64 | ||
ldscript.powerpc | ||
majors | ||
Makefile.alpha | ||
Makefile.i386 | ||
Makefile.ia64 | ||
Makefile.pc98 | ||
Makefile.powerpc | ||
newvers.sh | ||
NOTES | ||
options | ||
options.alpha | ||
options.i386 | ||
options.ia64 | ||
options.pc98 | ||
options.powerpc | ||
param.c | ||
systags.sh |