Linux NFS development
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@kernel.org>
To: Chuck Lever <cel@kernel.org>, linux-nfs@vger.kernel.org
Subject: Re: [PATCH] NFSD: Remove nfsd_drc_gc() tracepoint
Date: Mon, 27 Nov 2023 07:37:12 -0500	[thread overview]
Message-ID: <2c63fcb62411ce907e95118f623833ab5f3c4209.camel@kernel.org> (raw)
In-Reply-To: <169988310782.6735.4291667629997514072.stgit@bazille.1015granger.net>

On Mon, 2023-11-13 at 08:45 -0500, Chuck Lever wrote:
> From: Chuck Lever <chuck.lever@oracle.com>
> 
> This trace point was for debugging the DRC's garbage collection. In
> the field it's just noise.
> 
> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
> ---
>  fs/nfsd/nfscache.c |    6 +-----
>  fs/nfsd/trace.h    |   22 ----------------------
>  2 files changed, 1 insertion(+), 27 deletions(-)
> 
> diff --git a/fs/nfsd/nfscache.c b/fs/nfsd/nfscache.c
> index fd56a52aa5fb..4d2055c7898a 100644
> --- a/fs/nfsd/nfscache.c
> +++ b/fs/nfsd/nfscache.c
> @@ -364,8 +364,6 @@ nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc)
>  		if (freed > sc->nr_to_scan)
>  			break;
>  	}
> -
> -	trace_nfsd_drc_gc(nn, freed);
>  	return freed;
>  }
>  
> @@ -486,7 +484,6 @@ int nfsd_cache_lookup(struct svc_rqst *rqstp, struct nfsd_cacherep **cacherep)
>  	__wsum			csum;
>  	struct nfsd_drc_bucket	*b;
>  	int type = rqstp->rq_cachetype;
> -	unsigned long freed;
>  	LIST_HEAD(dispose);
>  	int rtn = RC_DOIT;
>  
> @@ -516,8 +513,7 @@ int nfsd_cache_lookup(struct svc_rqst *rqstp, struct nfsd_cacherep **cacherep)
>  	nfsd_prune_bucket_locked(nn, b, 3, &dispose);
>  	spin_unlock(&b->cache_lock);
>  
> -	freed = nfsd_cacherep_dispose(&dispose);
> -	trace_nfsd_drc_gc(nn, freed);
> +	nfsd_cacherep_dispose(&dispose);
>  
>  	nfsd_stats_rc_misses_inc();
>  	atomic_inc(&nn->num_drc_entries);
> diff --git a/fs/nfsd/trace.h b/fs/nfsd/trace.h
> index fbc0ccb40424..d1e8cf079b0f 100644
> --- a/fs/nfsd/trace.h
> +++ b/fs/nfsd/trace.h
> @@ -1262,28 +1262,6 @@ TRACE_EVENT(nfsd_drc_mismatch,
>  		__entry->ingress)
>  );
>  
> -TRACE_EVENT_CONDITION(nfsd_drc_gc,
> -	TP_PROTO(
> -		const struct nfsd_net *nn,
> -		unsigned long freed
> -	),
> -	TP_ARGS(nn, freed),
> -	TP_CONDITION(freed > 0),
> -	TP_STRUCT__entry(
> -		__field(unsigned long long, boot_time)
> -		__field(unsigned long, freed)
> -		__field(int, total)
> -	),
> -	TP_fast_assign(
> -		__entry->boot_time = nn->boot_time;
> -		__entry->freed = freed;
> -		__entry->total = atomic_read(&nn->num_drc_entries);
> -	),
> -	TP_printk("boot_time=%16llx total=%d freed=%lu",
> -		__entry->boot_time, __entry->total, __entry->freed
> -	)
> -);
> -
>  TRACE_EVENT(nfsd_cb_args,
>  	TP_PROTO(
>  		const struct nfs4_client *clp,
> 
> 

Reviewed-by: Jeff Layton <jlayton@kernel.org>

      reply	other threads:[~2023-11-27 12:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-13 13:45 [PATCH] NFSD: Remove nfsd_drc_gc() tracepoint Chuck Lever
2023-11-27 12:37 ` Jeff Layton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2c63fcb62411ce907e95118f623833ab5f3c4209.camel@kernel.org \
    --to=jlayton@kernel.org \
    --cc=cel@kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox