Re: [PREVIEW] Add x86 zstd kernel compression

From: Renà Rebe
Date: Thu Oct 05 2017 - 17:16:04 EST


Hi,

On 10/05/2017 09:22 PM, Nick Terrell wrote:
On 10/5/17, 1:18 AM, "Renà Rebe" <rene@xxxxxxxxxxxxx> wrote:

Hi Nick,

On Oct 5, 2017, at 1:29, Nick Terrell <terrelln@xxxxxx> wrote:

On 10/4/17, 3:01 AM, "linux-kernel-owner@xxxxxxxxxxxxxxx on behalf of Renà Rebe" <linux-kernel-owner@xxxxxxxxxxxxxxx on behalf of rene@xxxxxxxxxxxxx> wrote:
Hi,

I noticed zstd compression was recently added for btrfs and squashfs.
Are there actually already patches floating around for zstd kernel and intird compression?
Looks like that would be a quite nice fit regarding speed and compression ratio, â

Regards,
RenÃ

I started working on some patches yesterday, and just got zstd kernel,
initrd, and initramfs compression working today. I think I'll be ready to
send the patches out within a week.

awesome, if you have something to test I could give it a try on my test bench, too.

Here is a preview of the patch, though its not quite ready.
I believe it works, but I still need to clean it up a bit, and split it
into the decompression function, the initrd piece, and the x86 specific
piece. I'll try to get the patch set out this week, and I'll CC you.

thanks for the preview, which I applied cleanly, modulo this white-space chunk:

diff --git a/lib/Kconfig b/lib/Kconfig
index b1445b2..02fdcac 100644
@@ -296,7 +300,7 @@ config GENERIC_ALLOCATOR
#
config REED_SOLOMON
tristate
-
+
config REED_SOLOMON_ENC8
bool
to the 4.14-rc2 tarball and it compiled and booted on x86-64,
including a zstd initrd!

Great work, will probably start testing it on my personal
laptop, to use the same compression everywhere.

Regards,
RenÃ

--
Renà Rebe, ExactCODE GmbH, Lietzenburger Str. 42, DE-10117 Berlin
http://exactcode.com | http://t2-project.org | http://rene.rebe.de