From: Josef Bacik <josef@toxicpanda.com>
To: Stefan Roesch <shr@fb.com>
Cc: linux-btrfs@vger.kernel.org, kernel-team@fb.com
Subject: Re: [PATCH v1 0/3] btrfs: add sysfs switch to get/set metadata size
Date: Mon, 28 Feb 2022 14:30:07 -0500 [thread overview]
Message-ID: <Yh0iv8qO9I9k3N7Q@localhost.localdomain> (raw)
In-Reply-To: <20220208193122.492533-1-shr@fb.com>
On Tue, Feb 08, 2022 at 11:31:19AM -0800, Stefan Roesch wrote:
> The btrfs allocator is currently not ideal for all workloads. It tends
> to suffer from overallocating data block groups and underallocating
> metadata block groups. This results in filesystems becoming read-only
> even though there is plenty of "free" space.
>
> This patch adds the ability to query and set the metadata allocation
> size.
>
> Patch 1: btrfs: store chunk size in space-info struct.
> Store the stripe and chunk size in the btrfs_space_info structure
> to be able to expose and set the metadata allocation size.
>
> Patch 2: btrfs: expose chunk size in sysfs.
> Add a sysfs entry to read and write the above information.
>
> btrfs: add force_chunk_alloc sysfs entry to force allocation
> For testing purposes and under a debug flag add a sysfs entry to
> force a space allocation.
>
>
You can add
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Thanks,
Josef
next prev parent reply other threads:[~2022-02-28 19:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-08 19:31 [PATCH v1 0/3] btrfs: add sysfs switch to get/set metadata size Stefan Roesch
2022-02-08 19:31 ` [PATCH v1 1/3] btrfs: store chunk size in space-info struct Stefan Roesch
2022-04-04 16:36 ` David Sterba
2022-06-16 20:53 ` Stefan Roesch
2022-02-08 19:31 ` [PATCH v1 2/3] btrfs: expose chunk size in sysfs Stefan Roesch
2022-04-04 16:52 ` David Sterba
2022-06-16 20:56 ` Stefan Roesch
2022-02-08 19:31 ` [PATCH v1 3/3] btrfs: add force_chunk_alloc sysfs entry to force allocation Stefan Roesch
2022-04-04 17:02 ` David Sterba
2022-06-16 20:59 ` Stefan Roesch
2022-06-17 14:14 ` David Sterba
2022-02-28 19:30 ` Josef Bacik [this message]
2022-04-04 16:31 ` [PATCH v1 0/3] btrfs: add sysfs switch to get/set metadata size David Sterba
2022-05-27 13:34 ` David Sterba
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=Yh0iv8qO9I9k3N7Q@localhost.localdomain \
--to=josef@toxicpanda.com \
--cc=kernel-team@fb.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=shr@fb.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