freebsd-nq/sys/i386
Ian Dowse 9b5ad47fb7 Bring in dirhash, a simple hash-based lookup optimisation for large
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
2001-07-10 21:21:29 +00:00
..
acpica FreeBSD-specific OSD (operating system dependant) modules for the Intel 2000-10-28 06:56:15 +00:00
apm Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
bios Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
compile Don't need the .keep_me files. Obrien and I committed past each other. 2001-07-01 23:35:44 +00:00
conf Bring in dirhash, a simple hash-based lookup optimisation for large 2001-07-10 21:21:29 +00:00
i386 A set of changes to reduce the number of include files the kernel 2001-07-08 04:56:07 +00:00
ibcs2 Add a new MI pointer to the process' trapframe p_frame instead of using 2001-06-29 11:10:41 +00:00
include Add a new MI pointer to the process' trapframe p_frame instead of using 2001-06-29 11:10:41 +00:00
isa With Alfred's permission, remove vm_mtx in favor of a fine-grained approach 2001-07-04 16:20:28 +00:00
linux Add a new MI pointer to the process' trapframe p_frame instead of using 2001-06-29 11:10:41 +00:00
pci Un-swap irq/link byte values so that printf works. 2001-05-11 04:52:29 +00:00
svr4 Add a new MI pointer to the process' trapframe p_frame instead of using 2001-06-29 11:10:41 +00:00
Makefile