kernel - Improve namecache performance
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 23 Apr 2018 02:26:58 +0000 (19:26 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 23 Apr 2018 02:31:28 +0000 (19:31 -0700)
commit024f2ea16950750d30b44d25b65ea1d88634b807
treeb9ec8c9d31a89ca36bc1ca4344eef6dfa354f1b5
parent886546ecb02e3979d903a92d90031f3cc0c7b247
kernel - Improve namecache performance

* Improve performance for the edge case where a process is
  deleting a large number of files.  In this situation,
  NCF_DESTROYED ncp entries can build up in the hash table
  and slow things down until the system quiets down, then
  the tables get cleaned up.

  Improve by recycling such entries into new entries when
  possible.

* Refactor the hash calculation again.  The big-prime idea
  actually has some trivially obvious problems, scrap it
  for the moment.
sys/kern/vfs_cache.c