Linux NFS development
 help / color / mirror / Atom feed
From: Trond Myklebust <trondmy@hammerspace.com>
To: "Rik.Theys@esat.kuleuven.be" <Rik.Theys@esat.kuleuven.be>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: non-stop kworker NFS/RPC write traffic even after unmount
Date: Mon, 16 Dec 2024 00:34:02 +0000	[thread overview]
Message-ID: <87314e6d09a96a5cffc13dd1b9cb94da7d94e376.camel@hammerspace.com> (raw)
In-Reply-To: <79767ded-466f-44a5-b15a-fde5af1b03c7@esat.kuleuven.be>

On Sun, 2024-12-15 at 13:38 +0100, Rik Theys wrote:
> Hi,
> 
> We are experiencing an issue on our Rocky 9 NFS server and Rocky 8, 
> Rocky 9 and Fedora 41 clients.
> 
> The server is (now) running upstream Linux 6.11.11 and the Fedora 41 
> clients are running the Fedora 6.11.11 kernel. The Rocky 8 and 9 
> machines are running the latest Rocky 8/9 kernels.
> 
> Suddenly, a number of clients start to send an abnormal amount of NFS
> traffic to the server that saturates their link and never seems to
> stop. 
> Running iotop on the clients shows kworker-{rpciod,nfsiod,xprtiod} 
> processes generating the write traffic. On the server side, the
> system 
> seems to process the traffic as the disks are processing the write
> requests.
> 
> This behavior continues even after stopping all user processes on the
> clients and unmounting the NFS mount on the client. Is this normal? I
> was under the impression that once the NFS mount is unmounted no
> further 
> traffic to the server should be visible?
> 
> Not all clients seem to trigger this issue. On a Fedora 41 client
> that 
> (auto)mounts home directories from the NFS server the behavior seems
> to 
> be triggered when I start Thunderbird and let it process a lot of new
> mail (mail from the IMAP server is stored in the thunderbird cache 
> that's stored in the nfs-mounted home directory). This triggers the
> high 
> write traffic of the kworker threads. At first, thunderbird behaves 
> normally but gets really slow over time. Stopping thunderbird does
> not 
> stop the kworker threads and they keep sending a lot of traffic to
> the 
> server.
> 
> Can you point me to some steps to further diagnose this? Where can I 
> find what triggers the creation of these kworker threads? Why does
> iotop 
> show the write traffic with these threads, and not the thunderbird
> threads?
> 
> There haven't been many changes to our kernels on the Rocky side 
> recently. Is it possible a Fedora 41 client running a more recent
> kernel 
> somehow triggers a behavior on the server that results in Rocky
> clients 
> to start to misbehave?
> 

Which operations are the clients sending to the server? Ideally you'll
want to look at a wireshark trace to see what is being send on the
wire, but it might be sufficient to watch the 'nfsstat' output on both
the clients and server to see what is anomalous or different about the
traffic when the issue is occurring.

-- 
Trond Myklebust
Linux NFS client maintainer, Hammerspace
trond.myklebust@hammerspace.com



  reply	other threads:[~2024-12-16  0:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-15 12:38 non-stop kworker NFS/RPC write traffic even after unmount Rik Theys
2024-12-16  0:34 ` Trond Myklebust [this message]
2024-12-16  7:35   ` Rik Theys
2024-12-16  8:49   ` Rik Theys
2025-04-01 12:05 ` Daniel Kobras
2025-04-01 12:15   ` Rik Theys
2025-04-01 12:20     ` Rik Theys
2025-04-18 13:31     ` Daniel Kobras
2025-05-16  5:51       ` Rik Theys
2025-05-16  6:17         ` Rik Theys
2025-05-16  9:47           ` Rik Theys
2025-05-16 11:32             ` Rik Theys
2025-05-16 12:19               ` Chuck Lever
2025-05-16 12:36                 ` Rik Theys
2025-05-16 12:59                   ` Chuck Lever
2025-05-16 13:09                     ` Rik Theys
2025-05-16 13:33                       ` Chuck Lever

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=87314e6d09a96a5cffc13dd1b9cb94da7d94e376.camel@hammerspace.com \
    --to=trondmy@hammerspace.com \
    --cc=Rik.Theys@esat.kuleuven.be \
    --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