summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-03-09 20:27:21 +0000
committerphk <phk@FreeBSD.org>1995-03-09 20:27:21 +0000
commit73699a95c4ee3a5d9a07cf616a899305afebd314 (patch)
tree3faff1b408a885173324581d7872a4473f9485e6 /bin
parent5ac4500e796c6a1b53ffe09349e9a8194b022592 (diff)
downloadFreeBSD-src-73699a95c4ee3a5d9a07cf616a899305afebd314.zip
FreeBSD-src-73699a95c4ee3a5d9a07cf616a899305afebd314.tar.gz
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
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud