public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Josef Bacik <josef@toxicpanda.com>
To: fdmanana@kernel.org
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 0/5] btrfs: make extent map shrinker more efficient and re-enable it
Date: Thu, 10 Oct 2024 10:48:26 -0400	[thread overview]
Message-ID: <20241010144826.GA10456@fedora> (raw)
In-Reply-To: <cover.1727174151.git.fdmanana@suse.com>

On Tue, Sep 24, 2024 at 11:45:40AM +0100, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
> 
> This makes the extent map shrinker run by a single task and asynchronously
> in a work queue, re-enables it by default and some cleanups. More details
> in the changelogs of each patch.
> 
> Filipe Manana (5):
>   btrfs: add and use helper to remove extent map from its inode's tree
>   btrfs: make the extent map shrinker run asynchronously as a work queue job
>   btrfs: simplify tracking progress for the extent map shrinker
>   btrfs: rename extent map shrinker members from struct btrfs_fs_info
>   btrfs: re-enable the extent map shrinker
> 

I think as a first step this is good.

I am concerned that async shrinking under heavy memory pressure will
lead to spurious OOM's because we're never waiting for the async
shrinker to do work.  I think that a next step would be to investigate
that possibility, and possibly use the nr_to_scan or some other
mechanism to figure out that we're getting called multiple times and
then wait for the shrinker to make progress.  This will keep the VM from
deciding we aren't making progress and OOM'ing.

That being said this series looks good to me, you can add

Reviewed-by: Josef Bacik <josef@toxicpanda.com>

to the whole thing.  Thanks,

Josef

  parent reply	other threads:[~2024-10-10 14:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-24 10:45 [PATCH 0/5] btrfs: make extent map shrinker more efficient and re-enable it fdmanana
2024-09-24 10:45 ` [PATCH 1/5] btrfs: add and use helper to remove extent map from its inode's tree fdmanana
2024-09-25 22:00   ` Qu Wenruo
2024-09-24 10:45 ` [PATCH 2/5] btrfs: make the extent map shrinker run asynchronously as a work queue job fdmanana
2024-09-25 22:08   ` Qu Wenruo
2024-09-26  9:01     ` Filipe Manana
2024-09-26  9:55       ` Qu Wenruo
2024-09-26 10:41         ` Filipe Manana
2024-09-26 22:02           ` Qu Wenruo
2024-09-27  8:10             ` Filipe Manana
2024-09-24 10:45 ` [PATCH 3/5] btrfs: simplify tracking progress for the extent map shrinker fdmanana
2024-09-24 10:45 ` [PATCH 4/5] btrfs: rename extent map shrinker members from struct btrfs_fs_info fdmanana
2024-09-24 10:45 ` [PATCH 5/5] btrfs: re-enable the extent map shrinker fdmanana
2024-09-26 10:00   ` Qu Wenruo
2024-09-26 10:52     ` Filipe Manana
2024-09-26 11:18       ` Filipe Manana
2024-09-25 22:11 ` [PATCH 0/5] btrfs: make extent map shrinker more efficient and re-enable it Qu Wenruo
2024-10-10 14:48 ` Josef Bacik [this message]
2024-10-10 16:49   ` Filipe Manana

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=20241010144826.GA10456@fedora \
    --to=josef@toxicpanda.com \
    --cc=fdmanana@kernel.org \
    --cc=linux-btrfs@vger.kernel.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