There is (again) push to add support for ZSTD compressed kernel in to mainline: https://lore.kernel.org/lkml/20200401053913.216783-1-nickrterrell@gmail.com/ https://lore.kernel.org/patchwork/project/lkml/list/?submitter=27840 Not sure if it will get adopted or not, since if i know correctly they try to include this patch for 3+ years... However it would be nice anyway if this patch would be added in to gentoo-sources, if not in main patch, you could have it in experimental for a while... Im using ZSTD kernel for couple of days and everything works, smaller size then LZO that i used before + faster decompression time. There isnt really any downside, if its added i think... Reproducible: Always
Created attachment 630946 [details, diff] Full combined v4 patch
Created attachment 631330 [details, diff] lib: prepare zstd for preboot environment
Created attachment 631332 [details, diff] lib: prepare xxhash for preboot environment
Created attachment 631334 [details, diff] lib: add zstd support to decompress
Created attachment 631336 [details, diff] init: add support for zstd compressed kernel
Created attachment 631338 [details, diff] usr: add support for zstd compressed initramfs
Created attachment 631340 [details, diff] x86: bump ZO_z_extra_bytes margin for zstd
Created attachment 631342 [details, diff] x86: Add support for ZSTD compressed kernel
Created attachment 631344 [details, diff] .gitignore: add ZSTD-compressed files
Can you apply and test patches 5000-5007 that I just attached?
Created attachment 631346 [details] build log from gentoo-sources-5.6.3 build.log attached from gentoo-sources-5.6.3, patches are working as they suppose to and ZSTD compressed kernel works as well.
(In reply to Klemen Mihevc from comment #11) > Created attachment 631346 [details] > build log from gentoo-sources-5.6.3 > > build.log attached from gentoo-sources-5.6.3, patches are working as they > suppose to and ZSTD compressed kernel works as well. Thanks for that quick response. I'll add it to experimental and you'll see it in gentoo-sources-5.6.4 Feel free to ping me on IRC in gentoo-kernel if they release new versions and I haven't updated them yet
Thanks and i will...
commit 1925b0520f1735eb1c30313f518c521fc5478adf (HEAD -> 5.6, origin/5.6) Author: Mike Pagano <mpagano@gentoo.org> Date: Wed Apr 8 13:37:44 2020 -0400 Add support for ZSTD-compressed kernel and initramfs (use=experimental) Signed-off-by: Mike Pagano <mpagano@gentoo.org>
gonna ping here, since bug is currently still open... v5 released...
(In reply to Klemen Mihevc from comment #15) > gonna ping here, since bug is currently still open... v5 released... Unless I'm mistaken, the latest release of the 5.6 branch is still 5.6.3, and as mpagano has pointed out above, the patches you require will not be released until 5.6.4 is out. So I'm afraid you'll have to wait a bit longer!
(In reply to Michael 'veremitz' Everitt from comment #16) > (In reply to Klemen Mihevc from comment #15) > > gonna ping here, since bug is currently still open... v5 released... > > Unless I'm mistaken, the latest release of the 5.6 branch is still 5.6.3, > and as mpagano has pointed out above, the patches you require will not be > released until 5.6.4 is out. So I'm afraid you'll have to wait a bit longer! obviously... but better that its released with new v5 version then with old v4 right? :) i know bug is still open just because 5.6.4 was not released yet, but he said to ping him if version gets updated and since it is ~20 years since i used IRC last time, i rather do it here ;P
Created attachment 632454 [details] build.log with v5 patches kernel works with with v5 patches, as far as i noticed there isnt any significant change anyway...
It's all good. Let me try to update to v5 before 5.6.4 is out, which I expect later today.
commit a47c371bfe46821952d584e7c0102948682a4602 (HEAD -> 5.6, origin/5.6) Author: Mike Pagano <mpagano@gentoo.org> Date: Sun Apr 12 11:28:25 2020 -0400 Bump ZSTD Patchset to V5 Closes: https://bugs.gentoo.org/716520 Signed-off-by: Mike Pagano <mpagano@gentoo.or
commit 7d026fa69906949e376c76dd73c7b665f45fba88 (HEAD -> master, origin/master, origin/HEAD) Author: Mike Pagano <mpagano@gentoo.org> Date: Mon Apr 13 10:23:21 2020 -0400 sys-kernel/gentoo-sources: Linux patch 5.6.4. ZSTD patch. Add support for v5 of the ZSTD-compressed kernel and initramfs. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Mike Pagano <mpagano@gentoo.org>