public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: dsterba@suse.cz, Qu Wenruo <wqu@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 0/2] btrfs-progs: add check and repair ability for super num devices mismatch
Date: Thu, 24 Mar 2022 16:12:44 +0100	[thread overview]
Message-ID: <20220324151244.GI2237@twin.jikos.cz> (raw)
In-Reply-To: <15fcb764-d25a-6424-2560-25e4ce3baf7b@gmx.com>

On Thu, Mar 24, 2022 at 07:30:31AM +0800, Qu Wenruo wrote:
> 
> 
> On 2022/3/24 01:17, David Sterba wrote:
> > On Mon, Feb 28, 2022 at 08:50:06AM +0800, Qu Wenruo wrote:
> >> The patchset can be fetched from github:
> >> https://github.com/adam900710/btrfs-progs/tree/super_num_devs
> >>
> >> The 2nd patch contains a compressed raw image, thus it may be a little
> >> too large for the mail list.
> >
> > The compressed size is 22K, that's fine. I've recompressed it with 'xz
> > --best -e' and it shaved a few hundred bytes but that was just out of
> > curiosity.
> 
> I'm also a little interested in why things like zstd/xz is not that
> efficient in compressing raw btrfs images.

I think it is efficient, unpacked image was 128M and getting that to 22K
is a good result.

> Especially when creating the image I have created the image with all
> zero (fallocated) file in the first place, thus most space should just
> be all zero, and any compression method should be super efficient on them.
> 
> My current guesses are:
> 
> - DUP metadata is not fully detected by the algo
>    Especially when they are mostly quite some ranges away
> 
> - Some older tree blocks from mkfs
> 
> So for further raw image size reduction, we may want to:
> 
> - Use SINGLE metadata/data
> 
> - Fstrim the image first

Yeah that could remove any stale blocks.

      reply	other threads:[~2022-03-24 15:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-28  0:50 [PATCH 0/2] btrfs-progs: add check and repair ability for super num devices mismatch Qu Wenruo
2022-02-28  0:50 ` [PATCH 1/2] btrfs-progs: check: add check and repair ability for super num devs mismatch Qu Wenruo
2022-03-23 17:43   ` David Sterba
2022-03-23 23:15     ` Qu Wenruo
2022-03-23 23:38       ` Qu Wenruo
2022-02-28  0:50 ` [PATCH 2/2] btrfs-progs: tests/fsck: add test case " Qu Wenruo
2022-03-23 17:12 ` [PATCH 0/2] btrfs-progs: add check and repair ability for super num devices mismatch David Sterba
2022-03-23 17:17 ` David Sterba
2022-03-23 23:30   ` Qu Wenruo
2022-03-24 15:12     ` David Sterba [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=20220324151244.GI2237@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=quwenruo.btrfs@gmx.com \
    --cc=wqu@suse.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