From: Christoph Hellwig <hch@infradead.org>
To: Daniel Gomez <da.gomez@kernel.org>
Cc: Christoph Hellwig <hch@infradead.org>,
linux-xfs@vger.kernel.org, Luis Chamberlain <mcgrof@kernel.org>,
Daniel Gomez <da.gomez@samsung.com>,
Pankaj Raghav <p.raghav@samsung.com>,
gost.dev@samsung.com
Subject: Re: [PATCH] mkfs: use stx_blksize for dev block size by default
Date: Wed, 12 Feb 2025 20:10:04 -0800 [thread overview]
Message-ID: <Z61wnFLUGz6d_WSh@infradead.org> (raw)
In-Reply-To: <323gt6bngrysa3i6nzgih6golhs3wovawnn5chjcrkegajinw7@fxdjlji5xbxb>
On Fri, Feb 07, 2025 at 11:04:06AM +0100, Daniel Gomez wrote:
> > > performance in the stx_blksize field of the statx data structure. This
> > > change updates the current default 4 KiB block size for all devices
> > > reporting a minimum I/O larger than 4 KiB, opting instead to query for
> > > its advertised minimum I/O value in the statx data struct.
> >
> > UUuh, no. Larger block sizes have their use cases, but this will
> > regress performance for a lot (most?) common setups. A lot of
> > device report fairly high values there, but say increasing the
>
> Are these devices reporting the correct value?
Who defines what "correct" means to start with?
> As I mentioned in my
> discussion with Darrick, matching the minimum_io_size with the "fs
> fundamental blocksize" actually allows to avoid RMW operations (when
> using the default path in mkfs.xfs and the value reported is within
> boundaries).
At least for buffered I/O it does not remove RMW operations at all,
it just moves them up.
And for plenty devices the min_io size might be set to larger than
LBA size, but the device is still reasonably efficient at handling
smaller I/O (e.g. because it has power loss protection and stages
writes in powerfail protected memory).
next prev parent reply other threads:[~2025-02-13 4:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-06 19:00 [PATCH] mkfs: use stx_blksize for dev block size by default da.gomez
2025-02-06 22:27 ` Darrick J. Wong
2025-02-06 22:50 ` Luis Chamberlain
2025-02-06 23:07 ` Darrick J. Wong
2025-02-07 9:12 ` Daniel Gomez
2025-02-07 19:16 ` Luis Chamberlain
2025-02-07 9:39 ` Daniel Gomez
2025-02-07 19:26 ` Luis Chamberlain
2025-02-07 19:31 ` Darrick J. Wong
2025-02-07 19:44 ` Luis Chamberlain
2025-02-07 4:30 ` Christoph Hellwig
2025-02-07 10:04 ` Daniel Gomez
2025-02-13 4:10 ` Christoph Hellwig [this message]
2025-02-13 13:26 ` Daniel Gomez
2025-02-18 8:30 ` Christoph Hellwig
2025-05-09 14:27 ` Luis Chamberlain
2025-05-13 5:33 ` Christoph Hellwig
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=Z61wnFLUGz6d_WSh@infradead.org \
--to=hch@infradead.org \
--cc=da.gomez@kernel.org \
--cc=da.gomez@samsung.com \
--cc=gost.dev@samsung.com \
--cc=linux-xfs@vger.kernel.org \
--cc=mcgrof@kernel.org \
--cc=p.raghav@samsung.com \
/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.