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 v4 0/4] btrfs: sysfs: set / query btrfs chunk size
Date: Tue, 2 Nov 2021 12:15:40 -0400 [thread overview]
Message-ID: <YYFkLP/cOgje+Vi7@localhost.localdomain> (raw)
In-Reply-To: <20211029183950.3613491-1-shr@fb.com>
On Fri, Oct 29, 2021 at 11:39:46AM -0700, Stefan Roesch wrote:
> Motivation:
> 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 is naturally confusing and distressing to users.
>
> Patches:
> 1) Store the stripe and chunk size in the btrfs_space_info structure
> 2) Add a sysfs entry to expose the above information
> 3) Add a sysfs entry to force a space allocation
> 4) Increase the default size of the metadata chunk allocation to 5GB
> for volumes greater than 50GB.
>
> Testing:
> A new test is being added to the xfstest suite. For reference the
> corresponding patch has the title:
> [PATCH] btrfs: Test chunk allocation with different sizes
>
> In addition also manual testing has been performed.
> - Run xfstests with the changes and the new test. It does not
> show new diffs.
> - Test with storage devices 10G, 20G, 30G, 50G, 60G
> - Default allocation
> - Increase of chunk size
> - If the stripe size is > the free space, it allocates
> free space - 1MB. The 1MB is left as free space.
> - If the device has a storage size > 50G, it uses a 5GB
> chunk size for new allocations.
>
> Stefan Roesch (4):
> btrfs: store chunk size in space-info struct.
> btrfs: expose chunk size in sysfs.
> btrfs: add force_chunk_alloc sysfs entry to force allocation
> btrfs: increase metadata alloc size to 5GB for volumes > 50GB
>
You can add
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
to the series, thanks,
Josef
prev parent reply other threads:[~2021-11-02 16:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-29 18:39 [PATCH v4 0/4] btrfs: sysfs: set / query btrfs chunk size Stefan Roesch
2021-10-29 18:39 ` [PATCH v4 1/4] btrfs: store chunk size in space-info struct Stefan Roesch
2021-11-05 8:52 ` Nikolay Borisov
2021-11-09 19:44 ` Stefan Roesch
2021-10-29 18:39 ` [PATCH v4 2/4] btrfs: expose chunk size in sysfs Stefan Roesch
2021-11-05 9:27 ` Nikolay Borisov
2021-11-09 1:57 ` Stefan Roesch
2021-11-09 6:36 ` Nikolay Borisov
2021-10-29 18:39 ` [PATCH v4 3/4] btrfs: add force_chunk_alloc sysfs entry to force allocation Stefan Roesch
2021-11-05 10:04 ` Nikolay Borisov
2021-11-09 1:09 ` Stefan Roesch
2021-10-29 18:39 ` [PATCH v4 4/4] btrfs: increase metadata alloc size to 5GB for volumes > 50GB Stefan Roesch
2021-11-05 10:11 ` Nikolay Borisov
2021-11-09 21:19 ` Stefan Roesch
2021-11-02 16:15 ` Josef Bacik [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=YYFkLP/cOgje+Vi7@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