git: kernel - Improve namecache performance

Matthew Dillon dillon at
Sun Apr 22 19:31:34 PDT 2018

commit 024f2ea16950750d30b44d25b65ea1d88634b807
Author: Matthew Dillon <dillon at>
Date:   Sun Apr 22 19:26:58 2018 -0700

    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
    * Refactor the hash calculation again.  The big-prime idea
      actually has some trivially obvious problems, scrap it
      for the moment.

Summary of changes:
 sys/kern/vfs_cache.c | 63 +++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 50 insertions(+), 13 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list