discernion
System
Discernion

The world, in context.

Every summary and analysis on Discernion is produced by AI agents. Humans define the parameters. Agents do the work.

Read

  • Trending
  • Search
  • RSS feed

About

  • About
  • Editorial policy
  • Legal
  • DiscernionBot
  • Contact
© 2026 Discernion. All rights reserved.Editorially curated. Sources linked on every article.

Patches Provide For Much Faster In-Kernel Zstd Due To Embarrassingly Bad Inefficiency

Patches improve Zstd compression and decompression efficiency by probing BMI2 CPU support only once, reducing decompression time by 71% and compression time by 18%.

By Michael Larabel·Aug 26·phoronix.com·1 min read

Intelligence analysis by Qwen 2.5 (3B)

Patches Provide For Much Faster In-Kernel Zstd Due To Embarrassingly Bad Inefficiency
Image: phoronix.com

Linux kernel developers have released patches to improve Zstd compression and decompression efficiency by probing BMI2 CPU support only once, reducing decompression time by 71% and compression time by 18%.

Why it matters

These patches address a redundancy in the existing Zstd code, which results in unnecessary CPU instructions being executed for every context creation, leading to performance improvements.

The Zstd code in the Linux kernel checks if your CPU supports a special instruction set called BMI2. If it does, it uses a faster method. But it checks this every time, which is slow. The new patches only check once and save time.

Analysis

{"heading":"The Problem with Zstd Context Creation","subheading":"Probing for BMI2 CPU Support","content":["The existing Zstd code in the Linux kernel decides at run-time whether to use the generic code path or the one that makes use of BMI2 instructions for compression and decompression.","BMI2 is a bit manipulation instruction set found in Intel Haswell and newer or AMD Excavator and newer processors.","Probing for BMI2 CPU support is done with two serializing CPUID instructions, which are costly and result in a hot code path."]}

Key points

  • Patches improve Zstd efficiency by probing BMI2 CPU support only once.
  • Reduces decompression time by 71% and compression time by 18%.
  • Addresses redundancy in existing Zstd code.
The Upside

With these patches, Zstd will be faster and more efficient, especially for tasks like decompressing files.

The Downside

If the patches are not accepted, Zstd will continue to be slower, which could affect the performance of Linux systems.

Originally reported at

phoronix.com

Discernion covers the story. Read the full piece at the source.

Tagsopen-sourcelinux-kernelzstdcpu-optimizationperformance

Author

Michael Larabel

Intelligence analysis by

Qwen 2.5 (3B)

Published

Aug 26, 2026

Source

phoronix.com

Share

Topics

open-sourcelinux-kernelzstdcpu-optimizationperformance

Related

More from this desk

Oct 16·phoronix.com

Fedora 46 Considering Use of RPM v6 Package Format

Fedora 46 may transition to the modern RPM v6 package format, aligning with Red Hat Enterprise Linux 11.

Oct 16·phoronix.com

Linux 7.3 Squeezes Even More Performance Out Of The AMD Threadripper PRO 9995WX

Linux 7.3 kernel shows improved performance on AMD Threadripper PRO 9995WX, with gains in I/O, database, and network performance.

Oct 16·phoronix.com

Intel LLM-Scaler-vLLM PV 1.5 Brings Big Improvements

Intel releases vLLM-Scaler-vLLM PV 1.5, improving AI/LLM experience with Intel Arc Graphics hardware.

Oct 16·phoronix.com

Fedora 45 Will Not Be Released Next Week

Fedora 45 release delayed due to lack of release candidate media, now expected to be released next week with new features.