The libcrypto code within the kernel is set to see some more performance optimizations on Linux 7.5 for all the AMD and Intel CPUs out there supporting Advanced Vector Extensions 2 (AVX2) and focused on the SHA-512 hashing performance. Google engineer Eric Biggers has been responsible for some big x86_64 crypto performance optimizations over the years in the Linux kernel. While recently many of the optimizations have focused on AVX-512/AVX10, for Linux 7.5 there are some new optimizations that benefit AVX2. As part of recently queued code was a patch to optimize message schedule in the sha512-avx2 code. Newer AMD and Intel CPUs likely won't benefit from that but for at least Zen 1 era systems where 128-bit operations are faster than 256-bit, there is likely to be better performance. That was followed by a patch to factor out SHA512_Round in the sha512-avx2 code. That patch yields around 1% faster SHA-512 performance on AMD Zen 5 (Ryzen 9 9950X) or about 3% on Intel Xeon Sapphire Rapids. After that was another patch to optimize SHA512_Round that yields around 5% faster SHA-512 performance on Zen 5 or about 6% faster on Sapphire Rapids processors. Not bad with the countless crypto optimization patches by Eric Biggers adding up and yielding some nice gains over time in the kernel. These latest patches are in libcrypto-next ahead of the Linux 7.5 merge window happening at the end of December.
New AVX2 Optimizations For SHA-512 Heading To Linux 7.5
Full Article
Original Source
Read the full article at Phoronix →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.