freebsd-skq/sys/fs/nullfs
Konstantin Belousov 603f963e56 The current default size of the nullfs hash table used to lookup the
existing nullfs vnode by the lower vnode is only 16 slots.  Since the
default mode for the nullfs is to cache the vnodes, hash has extremely
huge chains.

Size the nullfs hashtbl based on the current value of
desiredvnodes. Use vfs_hash_index() to calculate the hash bucket for a
given vnode.

Pointy hat to:	    kib
Diagnosed and reviewed by:	peter
Tested by:    peter, pho (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	5 days
2013-01-14 05:44:47 +00:00
..
null_subr.c The current default size of the nullfs hash table used to lookup the 2013-01-14 05:44:47 +00:00
null_vfsops.c Add the "nocache" nullfs mount option, which disables the caching of 2013-01-03 19:17:57 +00:00
null_vnops.c When nullfs mount is forcibly unmounted and nullfs vnode is reclaimed, 2013-01-10 18:24:48 +00:00
null.h Add the "nocache" nullfs mount option, which disables the caching of 2013-01-03 19:17:57 +00:00