Linux EXT4 FS development
 help / color / mirror / Atom feed
From: "Theodore Tso" <tytso@mit.edu>
To: Tianyi Chen <hi@tychen.cc>
Cc: Jan Kara <jack@suse.cz>,
	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
Subject: Re: ext4: fsync waits for journal credits behind throttled writeback
Date: Wed, 2 Dec 2026 12:25:27 -0500	[thread overview]
Message-ID: <axBTlbudH9paf_dK@mit.edu> (raw)
In-Reply-To: <20261202063117.15509-1-hi@tychen.cc>

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

      reply	other threads:[~2026-12-02 17:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 16:37 ext4: fsync waits for journal credits behind throttled writeback Tianyi Chen
2026-12-02  5:01 ` Theodore Tso
2026-12-02  6:31   ` Tianyi Chen
2026-12-02 17:25     ` Theodore Tso [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=axBTlbudH9paf_dK@mit.edu \
    --to=tytso@mit.edu \
    --cc=adilger.kernel@dilger.ca \
    --cc=hi@tychen.cc \
    --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=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