From: Daniel Kobras <kobras@puzzle-itc.de>
To: Rik Theys <Rik.Theys@esat.kuleuven.be>
Cc: Linux Nfs <linux-nfs@vger.kernel.org>
Subject: Re: non-stop kworker NFS/RPC write traffic even after unmount
Date: Fri, 18 Apr 2025 15:31:35 +0200 [thread overview]
Message-ID: <62cb66ff-b718-4369-a7f1-fd3bb01a7b16@puzzle-itc.de> (raw)
In-Reply-To: <42c84eb6-ede0-4e68-ae70-334365e2ae7f@esat.kuleuven.be>
Hi Rik!
Am 01.04.25 um 14:15 schrieb Rik Theys:
> On 4/1/25 2:05 PM, Daniel Kobras wrote:
>> Am 15.12.24 um 13:38 schrieb Rik Theys:
>>> 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?
>>
>> I'm currently looking at an issue that resembles your description
>> above (excess traffic to the server for data that was already written
>> and committed), and part of the packet capture also looks roughly
>> similar to what you've sent in a followup. Before I dig any deeper:
>> Did you manage to pinpoint or resolve the problem in the meantime?
>
> Our server is currently running the 6.12 LTS kernel and we haven't had
> this specific issue any more. But we were never able to reproduce it, so
> unfortunately I can't say for sure if it's fixed, or what fixed it :-/.
Thanks for the update! Indeed, in the meantime the affected environment
here stopped showing the reported behavior as well after a few days, and
I don't have a clear indication what might have been the fix, either.
When the issue still occurred, it could (once) be provoked by dd'ing 4GB
of /dev/zero to a test file on an NFSv4.2 mount. The network trace shows
that the file is completely written at wire speed. But after a five
second pause, the client then starts sending the same file again in
smaller chunks of a few hundred MB at five second intervals. So it
appears that the file's pages are background-flushed to storage again,
even though they've already been written out. On the NFS layer, none of
the passes look conspicuous to me: WRITE and COMMIT operations all get
NFS4_OK'ed by the server.
> Which kernel version(s) are your server and clients running?
The systems in the affected environment run Debian-packaged kernels. The
servers are on Debian's 6.1.0-32 which corresponds to upstream's
6.1.129. The issues was seen on clients running the same kernel version,
but also on older systems running Debian's 5.10.0-33, corresponding to
5.10.226 upstream. I've skimmed the list of patches that went into
either of these kernel versions, but nothing stood out as clearly related.
Kind regards,
Daniel
--
Daniel Kobras
Principal Architect
Puzzle ITC Deutschland
+49 7071 14316 0
www.puzzle-itc.de
--
Puzzle ITC Deutschland GmbH
Sitz der Gesellschaft: Eisenbahnstraße 1, 72072
Tübingen
Eingetragen am Amtsgericht Stuttgart HRB 765802
Geschäftsführer:
Lukas Kallies, Daniel Kobras, Mark Pröhl
next prev parent reply other threads:[~2025-04-18 13:31 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
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 [this message]
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=62cb66ff-b718-4369-a7f1-fd3bb01a7b16@puzzle-itc.de \
--to=kobras@puzzle-itc.de \
--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