Re: [PATCH v3] xfs: skip the fsync flush when a later flush has completed
From: Christoph Hellwig
Date: Mon Nov 30 2026 - 07:59:03 EST
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?