New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZSTD compressed kernel. #297
Comments
That's the kernel, generally our installations/images don't use an initrd unless required (encrypted rootfs for instance). |
Ah okay, I thought having an initrd was universal. Since this is compressed with XZ, can other algorithms be used? I had a look and found this relevant patch for ZSTD support. |
@thiagomacieira has looked at using zstd more in the distro I think, any thoughts here? |
the patch in question is interesting but not quite merged upstream yet...
we'll need to keep an eye on it as it matures
…On Thu, Nov 22, 2018 at 11:05 AM William Douglas ***@***.***> wrote:
@thiagomacieira <https://github.com/thiagomacieira> has looked at using
zstd more in the distro I think, any thoughts here?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#297 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABPeFYSvXJpwlec_SWEQKUYyF6F3LbwQks5uxvWOgaJpZM4Yvy3Y>
.
|
We should benchmark it. Zstd does decompress faster which could help in our objectives for fast boot times. It does compress less than Xz, but given the file sizes in question, it shouldn't affect regular SSDs. Slow devices (eMMC and SD cards) may want to opt to Xz to minimise I/O. |
FYI, the relevant kernel patch series was revised one month ago: http://lkml.iu.edu/hypermail/linux/kernel/1811.1/02341.html |
Just adding a marker here that the ZSTD patch hasn't been merged upstream yet. |
Update? |
"Still no zstd support for kernel or initrd. Sigh. " Both of those would be nice to have. |
xanmod made one, here are the patches: https://sourceforge.net/projects/xanmod/files/patches/linux-5.7.y-xanmod/kernel_zstd/ |
Now That The Linux Kernel Can Be Zstd-Compressed, The Next Step Is The Firmware |
With Linux 5.9 comes the ability to compress the Linux kernel image / initrd with Zstd Source: https://www.phoronix.com/scan.php?page=news_item&px=Zstd-Firmware-Compress-Patch |
Now that it is updated, it just needs to be compressed with zstd. Great job. |
Is your feature request related to a problem? Please describe.
No problem.
Describe the solution you'd like
As far as I can tell, the initrd is currently XZ compressed. I checked this by mounting the boot partition of
clear-26430-live.img
, navigating to/EFI/org.clearlinux/
, and runningbinwalk kernel-org.clearlinux.native.4.19.2-662
(I think this is the initrd...), which displayed:Instead, it could be compressed with ZSTD to yield faster boot times.
Describe alternatives you've considered
I think ZSTD was only recently supported, so LZ4 is an alternative compression option.
Additional context
None.
The text was updated successfully, but these errors were encountered: