From: Mike Snitzer <snitzer@hammerspace.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Jan Kara <jack@suse.cz>, Matthew Wilcox <willy@infradead.org>,
Christian Brauner <brauner@kernel.org>,
linux-mm@kvack.org, linux-fsdevel@vger.kernel.org,
Chuck Lever <cel@kernel.org>, Jeff Layton <jlayton@kernel.org>,
linux-nfs@vger.kernel.org
Subject: Re: [PATCH v12 0/7] mm, iomap, NFSD: stop DONTCACHE writes reading back shared pages
Date: Thu, 3 Dec 2026 10:13:21 -0500 [thread overview]
Message-ID: <axGHEUegsqw42dWO@hammerspace.com> (raw)
In-Reply-To: <axF2q7AuLuSzQ75M@hammerspace.com>
[trimmed my frustrations, my point stands: misaligned IO matters]
On Thu, Dec 03, 2026 at 09:03:23AM -0500, Mike Snitzer wrote:
> On Thu, Dec 03, 2026 at 01:22:06AM -0800, Christoph Hellwig wrote:
>
> > all my points about forcing this benchmarketing code onto the kernel
> > still stand.
>
> Handling misaligned IO isn't some conspiracy.
>
> Hopefully Jan, Matthew and/or Christian ... realize my changes to
> DONTCACHE ...
are meaningful and that their complexity isolated to:
1) DONTCACHE
2) associated generic MM code's flag checks minimal enough that the
demonstrated wins are not something we should ignore.
> If not ... I tried.
AND I will keep trying because these changes are important.
So if we could take a step back and not get too hung up (on there being
a benchmark that shines a big spotlight on how bad Linux is at handling
misaligned IO) I'd _really_ appreciate it.
For what its worth: I understand the concern about making changes
to better suboptimal IO ("doctor it hurts when"), this isn't my first
foray into upstream Linux kernel worthiness. What I'm saying is:
that doubt is noted, but Linux should handle misaligned IO better _if_
the cost doesn't come at the expense of optimal IO we do want to
encourage.
I just want misaligned IO to work better, because as much as I hate
misaligned IO it shouldn't gum up the works, and these narrow changes
actually achieve that goal for all Linux filesystems (XFS and NFS
included) without too much complexity.
Please test the changes, try to prove my claims wrong about these
changes not causing inefficiencies for the fast path (optimally aligned
IO, etc).
Thanks,
Mike
prev parent reply other threads:[~2026-12-03 15:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 19:09 [PATCH v12 0/7] mm, iomap, NFSD: stop DONTCACHE writes reading back shared pages Mike Snitzer
2026-11-12 19:09 ` [PATCH v12 1/7] mm: move clearing the dropbehind flag of a found folio into a helper Mike Snitzer
2026-11-16 10:47 ` Jan Kara
2026-11-12 19:09 ` [PATCH v12 2/7] mm: take a folio off WB_DONTCACHE_DIRTY only if it was counted there Mike Snitzer
2026-11-13 19:09 ` sashiko-bot
2026-11-16 10:48 ` Jan Kara
2026-11-12 19:09 ` [PATCH v12 3/7] mm: expose WB_DONTCACHE_DIRTY in bdi debugfs stats Mike Snitzer
2026-11-16 10:48 ` Jan Kara
2026-11-12 19:09 ` [PATCH v12 4/7] mm: add folio_mark_dropbehind() to mark a folio dropbehind and account it Mike Snitzer
2026-11-12 19:09 ` [PATCH v12 5/7] mm, iomap: keep a partially covered page until a DONTCACHE write completes it Mike Snitzer
2026-11-12 19:09 ` [PATCH v12 6/7] mm, iomap: let a DONTCACHE writer complete its shared pages itself Mike Snitzer
2026-11-12 19:09 ` [PATCH v12 7/7] NFSD: drop a shared boundary page only once both WRITEs have written it Mike Snitzer
2026-11-16 11:02 ` [PATCH v12 0/7] mm, iomap, NFSD: stop DONTCACHE writes reading back shared pages Jan Kara
2026-11-16 20:47 ` Mike Snitzer
2026-12-02 23:06 ` Mike Snitzer
2026-12-03 9:22 ` Christoph Hellwig
2026-12-03 14:03 ` Mike Snitzer
2026-12-03 15:13 ` Mike Snitzer [this message]
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=axGHEUegsqw42dWO@hammerspace.com \
--to=snitzer@hammerspace.com \
--cc=brauner@kernel.org \
--cc=cel@kernel.org \
--cc=hch@infradead.org \
--cc=jack@suse.cz \
--cc=jlayton@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-nfs@vger.kernel.org \
--cc=willy@infradead.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