Date: Mon, 23 Sep 2019 04:36:10 -0700 From: Cy Schubert <Cy.Schubert@cschubert.com> To: Mateusz Guzik <mjg@FreeBSD.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r352617 - head/sys/kern Message-ID: <201909231136.x8NBaA29042187@slippy.cwsent.com> In-Reply-To: <201909230853.x8N8rEnu024577@repo.freebsd.org> References: <201909230853.x8N8rEnu024577@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <201909230853.x8N8rEnu024577@repo.freebsd.org>, Mateusz Guzik writes : > Author: mjg > Date: Mon Sep 23 08:53:14 2019 > New Revision: 352617 > URL: https://svnweb.freebsd.org/changeset/base/352617 > > Log: > cache: count evictions of negatve entries Why? > > Sponsored by: The FreeBSD Foundation > > Modified: > head/sys/kern/vfs_cache.c > > Modified: head/sys/kern/vfs_cache.c > ============================================================================= > = > --- head/sys/kern/vfs_cache.c Mon Sep 23 07:23:29 2019 (r352616) > +++ head/sys/kern/vfs_cache.c Mon Sep 23 08:53:14 2019 (r352617) > @@ -378,6 +378,8 @@ STATNODE_COUNTER(numfullpathfail2, > "Number of fullpath search errors (VOP_VPTOCNP failures)"); > STATNODE_COUNTER(numfullpathfail4, "Number of fullpath search errors (ENOMEM > )"); > STATNODE_COUNTER(numfullpathfound, "Number of successful fullpath calls"); > +static long numneg_evicted; STATNODE_ULONG(numneg_evicted, > + "Number of negative entries evicted when adding a new entry"); > STATNODE_COUNTER(zap_and_exit_bucket_relock_success, > "Number of successful removals after relocking"); > static long zap_and_exit_bucket_fail; STATNODE_ULONG(zap_and_exit_bucket_fai > l, > @@ -844,6 +846,7 @@ cache_negative_zap_one(void) > ncp->nc_name, ncp->nc_neghits); > > cache_zap_locked(ncp, true); > + numneg_evicted++; > out_unlock_all: > mtx_unlock(&neglist->nl_lock); > rw_wunlock(blp); > -- Cheers, Cy Schubert <Cy.Schubert@cschubert.com> FreeBSD UNIX: <cy@FreeBSD.org> Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909231136.x8NBaA29042187>