Faster AES-GCM & AES-XTS Crypto For AMD CPUs With Linux 6.14

Written by Michael Larabel in AMD on 23 December 2024 at 06:46 AM EST. 12 Comments
AMD
Eric Biggers of Google who has pursued countless CPU optimizations within the Linux kernel's crypto subsystem over the years has some noteworthy optimizations coming for AMD processors with the upcoming Linux 6.14 kernel cycle.

Over the weekend several x86 AES-XTS and AES-GCM patches made it into the crypto subsystem's development Git code ahead of the upcoming Linux 6.14 kernel cycle.

AMD Zen 5 CPUs


One of the patches better tunes AES-GCM for AMD CPUs. That brings around a 2% performance boost for both AMD Zen 4 and Zen 5 processors while the Intel performance is about the same.

Over on the AES-XTS side there is additional optimizations yielding another 3% improvement found with AMD Zen 5 processors. Intel performance there also remaining the same or about a 0.1% bump for Ice Lake.

x86_64 crypto patches


Plus the patches bring various code size improvements and other enhancements.

While just single-digit gains this round, they add up especially with Biggers having delivered some massive triple digit improvements in recent kernel cycles. The Linux AES performance with modern x86_64 processors is a heck of a lot faster than before on older kernels. And given from these newly queued patches, it looks like his optimization game isn't over.

The Linux 6.14 merge window will kick off in late January while the stable kernel should be out by the end of March and will be found in the likes of Ubuntu 25.04 and Fedora 42.
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