# ChaCha AVX-512 Optimization For Linux 7.5 Yields Up To 99% Improvement On AMD Zen 5

DevFeed: [ChaCha AVX-512 Optimization For Linux 7.5 Yields Up To 99% Improvement On AMD Zen 5](<https://devfeed.tech/articles/chacha-avx-512-optimization-for-linux-7-5-yields-up-to-99-improvement-on-amd-zen-5-123493.md>)

Original publisher: [Read original article](<https://www.phoronix.com/news/ChaCha-AVX-512-Linux-7.5>)

Author: Michael Larabel

Published: 2026-11-09T12:35:12Z

Content type: news

Language: en

Sources: [Phoronix](<https://devfeed.tech/sources/phoronix.md>)

Topics: [ChaCha](<https://devfeed.tech/topics/chacha-cipher.md>), [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [amd](<https://devfeed.tech/tags/amd.md>), [avx](<https://devfeed.tech/tags/avx.md>), [code](<https://devfeed.tech/tags/code.md>), [desktop-linux](<https://devfeed.tech/tags/desktop-linux.md>), [halo](<https://devfeed.tech/tags/halo.md>), [improvement](<https://devfeed.tech/tags/improvement.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-benchmarking](<https://devfeed.tech/tags/linux-benchmarking.md>), [linux-hardware-benchmarks](<https://devfeed.tech/tags/linux-hardware-benchmarks.md>), [linux-hardware-reviews](<https://devfeed.tech/tags/linux-hardware-reviews.md>), [linux-how-to](<https://devfeed.tech/tags/linux-how-to.md>), [linux-performance](<https://devfeed.tech/tags/linux-performance.md>), [linux-server-benchmarks](<https://devfeed.tech/tags/linux-server-benchmarks.md>), [open-source-graphics](<https://devfeed.tech/tags/open-source-graphics.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [phoronix](<https://devfeed.tech/tags/phoronix.md>), [phoronix-test-suite](<https://devfeed.tech/tags/phoronix-test-suite.md>), [processors](<https://devfeed.tech/tags/processors.md>), [ubuntu-benchmarks](<https://devfeed.tech/tags/ubuntu-benchmarks.md>), [ubuntu-hardware](<https://devfeed.tech/tags/ubuntu-hardware.md>), [zen-5](<https://devfeed.tech/tags/zen-5.md>)

## AI overview

A new 16-block AVX-512 ChaCha function in Linux libcrypto can improve bulk encryption performance on recent processors. The existing AVX-512VL path handles up to 8 blocks using 256-bit registers; the patch adds a 512-bit path for inputs larger than 8 blocks, gated by X86_FEATURE_PREFER_YMM. The excerpt reports up to 99% improvement on AMD Zen 5 with the full 512-bit data path and up to 39% on Zen 4 using its 256-bit data path. The change is queued in Eric Biggers' libcrypto-next branch and was expected to be submitted for the Linux 7.5 merge window.

## Source excerpt

The Linux kernel's ChaCha symmetric stream cipher code has long had an AVX-512 optimized code path but it was catering to the early generations of Intel CPUs with AVX-512 (Skylake) that suffered from down-clocking under use. But now slated for arrival with Linux 7.5 is tuning the code to perform better on today's AVX-512 Intel and AMD processors that don't suffer from this limitation. In turn the ChaCha performance is as much as 99% faster with current-generation AMD Zen 5 processors...