From: Miklos Szeredi <miklos@szeredi.hu>
To: Amir Goldstein <amir73il@gmail.com>
Cc: linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: [RFC] Optional FUSE flush-on-close
Date: Thu, 21 Oct 2021 20:36:46 +0200 [thread overview]
Message-ID: <CAJfpegspE8e6aKd47uZtSYX8Y-1e1FWS0VL0DH2Skb9gQP5RJQ@mail.gmail.com> (raw)
In-Reply-To: <CAOQ4uxiJrEOHyHeY49dLMaJ4-8=RCGc+oawyWPrkuP28NRsT3Q@mail.gmail.com>
On Tue, 19 Oct 2021 at 18:12, Amir Goldstein <amir73il@gmail.com> wrote:
>
> Miklos,
>
> We have a use case where fuse_sync_writes() is disruptive
> to the workload.
>
> Some applications, which are not under our control do
> open(O_RDONLY);fstat();close() and are made to block waiting on writes
> that they are not responsible for.
>
> Looking at other network filesystems, cifs and nfs only flush on close
> for FMODE_WRITE files.
> Some older SMB flavors (smb1, smb2) do also flush on RDONLY files.
>
> In particular, our FUSE filesystem does not even implement FLUSH
> and it has writeback caching disabled, so the value of flush on close
> is even more questionable.
>
> Would you be willing to consider a patch that makes flush-on-close
> behavior optional for RDONLY files?
> If so, should I make this option available only when filesystem
> does not implement FLUSH or independent?
> Should I make an option to completely disable flush-on-close
> (i.e. like most disk filesystems)?
Flushing dirty pages for writable files is mandatory for the
writeback cache case. Otherwise you are correct, this could be
disabled.
How about FOPEN_NOFLUSH?
Thanks,
Miklos
>
> Thanks,
> Amir.
next prev parent reply other threads:[~2021-10-21 18:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-19 16:11 [RFC] Optional FUSE flush-on-close Amir Goldstein
2021-10-21 18:36 ` Miklos Szeredi [this message]
2021-10-22 7:34 ` Amir Goldstein
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=CAJfpegspE8e6aKd47uZtSYX8Y-1e1FWS0VL0DH2Skb9gQP5RJQ@mail.gmail.com \
--to=miklos@szeredi.hu \
--cc=amir73il@gmail.com \
--cc=linux-fsdevel@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;
as well as URLs for NNTP newsgroup(s).