2024-12-08 12:58:00
www.phoronix.com
The Linux kernel EFI Zboot code for carrying the Linux kernel image for EFI systems in compressed form is doing away with its “compression library museum” of offering Gzip, LZ4, LZMA, LZO, XZ, and Zstd compression options to instead just focus on Gzip and Zstd compression support.
Rather than offfering many different compression options for the EFI Zboot code, a patch working its way to the mainline kernel is reducing it down to just two choices for compression: Gzip or Zstd. Ard Biesheuvel explains in the patch limiting the compression options to Gzip and Zstd:
“For historical reasons, the legacy decompressor code on various architectures supports 7 different compression types for the compressed kernel image.
EFI zboot is not a compression library museum, and so the options can be limited to what is likely to be useful in practice:
– GZIP is tried and tested, and is still one of the fastest at decompression time, although the compression ratio is not very high; moreover, Fedora is already shipping EFI zboot kernels for arm64 that use GZIP, and QEMU implements direct support for it when booting a kernel without firmware loaded;
– ZSTD has a very high compression ratio (although not the highest), and is almost as fast as GZIP at decompression time.
Reducing the number of options makes it less of a hassle for other consumers of the EFI zboot format (such as QEMU today, and kexec in the future) to support it transparently without having to carry 7 different decompression libraries.”
A wise decision to just focus on Gzip and Zstd and to get rid of all the other superfluous options these days… Now if only the Zstd code within the Linux kernel would rebase against the latest upstream state…
The patch to limit the compression options has been queued into efi.git’s “urgent” Git branch. With it queued in the “urgent” code rather than its “next” branch, it’s likely to be submitted in the coming days for the ongoing Linux 6.13 cycle rather than holding off until the 6.14 cycle. This change only affects EFI Zboot and doesn’t impact the compression/decompression options for other areas of the Linux kernel.
Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.
Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!
Support Techcratic
If you find value in Techcratic’s insights and articles, consider supporting us with Bitcoin. Your support helps me, as a solo operator, continue delivering high-quality content while managing all the technical aspects, from server maintenance to blog writing, future updates, and improvements. Support Innovation! Thank you.
Bitcoin Address:
bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge
Please verify this address before sending funds.
Bitcoin QR Code
Simply scan the QR code below to support Techcratic.
Please read the Privacy and Security Disclaimer on how Techcratic handles your support.
Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.