Re: (2) [PATCH v2 0/2] xfs: skip redundant fsync cache flushes

From: Pankaj Raghav (Samsung)

Date: Tue Nov 24 2026 - 08:08:50 EST


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