From: "Chris Murphy" <lists@colorremedies.com>
To: "Qu Wenruo" <quwenruo.btrfs@gmx.com>, Roland <devzero@web.de>,
"Btrfs BTRFS" <linux-btrfs@vger.kernel.org>
Subject: Re: apply different compress/compress-force settings on different subvolumes ?
Date: Thu, 22 Feb 2024 18:06:23 -0700 [thread overview]
Message-ID: <b235b81b-6a84-4026-adf0-9d4f202ea890@app.fastmail.com> (raw)
In-Reply-To: <7f994558-e786-4bc1-97bc-7090b9955de3@gmx.com>
On Wed, Feb 21, 2024, at 8:25 PM, Qu Wenruo wrote:
> OK, didn't expect the compression ratio detection to cause so much
> difference.
>
> Which also means, we can further improve the compression detection.
>
> In that case, I would purpose to change "compress-force" to
> "skip_compress_heuristic" or something similar, and get rid of the
> compression string/level for the new option.
But which heuristic is skipped? I assume it can only be the btrfs built-in one? I'm not sure about other compression algorithms but zstandard has its own bail-out heuristic.
Another potentially large difference between compress and compress-force is extent size is limited to 512 KIB even when not compressed using compress-force. Whereas the upper limit on extent size for compress option, is (I think) bg size. An upper limit of 512 KiB on extent size can significantly increase the metadata requirement, leading to tall trees. That then makes me wonder if such setups should have a larger node/leaf size than 16KiB default.
I'm also not sure which heuristic is cheaper, or more accurate, the built-in Btrfs one or zstandard.
--
Chris Murphy
next prev parent reply other threads:[~2024-02-23 1:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 8:49 apply different compress/compress-force settings on different subvolumes ? Roland
2024-02-21 9:33 ` Qu Wenruo
2024-02-21 13:15 ` Roland
2024-02-21 17:45 ` Austin S. Hemmelgarn
2024-02-22 3:25 ` Qu Wenruo
2024-02-23 1:06 ` Chris Murphy [this message]
2024-02-22 8:33 ` Roland
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=b235b81b-6a84-4026-adf0-9d4f202ea890@app.fastmail.com \
--to=lists@colorremedies.com \
--cc=devzero@web.de \
--cc=linux-btrfs@vger.kernel.org \
--cc=quwenruo.btrfs@gmx.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