News: 0001541480

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Slightly Faster AES-XTS Performance For AVX-512 CPUs Expected With Linux 6.16

([Linux Kernel] 4 Hours Ago Speedier AES-XTS With AVX-512)


In recent kernel releases there have been performance enhancements to the AES implementations and other cryptographic subsystem code for speeding up the performance on modern Intel and AMD processors. With Linux 6.16 there will be at least some additional small gains to find with Intel and AMD processors bearing AVX-512 when employing [1]AES-XTS .

Eric Biggers of Google who has been responsible for many of the recent AMD/Intel crypto performance optimizations saw last week another one of his patches queued into the crypto development code ahead of the Linux 6.16 cycle. This patch provides some small improvements to the AES-XTS performance for Intel and AMD x86_64 CPUs with AVX-512, on top of all the other enhancements made in prior months. Biggers explains in [2]the patch :

"Optimize the AVX-512 version of _compute_first_set_of_tweaks by using vectorized shifts to compute the first vector of tweak blocks, and by using byte-aligned shifts when multiplying by x^8.

AES-XTS performance on AMD Ryzen 9 9950X (Zen 5) improves by about 2% for 4096-byte messages or 6% for 512-byte messages. AES-XTS performance on Intel Sapphire Rapids improves by about 1% for 4096-byte messages or 3% for 512-byte messages. Code size decreases by 75 bytes which outweighs the increase in rodata size of 16 bytes."

Separately, also coming for Linux 6.16 is [3]dropping the AVX10-256 paths he had been working on... Thanks to Intel's late change of [4]getting rid of AVX10.2-256 mode and now allowing for 512-bit everywhere with AVX10.

We'll see what other crypto performance optimizations Eric Biggers may still prepare for Linux 6.16 in the coming weeks.



[1] https://www.phoronix.com/search/AES-XTS

[2] https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=570ef50a15d7caa4d63d66f1e28d967065733f84

[3] https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=7d14fbc5691b39b8ab322c0220713c2ac3298b29

[4] https://www.phoronix.com/news/Intel-AVX10-Drops-256-Bit



Chugworth

Dear Emily:
I collected replies to an article I wrote, and now it's time to
summarize. What should I do?
-- Editor

Dear Editor:
Simply concatenate all the articles together into a big file and post
that. On USENET, this is known as a summary. It lets people read all the
replies without annoying newsreaders getting in the way. Do the same when
summarizing a vote.
-- Emily Postnews Answers Your Questions on Netiquette