blk-throttle: does io.max bound metadata writes over time?
From: Tianyi Chen
Date: Tue Dec 01 2026 - 11:37:35 EST
Hi Tejun, Josef, Jens,
Does io.max have a long-term rate guarantee for metadata writes?
I understand why blk-throttle lets metadata through to avoid stalling
a shared journal. What I couldn't tell from the documentation is what
happens to the guarantee if later I/O doesn't pay back the excess.
On unmodified f47d223627f8 (XFS, virtio disk, one KVM boot), io.stat
for a group doing metadata writes recorded 30.4x, 29.7x and 30.7x
its write IOPS limit in three consecutive 20-second windows. Over
the minute, io.stat counted 58,068 writes in that group; the disk
counted 58,297. This did not look like just an initial burst.
The __blk_throtl_bio() body is unchanged at mainline 19cc08c1a6a6.
I ran a conventional I/O check on that tip, not this metadata workload.
Thanks,
Tianyi