mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daejun Park <daejun7.park@samsung.com>
To: "Pankaj Raghav (Samsung)" <pankaj.raghav@linux.dev>
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>,
	Daejun Park <daejun7.park@samsung.com>
Subject: RE:(2) (2) [PATCH v2 0/2] xfs: skip redundant fsync cache flushes
Date: Thu, 26 Nov 2026 11:31:29 +0900	[thread overview]
Message-ID: <20261126023129epcms2p114dbcd5fc1669a670ed09e71a24f44f2@epcms2p1> (raw)
In-Reply-To: <awWJ54ztH1pWu61B@quentin>

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

      parent reply	other threads:[~2026-11-26  2:31 UTC|newest]

Thread overview: 15+ 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-25  6:18       ` (2) " Christoph Hellwig
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     ` (2) " Pankaj Raghav (Samsung)
     [not found]     ` <CGME20261111064724epcas2p11498de70e50f2fbf4e21d5e7a723e01d@epcms2p1>
2026-11-26  2:31       ` Daejun Park [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=20261126023129epcms2p114dbcd5fc1669a670ed09e71a24f44f2@epcms2p1 \
    --to=daejun7.park@samsung.com \
    --cc=amir73il@gmail.com \
    --cc=bfoster@redhat.com \
    --cc=cem@kernel.org \
    --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 \
    --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

all inboxes | Powered by JetHome®