Re: ext4: fsync waits for journal credits behind throttled writeback

From: Theodore Tso

Date: Wed Dec 02 2026 - 12:26:09 EST


On Wed, Dec 02, 2026 at 03:31:17PM -0500, Tianyi Chen wrote:
> On Wed, Dec 02, 2026 at 12:01:35AM -0500, Theodore Tso wrote:
> > Changes in the kernel, or in the workload, might make this problem
> > better or worse. But fundamentally this sort of thing has always
> > been an issue.
>
> Thanks, Ted! That clears it up for me. I wasn't expecting love letters
> in an fsync thread. :)

Yeah, this has come up before. A few years back, someone was trying
to use Kubernetes, and they wanted to cap how much I/O various
containers might be using so one container couldn't cause problems for
the others.

In that case, the only real solution was to use separate block devices
for each containers and then use prop i/o on the block device;
however, (a) this inhibits sharing between containers, which might not
be an issue, and (b) it's potentially wasteful of storage space. You
can use something like thin-provisioning (dm-thin) to mitigate the
waste of storage space, but this doesn't solve the data isolation
problem, and you still have wasted space because of the file system
metadata.

Cheers,

- Ted