Linux EXT4 FS development
 help / color / mirror / Atom feed
From: Tianyi Chen <hi@tychen.cc>
To: Theodore Ts'o <tytso@mit.edu>, Jan Kara <jack@suse.cz>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>,
	Baokun Li <libaokun@linux.alibaba.com>,
	Ojaswin Mujoo <ojaswin@linux.ibm.com>,
	Ritesh Harjani <ritesh.list@gmail.com>,
	Zhang Yi <yi.zhang@huawei.com>,
	linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org,
	hi@tychen.cc
Subject: ext4: fsync waits for journal credits behind throttled writeback
Date: Wed,  2 Dec 2026 01:37:08 +0900	[thread overview]
Message-ID: <20261201163709.467333-1-hi@tychen.cc> (raw)

Hi Ted, Jan,

An uncapped writer's fsync slowed down when it shared an ext4
filesystem with a write-limited group (io.max wbps=16 MiB/s). On
unmodified f47d223627f8 in one KVM boot, the uncapped writer's fsync
p95 was 222 ms on the shared filesystem and 3.8 ms with separate
filesystems on the same disk. The other group's cap was unchanged.

With the default dioread_nolock, I saw 28 add_transaction_credits()
waits of at least 10 ms on the shared filesystem (12.2 s total), and
none with separate filesystems. In all 28, the task that woke the
writer was a kworker just seen entering jbd2_journal_start_reserved().
This test did not identify the particular reservation or bio.

In a separate run on a modified kernel I could follow the flusher's
reservation until the conversion worker returned the credits. Is it
expected that a group's pending writeback can tie up journal credits
long enough to delay an unrelated writer on the same filesystem?

Thanks,
Tianyi

                 reply	other threads:[~2026-12-01 16:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20261201163709.467333-1-hi@tychen.cc \
    --to=hi@tychen.cc \
    --cc=adilger.kernel@dilger.ca \
    --cc=jack@suse.cz \
    --cc=libaokun@linux.alibaba.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ojaswin@linux.ibm.com \
    --cc=ritesh.list@gmail.com \
    --cc=tytso@mit.edu \
    --cc=yi.zhang@huawei.com \
    /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