Linux block layer
 help / color / mirror / Atom feed
From: Tianyi Chen <hi@tychen.cc>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>,
	David Sterba <dsterba@suse.com>, Qu Wenruo <wqu@suse.com>,
	Tejun Heo <tj@kernel.org>, Josef Bacik <josef@toxicpanda.com>
Cc: Chris Mason <mason@kernel.org>, Jens Axboe <axboe@kernel.dk>,
	Ming Lei <tom.leiming@gmail.com>, Yu Kuai <yukuai@fygo.io>,
	Mark Korenberg <socketpair@gmail.com>,
	linux-btrfs@vger.kernel.org, linux-block@vger.kernel.org,
	cgroups@vger.kernel.org, hi@tychen.cc
Subject: Re: btrfs, blk-throttle: cross-subvolume fsync stalls behind throttled write_dev_flush()
Date: Sat, 28 Nov 2026 17:55:08 +0900	[thread overview]
Message-ID: <20261128085508.2227850-1-hi@tychen.cc> (raw)
In-Reply-To: <a0ae6351-2eb1-41b9-b085-db924442c685@gmx.com>

On 2026/11/28 07:37, Qu Wenruo wrote:
> What's the point here? The series (older or merged version) has never
> touched the barrier part, nor my comment.
>
> This looks like some unrelated LLM word salad.
>
> And again, make LLM generated reports shorter for human readers.

Sorry, you're right. Neither the series nor your comment is about the
flush, and that paragraph should not have been in the report.

[...]

> I'd prefer more advice from block layer on such separate flush and sb
> writes.
> Is it recommended to use the same flags for such cases?

One result that matters for this question: with the super block flags
on the flush, a cgroup can escape io.max. One process under wiops=32
doing create + 64-byte write + fsync in a loop (the files stay inline)
ran at 2542 io.stat wios/s over 60s, 79x the cap; under wbps=512KiB/s
it ran at 55x in io.stat wbytes. Stock stays within the cap (0.94x and
1.00x). One run per kernel. The flush flags are the only difference
between the two kernels, so on this path the untagged flush is what
keeps the group at its cap. This is the unpaced fsync loop my first
mail listed as not tested.

Thanks,
Tianyi

      reply	other threads:[~2026-11-28  8:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 12:14 btrfs, blk-throttle: cross-subvolume fsync stalls behind throttled write_dev_flush() Tianyi Chen
2026-11-27 21:07 ` Qu Wenruo
2026-11-28  8:55   ` Tianyi Chen [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=20261128085508.2227850-1-hi@tychen.cc \
    --to=hi@tychen.cc \
    --cc=axboe@kernel.dk \
    --cc=cgroups@vger.kernel.org \
    --cc=dsterba@suse.com \
    --cc=josef@toxicpanda.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=mason@kernel.org \
    --cc=quwenruo.btrfs@gmx.com \
    --cc=socketpair@gmail.com \
    --cc=tj@kernel.org \
    --cc=tom.leiming@gmail.com \
    --cc=wqu@suse.com \
    --cc=yukuai@fygo.io \
    /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