RFR: 8273297: AES/GCM non-AVX512+VAES CPUs suffer after 8267125 [v3]

Sandhya Viswanathan sviswanathan at openjdk.java.net
Tue Sep 21 19:10:34 UTC 2021


On Tue, 21 Sep 2021 18:31:12 GMT, Smita Kamath <svkamath at openjdk.org> wrote:

>> Performance dropped up to 10% for 1k data after 8267125 for CPUs that do not support the new intrinsic. Tests run were crypto.full.AESGCMBench and crypto.full.AESGCMByteBuffer from the jmh micro benchmarks.
>> 
>> The problem is each instance of GHASH allocates 96 extra longs for the AVX512+VAES intrinsic regardless if the intrinsic is used. This extra table space should be allocated differently so that non-supporting CPUs do not suffer this penalty. This issue also affects non-Intel CPUs too.
>
> Smita Kamath has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fixed length decrement issue

Marked as reviewed by sviswanathan (Reviewer).

The patch looks good to me.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5402


More information about the security-dev mailing list