Intel Is Working On Faster Linux Encryption For AVX2 CPUs, Up To 5.8x Throughput

Written by Michael Larabel in Intel on 29 October 2015 at 05:59 PM EDT. 8 Comments
INTEL
Intel has published a new set of patches fpr speeding up AES-CBC encryption for processors having the AVX2 instruction set extension.

Tim Chen of Intel published the five new patches for x86 AES-CBC encryption with AVX2 multi-buffer. He explained, "In this patch series, we introduce AES CBC encryption that is parallelized on x86_64 cpu with AVX2. The multi-buffer technique takes advantage of wide AVX2 register and encrypt 8 data streams in parallel with SIMD instructions. Decryption is handled as in the existing AESNI Intel CBC implementation which can already parallelize decryption even for a single data stream."

In terms of the benefits, Chen noted, "By using this technique, we saw a throughput increase of up to 5.8x under optimal conditions when we have fully loaded encryption jobs filling up all the data lanes."

More details on this initial patch series for using the AVX2 multi-buffer for AES-CBC encryption can be found via this patch series. One of the patches add multi-buffer encryption infrastructure support to the Linux kernel's crypto layer, so hopefully other encryption modes will be supported in due time.

Advanced Vector Extensions 2 (AVX2) is supported on Intel CPUs of Haswell and newer. AVX2 is also supported with AMD's Excavator cores and forthcoming Zen cores.
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