From: "Pankaj Raghav (Samsung)" <pankaj.raghav@linux.dev>
To: Daejun Park <daejun7.park@samsung.com>
Cc: Dave Chinner <dgc@kernel.org>, Carlos Maiolino <cem@kernel.org>,
"linux-xfs@vger.kernel.org" <linux-xfs@vger.kernel.org>,
Christoph Hellwig <hch@lst.de>,
Dave Chinner <david@fromorbit.com>,
"Darrick J. Wong" <djwong@kernel.org>,
Amir Goldstein <amir73il@gmail.com>,
Brian Foster <bfoster@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: (2) [PATCH v2 0/2] xfs: skip redundant fsync cache flushes
Date: Tue, 24 Nov 2026 14:08:23 +0100 [thread overview]
Message-ID: <awWJ54ztH1pWu61B@quentin> (raw)
In-Reply-To: <20261117023345epcms2p5117009330b6c600f68c598d5e08aef5e@epcms2p5>
On Tue, Nov 17, 2026 at 11:33:45AM +0900, Daejun Park wrote:
> On Wed, Nov 11, 2026 at 05:47:11PM +1100, Dave Chinner wrote:
> > On Wed, Nov 11, 2026 at 12:17:10PM +0900, Daejun Park via B4 Relay wrote:
> [...]
> > > 16 fio jobs of 4k append + fsync in a QEMU guest: 1111 -> 4498
> > > fsyncs/s.
>
> Correction: fio preallocated these files by default, so they were not
> appends. Real appends (--fallocate=none) on the same disk give
> 1311 -> 3416 fsyncs/s.
>
> [...]
> > Hence the numbers look promising for low concurrency fsync
> > workloads, but I'd really like to know waht happens at the high end
> > when log force count rather than per-file fsync latency is the
> > performance limiting factor. I suspect that it will improve
> > performance by further mitigating the number of log writes and/or
> > cache flushes that need to be done, but it really needs to be
> > tested....
>
> Thanks. When flushes are expensive, v2 is faster from 128 to 512
> clients but writes more log per fsync. When flushes are cheap, v2 sends
It looks like the delay caused by flush acted as a group commit delay
which allowed for more batching and optimization before the logs were
written out?
> 60-80% fewer flushes and changes throughput and log writes per fsync
> by under 5%.
>
> Setup: dbench 4.00 -t 30 in a QEMU guest (40 GiB) on a 990 PRO
> partition, for-next 48326a2382d8 without and with v2, three runs each,
> execute phase only.
>
> 1) virtio-blk cache=none, volatile write cache on, 8 vCPUs:
>
> clients MB/s log writes/fsync max_latency ms
> 128 1963 -> 6886 0.10 -> 0.12 433 -> 331
> 256 3173 -> 6282 0.11 -> 0.38 312 -> 1956
> 512 4696 -> 5294 0.13 -> 0.37 468 -> 20595
> 1024 4466 -> 4751 0.28 -> 0.38 11128 -> 28947
> 2048 3973 -> 4043 0.25 -> 0.38 21153 -> 21225
>
Could you detail your setup and how you measure log writes/fsync and the
latency numbers?
I can also try to reproduce it locally.
--
Pankaj
prev parent reply other threads:[~2026-11-24 13:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 3:17 Daejun Park via B4 Relay
2026-11-11 3:17 ` [PATCH v2 1/2] xfs: number the cache flushes submitted to each buftarg Daejun Park via B4 Relay
2026-11-11 14:22 ` Brian Foster
2026-11-20 18:14 ` Christoph Hellwig
[not found] ` <CGME20261120181433epcas2p26ece3eeb06a9aef1612ea1f4f13238a9@epcms2p7>
2026-11-24 2:38 ` Daejun Park
2026-11-11 3:17 ` [PATCH v2 2/2] xfs: skip the fsync flush when a later flush has completed Daejun Park via B4 Relay
2026-11-11 14:22 ` Brian Foster
[not found] ` <CGME20261111142234epcas2p48d80bde0c65d09a2fd8bdfdc9bdd2b1f@epcms2p6>
2026-11-12 2:39 ` Daejun Park
2026-11-20 18:17 ` Christoph Hellwig
[not found] ` <CGME20261120181715epcas2p3fe7b223290792dc835b5dff5374b2cbc@epcms2p7>
2026-11-24 2:39 ` Daejun Park
2026-11-11 6:47 ` [PATCH v2 0/2] xfs: skip redundant fsync cache flushes Dave Chinner
[not found] ` <CGME20261111064724epcas2p11498de70e50f2fbf4e21d5e7a723e01d@epcms2p5>
2026-11-17 2:33 ` Daejun Park
2026-11-24 13:08 ` Pankaj Raghav (Samsung) [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=awWJ54ztH1pWu61B@quentin \
--to=pankaj.raghav@linux.dev \
--cc=amir73il@gmail.com \
--cc=bfoster@redhat.com \
--cc=cem@kernel.org \
--cc=daejun7.park@samsung.com \
--cc=david@fromorbit.com \
--cc=dgc@kernel.org \
--cc=djwong@kernel.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@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
all inboxes | Powered by JetHome®