Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 1995 12:27:05 -0800
From:      Poul-Henning Kamp <phk>
To:        CVS-commiters, cvs-sys
Subject:   cvs commit: src/sys/kern vfs_subr.c
Message-ID:  <199503092027.MAA21338@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
phk         95/03/09 12:27:04

  Modified:    sys/kern vfs_subr.c
  Log:
  Clean up and improve the namecache.
  
  1. We always keep one 16th of the vnodes on the freelist, so that the
  namecache doesn't get trashed.  It used to be that it wasn't a problem, but
  the only vnodes getting released these days are directories and things which
  Clean up and improve the namecache.
  
  1. We always keep one 16th of the vnodes on the freelist, so that the
  namecache doesn't get trashed.  It used to be that it wasn't a problem, but
  the only vnodes getting released these days are directories and things which
  gets forced out of the VM/cache.  The latter is not numerous enough to keep
  the pool of vnodes needed for the namecache sufficiently big.
  
  2. Purge invalid entries in the namecache as soon as we notice them.  This
  avoids a stale entry pushing out a valid entry on the LRU list.
  
  3. Speed up the lookup in the namecache by avoid a special case branch.
  
  4. Make the cache purge routines do the thing they're supposed to, and in
  a decently efficient manner.
  
  5. Make the size of the namecache follow the number of vnodes, so that we
  can always point to all the vnodes we have in core.
  
  6. Readability has gone way up.
  
  7. Added a "options NCH_STATISTICS" feature that will gather more
  detailed statistics on the performance of the namecache.
  
  Reviewed by:    davidg
  
  (cvs is dumping core on me :-(  )



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503092027.MAA21338>