Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-12-04 Thread Anthony Scarpino
, 2018 2:05 PM To: Kamath, Smita ; 'Vladimir Kozlov' Cc: Viswanathan, Sandhya ; core-libs-dev@openjdk.java.net; hotspot compiler Subject: Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions On 11/19/18 12:50 PM, Kamath, Smita wrote: Hi Vladimir, I'd like to contribute

Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-12-04 Thread Dmitry Chuyko
Scarpino [mailto:anthony.scarp...@oracle.com] Sent: Tuesday, November 20, 2018 2:05 PM To: Kamath, Smita ; 'Vladimir Kozlov' Cc: Viswanathan, Sandhya ; core-libs-dev@openjdk.java.net; hotspot compiler Subject: Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions On 11/19/18 12:50

Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-12-01 Thread Vladimir Kozlov
...@oracle.com] Sent: Tuesday, November 20, 2018 2:05 PM To: Kamath, Smita ; 'Vladimir Kozlov' Cc: Viswanathan, Sandhya ; core-libs-dev@openjdk.java.net; hotspot compiler Subject: Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions On 11/19/18 12:50 PM, Kamath, Smita wrote: Hi

Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-12-01 Thread Vladimir Kozlov
; 'Vladimir Kozlov' Cc: Viswanathan, Sandhya ; core-libs-dev@openjdk.java.net; hotspot compiler Subject: Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions On 11/19/18 12:50 PM, Kamath, Smita wrote: Hi Vladimir, I'd like to contribute an optimization for GHASH Algorithm using AVX

RE: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-11-20 Thread Kamath, Smita
; core-libs-dev@openjdk.java.net; hotspot compiler Subject: Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions On 11/19/18 12:50 PM, Kamath, Smita wrote: > Hi Vladimir, > > I'd like to contribute an optimization for GHASH Algorithm using AVX > Instructions. I

Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-11-20 Thread Anthony Scarpino
On 11/19/18 12:50 PM, Kamath, Smita wrote: Hi Vladimir, I’d like to contribute an optimization for GHASH Algorithm using AVX Instructions. I have tested this optimization on SKX x86_64 platform and it shows ~20–30% performance improvement for larger message sizes (for example 8k). I,

RE: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-11-20 Thread Kamath, Smita
-...@openjdk.java.net Subject: Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions Hello, What is the purpose of setting some of them to 0 twice? (It's a new array which should be all-0 anyway.) + for (int i = 1; i < 9 ; i++) { +subkeyHtbl[2*i] = 0; +subkeyHtbl[2*i+1]

RE: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-11-19 Thread Kamath, Smita
To: Kamath, Smita Cc: 'Vladimir Kozlov' ; Anthony Scarpino ; core-libs-dev@openjdk.java.net; hotspot compiler Subject: Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions * Smita Kamath: > I'd like to contribute an optimization for GHASH Algorithm using AVX > Instructions. I have

Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-11-19 Thread Eric Caspole
Hi everybody, There are already JMH crypto micros in the open corpus (a maven project): http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks/file/fc4783360f58/src/main/java/org/openjdk/bench/javax/crypto that should be able to measure the benefit of this webrev against the existing

Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-11-19 Thread Bernd Eckenfels
ler Betreff: RFR(S)JDK-8214074: Ghash optimization using AVX instructions Hi Vladimir, I'd like to contribute an optimization for GHASH Algorithm using AVX Instructions. I have tested this optimization on SKX x86_64 platform and it shows ~20-30% performance improvement for larger message si

Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-11-19 Thread Florian Weimer
* Smita Kamath: > I'd like to contribute an optimization for GHASH Algorithm using AVX > Instructions. I have tested this optimization on SKX x86_64 platform > and it shows ~20-30% performance improvement for larger message sizes > (for example 8k). Performance improvement against what? The

RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-11-19 Thread Kamath, Smita
Hi Vladimir, I'd like to contribute an optimization for GHASH Algorithm using AVX Instructions. I have tested this optimization on SKX x86_64 platform and it shows ~20-30% performance improvement for larger message sizes (for example 8k). I,