From: Oliver Mattos <oliver.mattos08@imperial.ac.uk>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Auto-sparseifying
Date: Thu, 11 Dec 2008 10:05:48 +0000 [thread overview]
Message-ID: <1228989948.17969.24.camel@mattos-laptop> (raw)
Hi,
I've noticed many files have blocks of plain nulls up to a few kb long,
even files you wouldn't normally expect to, like ELF executables. I
know that with compression enabled these will compress very small, but
that will have a reasonable hit on performance. How much of an overhead
would it be to check all checksummed file extents to see if they match
the checksum for a blank (null filled) extent, and if it does then don't
save that data? You may not even want to do it with checksums - just
by reading the first few bytes of data and checking for "nullness" would
let you know if the block is null or not. (if the first 4 bytes are
null, then the whole block is likely to be nulls, so it's worth the
overhead of checking the whole block)
This would seem like a particularly low overhead space and performance
tweak. (performance since read/write speed will be increased for
"average" files that contain a few null blocks)
Any thoughts?
Oliver.
next reply other threads:[~2008-12-11 10:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-11 10:05 Oliver Mattos [this message]
2008-12-11 13:54 ` Auto-sparseifying jim owens
2008-12-11 14:57 ` Auto-sparseifying Chris Mason
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=1228989948.17969.24.camel@mattos-laptop \
--to=oliver.mattos08@imperial.ac.uk \
--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