From: Chuck Lever <chuck.lever@oracle.com>
To: Mike Snitzer <snitzer@kernel.org>
Cc: Jeff Layton <jlayton@kernel.org>, linux-nfs@vger.kernel.org
Subject: Re: [PATCH v4 2/3] NFSD: add new NFSD_IO_DIRECT variants that may override stable_how
Date: Thu, 6 Nov 2025 15:35:29 -0500 [thread overview]
Message-ID: <7d9bcc0c-d997-4fb9-aa0c-831b8f08a9b0@oracle.com> (raw)
In-Reply-To: <aQ0CUPcYYg6-5IJ1@kernel.org>
On 11/6/25 3:17 PM, Mike Snitzer wrote:
>> I asked for the use of a file_sync export option because we need to test
>> the BUFFERED cache mode as well as DIRECT. So, continue to experiment
>> with this one, but I don't plan to merge it for now.
> Doesn't the client have the ability to control NFS_UNSTABLE,
> NFS_DATA_SYNC and NFS_FILE_SYNC already? What experiment are you
> looking to run?
>
> If just looking to compare NFS_FILE_SYNC performance of
> NFSD_IO_BUFFERED versus NFSD_IO_DIRECT then using the client control
> is fine right?
Not necessarily. You can mount with "sync" but for large application
write requests, that might still generate UNSTABLE + immediate COMMIT.
> Anyway, maybe I'm just being overly concerned about the permanence of
> an export option. I thought it best to avoid export for now given we
> do seem to have adequate controls for a NFS_FILE_SYNC performance
> bakeoff.
I agree on not rushing another administrative API change. I was thinking
you would be prototyping some of this stuff first and playing with it
for a little while before it goes upstream.
It feels like it would be much more straightforward to implement an
export option that applies to all cache modes rather than gluing it to
DIRECT.
And as I said above, "no plan to merge it for now," meaning it's still
on the table for sometime down the road. I have some other ideas I'm
cooking up, such as using BDI congestion to control NFS WRITE
throttling.
But let's get the base direct WRITE stuff finished.
--
Chuck Lever
next prev parent reply other threads:[~2025-11-06 20:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-05 17:42 [PATCH v4 0/3] [PATCH 0/3] NFSD: additional NFSD Direct changes Mike Snitzer
2025-11-05 17:42 ` [PATCH v4 1/3] NFSD: avoid DONTCACHE for misaligned ends of misaligned DIO WRITE Mike Snitzer
2025-11-05 18:47 ` Chuck Lever
2025-11-07 15:29 ` Christoph Hellwig
2025-11-05 17:42 ` [PATCH v4 2/3] NFSD: add new NFSD_IO_DIRECT variants that may override stable_how Mike Snitzer
2025-11-05 18:49 ` Chuck Lever
2025-11-06 20:17 ` Mike Snitzer
2025-11-06 20:35 ` Chuck Lever [this message]
2025-11-06 22:56 ` Mike Snitzer
2025-11-07 14:48 ` Chuck Lever
2025-11-07 15:34 ` Christoph Hellwig
2025-11-07 15:35 ` Chuck Lever
2025-11-07 15:40 ` Christoph Hellwig
2025-11-07 15:30 ` Christoph Hellwig
2025-11-05 17:42 ` [PATCH v4 3/3] NFSD: update Documentation/filesystems/nfs/nfsd-io-modes.rst Mike Snitzer
2025-11-05 18:50 ` 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=7d9bcc0c-d997-4fb9-aa0c-831b8f08a9b0@oracle.com \
--to=chuck.lever@oracle.com \
--cc=jlayton@kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=snitzer@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;
as well as URLs for NNTP newsgroup(s).