From: David Howells <dhowells@redhat.com>
To: "Ihor Solodrai" <ihor.solodrai@linux.dev>
Cc: dhowells@redhat.com, "Marc Dionne" <marc.dionne@auristor.com>,
"Steve French" <stfrench@microsoft.com>,
"Eric Van Hensbergen" <ericvh@kernel.org>,
"Latchesar Ionkov" <lucho@ionkov.net>,
"Dominique Martinet" <asmadeus@codewreck.org>,
"Christian Schoenebeck" <linux_oss@crudebyte.com>,
"Paulo Alcantara" <pc@manguebit.com>,
"Jeff Layton" <jlayton@kernel.org>,
"Christian Brauner" <brauner@kernel.org>,
v9fs@lists.linux.dev, linux-cifs@vger.kernel.org,
netfs@lists.linux.dev, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, ast@kernel.org,
bpf@vger.kernel.org
Subject: Re: [PATCH] netfs: Add retry stat counters
Date: Mon, 10 Feb 2025 11:12:36 +0000 [thread overview]
Message-ID: <2986469.1739185956@warthog.procyon.org.uk> (raw)
In-Reply-To: <335ad811ae2cf5ebdfc494c185b9f02e9ca40c3e@linux.dev>
Ihor Solodrai <ihor.solodrai@linux.dev> wrote:
> Bash piece starting a process collecting /proc/fs/netfs/stats:
>
> function tail_netfs {
> echo -n > /mnt/vmtest/netfs-stats.log
> while true; do
> echo >> /mnt/vmtest/netfs-stats.log
> cat /proc/fs/netfs/stats >> /mnt/vmtest/netfs-stats.log
> sleep 1
> done
> }
> export -f tail_netfs
> nohup bash -c 'tail_netfs' & disown
I'm afraid, intermediate snapshots of this file aren't particularly useful -
just the last snapshot:
> Last recored /proc/fs/netfs/stats (note 0 retries):
>
> Reads : DR=0 RA=15184 RF=5 RS=0 WB=0 WBZ=0
> Writes : BW=488 WT=0 DW=0 WP=488 2C=0
> ZeroOps: ZR=7964 sh=0 sk=0
> DownOps: DL=15189 ds=15189 df=0 di=0
> CaRdOps: RD=0 rs=0 rf=0
> UpldOps: UL=488 us=488 uf=0
> CaWrOps: WR=0 ws=0 wf=0
> Retries: rq=0 rs=0 wq=0 ws=0
> Objs : rr=2 sr=1 foq=1 wsc=0
> WbLock : skip=0 wait=0
> -- FS-Cache statistics --
> Cookies: n=0 v=0 vcol=0 voom=0
> Acquire: n=0 ok=0 oom=0
> LRU : n=0 exp=0 rmv=0 drp=0 at=0
> Invals : n=0
> Updates: n=0 rsz=0 rsn=0
> Relinqs: n=0 rtr=0 drop=0
> NoSpace: nwr=0 ncr=0 cull=0
> IO : rd=0 wr=0 mis=0
Could you collect some tracing:
echo 1 >/sys/kernel/debug/tracing/events/netfs/netfs_read/enable
echo 1 >/sys/kernel/debug/tracing/events/netfs/netfs_write/enable
echo 1 >/sys/kernel/debug/tracing/events/netfs/netfs_write_iter/enable
echo 1 >/sys/kernel/debug/tracing/events/netfs/netfs_rreq/enable
echo 1 >/sys/kernel/debug/tracing/events/netfs/netfs_rreq_ref/enable
echo 1 >/sys/kernel/debug/tracing/events/netfs/netfs_sreq/enable
echo 1 >/sys/kernel/debug/tracing/events/netfs/netfs_sreq_ref/enable
echo 1 >/sys/kernel/debug/tracing/events/netfs/netfs_failure/enable
and then collect the tracelog:
trace-cmd show | bzip2 >some_file_somewhere.bz2
And if you could collect /proc/fs/netfs/requests as well, that will show the
debug IDs of the hanging requests. These can be used to grep the trace by
prepending "R=". For example, if you see:
REQUEST OR REF FL ERR OPS COVERAGE
======== == === == ==== === =========
00000043 WB 1 2120 0 0 @34000000 0/0
then:
trace-cmd show | grep R=00000043
Thanks,
David
next prev parent reply other threads:[~2025-02-10 11:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-28 0:33 [PATCH] netfs: Fix a number of read-retry hangs David Howells
2025-01-28 9:33 ` [PATCH] netfs: Add retry stat counters David Howells
2025-01-28 19:11 ` Ihor Solodrai
2025-02-03 18:01 ` Ihor Solodrai
2025-02-10 10:57 ` David Howells
2025-02-10 11:12 ` David Howells [this message]
2025-02-10 21:54 ` Ihor Solodrai
2025-02-10 23:18 ` David Howells
2025-02-11 0:54 ` Ihor Solodrai
2025-02-12 9:47 ` [PATCH] netfs: Fix setting NETFS_RREQ_ALL_QUEUED to be after all subreqs queued David Howells
2025-02-12 18:01 ` Ihor Solodrai
2025-01-28 16:51 ` [PATCH] netfs: Fix a number of read-retry hangs Marc Dionne
2025-02-11 1:07 ` Steve French
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=2986469.1739185956@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=asmadeus@codewreck.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=brauner@kernel.org \
--cc=ericvh@kernel.org \
--cc=ihor.solodrai@linux.dev \
--cc=jlayton@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux_oss@crudebyte.com \
--cc=lucho@ionkov.net \
--cc=marc.dionne@auristor.com \
--cc=netfs@lists.linux.dev \
--cc=pc@manguebit.com \
--cc=stfrench@microsoft.com \
--cc=v9fs@lists.linux.dev \
/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
all inboxes | Powered by JetHome®