From: Shakeel Butt <shakeel.butt@linux.dev>
To: Jan Kara <jack@suse.cz>
Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org,
Matthew Wilcox <willy@infradead.org>,
lsf-pc@lists.linux-foundation.org
Subject: Re: [LSF/MM/BPF TOPIC] Filesystem inode reclaim
Date: Thu, 16 Apr 2026 17:06:23 -0700 [thread overview]
Message-ID: <aeF3UFzvTmapn2yh@linux.dev> (raw)
In-Reply-To: <i67kqas5wx2a25tzoleygwpeyunx6ovvf3t2e25yab3myxbazh@h7hctwxddhq4>
On Thu, Apr 16, 2026 at 12:06:59PM +0200, Jan Kara wrote:
> On Wed 15-04-26 10:45:11, Shakeel Butt wrote:
> > On Tue, Apr 14, 2026 at 11:15:48AM +0200, Jan Kara wrote:
[...]
> > One more question, I assume it is fs-dependent but is it possible to avoid
> > allocations (and thus reclaim) under fs-wide locks? One challenge/issue we at
> > Meta are seeing is (btrfs) lock holders getting stuck in reclaim causing
> > isolation issues.
>
> I don't think it is practically feasible. Often before you acquire locks
> and start working, you don't know how much memory you'll need. For simple
> operations you can go with worst case estimates and preallocation before
> acquiring locks (like we do e.g. with radix tree manipulations) but for
> complex mutations of data structures involving journalling etc. it isn't
> really practical anymore - too much code to execute, too many possibilities
> to consider, too many interactions with other parts of the system.
Thanks for the explanation and yes I am on the same page that moving memory
allocations out of lock scope is not practical. (I am working on an idea to avoid
(specific) lock holders to not get stuck in reclaim but it is orthogonal to your
topic, so, don't want to divert the discussion. I will add more info in Boris's
proposal)
prev parent reply other threads:[~2026-04-17 0:06 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-09 9:16 Jan Kara
2026-04-09 12:57 ` [Lsf-pc] " Amir Goldstein
2026-04-09 16:48 ` Boris Burkov
2026-04-10 10:00 ` Jan Kara
2026-04-10 11:08 ` Christoph Hellwig
2026-04-10 13:58 ` Jan Kara
2026-04-10 9:54 ` Jan Kara
2026-04-09 16:12 ` Darrick J. Wong
2026-04-09 17:37 ` Jeff Layton
2026-04-10 9:43 ` Jan Kara
2026-04-10 7:19 ` Christoph Hellwig
2026-04-10 20:56 ` Jan Kara
2026-04-10 21:14 ` Andreas Dilger
2026-04-13 7:45 ` Jan Kara
2026-04-10 9:23 ` Christian Brauner
2026-04-10 10:14 ` Jan Kara
2026-04-13 21:23 ` Shakeel Butt
2026-04-14 9:15 ` Jan Kara
2026-04-15 17:45 ` Shakeel Butt
2026-04-16 10:06 ` Jan Kara
2026-04-17 0:06 ` Shakeel Butt [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=aeF3UFzvTmapn2yh@linux.dev \
--to=shakeel.butt@linux.dev \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lsf-pc@lists.linux-foundation.org \
--cc=willy@infradead.org \
/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