RFR(L): 8069539: RSA acceleration
Vladimir Kozlov
vladimir.kozlov at oracle.com
Sat Mar 21 03:09:02 UTC 2015
In general it looks good - it follows our usual intrinsics implementation.
In macro_assembler why you not using jccb (short jump) for forward branches?
In vmSymbols.hpp indention is off for mulAdd_signature string.
In tests -XX:+IgnoreUnrecognizedVMOptions should be placed before
guarded flags.
Please, put tests into separate directories.
Thanks,
Vladimir
On 3/19/15 3:32 PM, Viswanathan, Sandhya wrote:
> Hi All,
>
> Vladimir helped to place the webrev on cr.openjdk; please find the link below for your review and comments:
>
> http://cr.openjdk.java.net/~kvn/8069539/webrev.00/
>
> Thanks,
> Sandhya
>
> -----Original Message-----
> From: hotspot-compiler-dev [mailto:hotspot-compiler-dev-bounces at openjdk.java.net] On Behalf Of Viswanathan, Sandhya
> Sent: Friday, March 13, 2015 1:55 PM
> To: Sergey Kuksenko; hotspot-compiler-dev at openjdk.java.net
> Subject: RE: RFR(L): 8069539: RSA acceleration
>
> Hi Sergey,
>
> Thanks for these performance numbers. It is very encouraging!
>
> Best Regards,
> Sandhya
>
> -----Original Message-----
> From: Sergey Kuksenko [mailto:sergey.kuksenko at oracle.com]
> Sent: Friday, March 13, 2015 6:31 AM
> To: Viswanathan, Sandhya; hotspot-compiler-dev at openjdk.java.net
> Subject: Re: RFR(L): 8069539: RSA acceleration
>
> Fine Sandhya,
>
> Besides SPECjvm2008 I did quick test on microbenchmarks.
> Draft results (on Haswell):
> BigInteger.modPow speedup - 40-50%
> BigInteger.nextProbablyPrime - 35%
> BigInteger.pow - 20-25%
>
> BigInteger.TEN.pow() - up to 35% speedup
> (I checked this because of BigInteger.TEN pows frequently used in
> BigDecimal)
>
> And even "new BigDecimal(double)" - got 8%-10% speedup.
>
> Later I will provide more precise (and verified) results.
>
> On 03/12/2015 12:36 AM, Viswanathan, Sandhya wrote:
>> Hi All,
>>
>> We would like to contribute the Crypto RSA acceleration optimization
>> from Intel.
>>
>> The contribution is towards the JEP 8046943 and Bug ID: 8069539.
>>
>> Please review this patch:
>>
>> JEP: https://bugs.openjdk.java.net/browse/JDK-8046943
>>
>> Bug-id: https://bugs.openjdk.java.net/browse/JDK-8069539
>>
>> webrev: https://bugs.openjdk.java.net/secure/attachment/26024/webrev.zip
>>
>> The optimization is achieved through intrinsics for BigInteger
>> squareToLen and mulAdd methods.
>>
>> We see ~50% improvement for SPECjvm2008 crypto.rsa with this patch.
>>
>> Nils Eliasson has kindly offered to sponsor this patch.
>>
>> Best Regards,
>>
>> Sandhya
>>
>
More information about the hotspot-compiler-dev
mailing list