Linux EXT4 FS development
 help / color / mirror / Atom feed
* ext4: fsync waits for journal credits behind throttled writeback
@ 2026-12-01 16:37 Tianyi Chen
  0 siblings, 0 replies; only message in thread
From: Tianyi Chen @ 2026-12-01 16:37 UTC (permalink / raw)
  To: Theodore Ts'o, Jan Kara
  Cc: Andreas Dilger, Baokun Li, Ojaswin Mujoo, Ritesh Harjani,
	Zhang Yi, linux-ext4, linux-kernel, hi

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-01 16:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 16:37 ext4: fsync waits for journal credits behind throttled writeback Tianyi Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox