From: Christoph Hellwig <hch@lst.de>
To: daejun7.park@samsung.com
Cc: Carlos Maiolino <cem@kernel.org>,
linux-xfs@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
Dave Chinner <dgc@kernel.org>,
"Darrick J. Wong" <djwong@kernel.org>,
Amir Goldstein <amir73il@gmail.com>,
Brian Foster <bfoster@redhat.com>,
Pankaj Raghav <pankaj.raghav@linux.dev>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] xfs: skip the fsync flush when a later flush has completed
Date: Mon, 30 Nov 2026 13:58:41 +0100 [thread overview]
Message-ID: <20261130125841.GB27971@lst.de> (raw)
In-Reply-To: <20261126-xfs-fsync-flush-seq-v3-1-830f5dd79fae@samsung.com>
On Thu, Nov 26, 2026 at 05:21:02PM +0900, Daejun Park via B4 Relay wrote:
> dbench -t 30, MB/s and max latency, mean of 3 runs
> 4 AGs, 128 clients: 1968 -> 6857, 0.4 -> 0.4 s
> 4 AGs, 256 clients: 3220 -> 6219, 0.3 -> 2.4 s
> 4 AGs, 512 clients: 4699 -> 5126, 0.4 -> 22.3 s
> 32 AGs, 512 clients: 4812 -> 3256, 0.5 -> 21.6 s
> 32 AGs, 512 clients, 1 GiB log: 5095 -> 9353, 0.4 -> 2.2 s
> (latencies over a second are unlink() calls in the inodegc throttle)
The 32 AGs, 512 default number looks a bit worrysome. What is the
file system and log size in this case?
> 4 AGs, 256 clients, no flushes: 6527 -> 6369, 13.8 -> 14.7 s
> 32 AGs, 512 clients, no flushes: 3515 -> 3419, 28.4 -> 27.8 s
> (no flushes: guest queue/write_cache set to write through)
And this looks really weird. The changes are fairly minimal, but
if reproducible something is wrong as we should not slow down
workloads that do not have a volatile write cache.
Is this just the extra atomics? Can you check if the overhead
disappears if you only maintain the counters if data or rt device
cache flushes are needed)?
> 1 GiB log). With the 64 MiB log, the patch reaches the inodegc throttle
So the default log about is 64MiB?
prev parent reply other threads:[~2026-11-30 12:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 8:21 [PATCH v3] xfs: skip the fsync flush when a later flush has completed Daejun Park via B4 Relay
2026-11-30 12:58 ` Christoph Hellwig [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=20261130125841.GB27971@lst.de \
--to=hch@lst.de \
--cc=amir73il@gmail.com \
--cc=bfoster@redhat.com \
--cc=cem@kernel.org \
--cc=daejun7.park@samsung.com \
--cc=dgc@kernel.org \
--cc=djwong@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=pankaj.raghav@linux.dev \
/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