Linux 6.2 Allows For Zstd-Compressed Debug Information

Written by Michael Larabel in Linux Kernel on 20 December 2022 at 05:58 AM EST. 4 Comments
LINUX KERNEL
In addition to Linux 6.2 upgrading its Zstd implementation for speedier compression/decompression for in-kernel uses of the Zstandard compression algorithm, this new kernel version is adding another Zstd use-case: compressed debug info sections.

The Linux kernel already allows compressing debug information in the kernel using Zlib while now with Linux 6.2 that is being extended to allow for optionally using Zstd for compressing the debug info.

Using Zstd for compressing debug information sections can yield smaller file sizes than Zlib, assuming you are on a recent compiler and with a new enough toolchain supporting Zstd. Tests by Google engineer Nick Desaulniers found that uncompressed debug info from a kernel build was around 488M, 385M with the existing Zlib compression, or dropped to about 373M with the new Zstd support. The few percent in binary size savings may not be too great over Zlib, but it came with no performance regression or added time costs.


The Zstd-compressed debug sections on Linux 6.2 can be enabled with the new DEBUG_INFO_COMPRESSED_ZSTD Kconfig option.

The Zstd-compressed debug info was sent in and merged as part of the Kbuild updates for Linux 6.2 along with -Werror build improvements, the "srcrpm-pkg" target to generate a source RPM package of the kernel, raising the GNU Binutils requirement to v2.25, and other build updates.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week