kernel - Increase NCMOUNT_NUMCACHE, add enable & statistics
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 22 Feb 2013 09:54:47 +0000 (01:54 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 22 Feb 2013 09:54:47 +0000 (01:54 -0800)
commit7e9c94bdefc47c3ba8677bcab40222d826d7aeac
tree42e20ffdbeee0886eca5f95007f43fa27e1e4c0b
parent0d2d2c8cb5ef6be78dd599473dec91c302298813
kernel - Increase NCMOUNT_NUMCACHE, add enable & statistics

* Increase NCMOUNT_NUMCACHE to 1009 (prime number), change to modulo.
  This cache improves long namecache path lookups.

* Add enable and statistics.  Cache defaults to enabled.

    debug.ncmount_cache_enable (defaults to 1)
    debug.ncmount_cache_hit
    debug.ncmount_cache_miss
    debug.ncmount_cache_overwrite
sys/kern/vfs_cache.c