RE:(2) (2) [PATCH v2 0/2] xfs: skip redundant fsync cache flushes
From: Daejun Park
Date: Wed Nov 25 2026 - 21:31:48 EST
On Tue, Nov 24, 2026 at 02:08:23PM +0100, Pankaj Raghav (Samsung) wrote:
> 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?
At 128 clients, where neither kernel stalls in unlink(), v2 does 18%
more log writes per fsync (0.10 -> 0.12 in my table). The large
increase from 256 clients comes with the unlink() stalls.
[...]
> Could you detail your setup and how you measure log writes/fsync and the
> latency numbers?
Setup 1 is a QEMU guest with 8 vCPUs. Its disk is an 80 GiB partition
of a Samsung 990 PRO, attached as virtio-blk with cache=none. The
kernel is for-next 48326a2382d8 without XFS_DEBUG, KASAN or lockdep,
with and without v2. Each run does mkfs.xfs with defaults and then
"dbench -t 30 N" with the client.txt load file from dbench.
Log writes per fsync is the change in the first field of the "log"
line in /proc/fs/xfs/stat over the dbench execute phase, divided by
the xfs_file_fsync() calls that bpftrace counts over the same phase.
max_latency is the value dbench prints. The values over 1 s are
unlink() calls.
> I can also try to reproduce it locally.
Thanks, that would help.
Best regards,
Daejun