All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@kernel.org>
To: Chuck Lever <cel@kernel.org>
Cc: Christoph Hellwig <hch@infradead.org>,
	linux-nfs@vger.kernel.org, Chuck Lever <chuck.lever@oracle.com>
Subject: Re: [RFC PATCH] NFSD: Add a "file_sync" export option
Date: Thu, 30 Oct 2025 12:32:03 -0400	[thread overview]
Message-ID: <aQOTA76KRGMyVR75@kernel.org> (raw)
In-Reply-To: <d046ee5e-4944-43aa-b859-21d85eb55dd6@kernel.org>

On Thu, Oct 30, 2025 at 11:47:15AM -0400, Chuck Lever wrote:
> On 10/30/25 11:33 AM, Mike Snitzer wrote:
> >>> This patch is a year old, so won't apply to current kernels. But
> >>> the idea is similar to Mike's suggestion that NFSD_IO_DIRECT
> >>> should promote all NFS WRITEs to durable writes, but is much
> >>> simpler in execution. Any interest in revisiting this approach?
> >> This is a much better approach than overloading direct I/O with
> >> these semantics.  I'd still love to see actual use cases for which
> >> we see benefits before merging it.
> 
> And the reason it hasn't been merged yet is because I couldn't find any
> such workloads. Even tmpfs was a little slower without the COMMITs,
> to my surprise.
> 
> 
> > Yes.  Also thinking that a "data_sync" export option would be
> > appropriate too (that way to have the ability to try all stable_how
> > variants).  Chuck?  If something like that sounds OK in theory I can
> > rebase your patch (still attributed to you) and then create a separate
> > to add "data_sync" and then work to get the permutations tested.
> 
> If you want to experiment, feel free.
> 
> As always, I'm not enthusiastic about exposing a bunch of tuning knobs
> like this without a clear understanding of how it benefits users and
> what documentation might look like explaining how to use it. So for the
> moment, this patch is, as labeled in the Subject: field, an RFC, and not
> a firm/official proposal for an API change. (Note that IIRC, adding the
> new export option was an idea we had /before/ we had
> /sys/kernel/debug/nfsd available to us).
> 
> Or to put it differently, just because I proposed this patch does not
> mean it's automatically "Chuck approved". I'm interested in experimental
> results first. I'm thinking you have access to big iron on which to try
> it.
> 
> But, in the bigger picture, I think comparison between this approach
> and NFSD_IO_DIRECT might be illustrative.

Sure, I'm very interested in the data myself.  A patch to easily
enable control is all I'm after. So given what you said above, I'll
actually just run with introducing 2 new variants of NFSD_IO_DIRECT
for now, so like I mentioned in my previous reply to hch:

NFSD_IO_DIRECT_DATA_SYNC
NFSD_IO_DIRECT_FILE_SYNC

Because it sounds like it is only in the context of NFSD_IO_DIRECT
where there is any doubt about whether using NFS_FILE_SYNC helpful.
So it bounds the supportability exposure, and makes it clear these
knobs are for experimental purposes relative to NFS_IO mode controls.

  reply	other threads:[~2025-10-30 16:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-30 12:56 [RFC PATCH] NFSD: Add a "file_sync" export option Chuck Lever
2025-10-30 14:20 ` Christoph Hellwig
2025-10-30 15:33   ` Mike Snitzer
2025-10-30 15:45     ` Christoph Hellwig
2025-10-30 16:16       ` Mike Snitzer
2025-10-30 15:47     ` Chuck Lever
2025-10-30 16:32       ` Mike Snitzer [this message]
2025-10-30 19:13         ` Chuck Lever
2025-10-30 23:39           ` Mike Snitzer

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=aQOTA76KRGMyVR75@kernel.org \
    --to=snitzer@kernel.org \
    --cc=cel@kernel.org \
    --cc=chuck.lever@oracle.com \
    --cc=hch@infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.