[ 
https://issues.apache.org/jira/browse/HADOOP-15811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16720083#comment-16720083
 ] 

Wei-Chiu Chuang edited comment on HADOOP-15811 at 12/13/18 12:08 PM:
---------------------------------------------------------------------

According to JDK release notes/docs,
-XX:+UseMontgomerySquareIntrinsic is implemented in 8u102 
https://www.oracle.com/technetwork/java/javase/8u102-relnotes-3021767.html
-XX:+UseMontgomeryMultiplyIntrinsic also since 8u102

According to the release note of 8u152, the "BigInteger" performance 
improvements are enabled by default.

I think we'll have to benchmark different JDK versions since we heavily rely on 
JDK for TLS. Waiting for HADOOP-15967 (KMS Benchmark Tool) before working on 
this one [~ghuangups] FYI.


was (Author: jojochuang):
According to JDK release notes/docs,
-XX:+UseMontgomerySquareIntrinsic is implemented in 8u102 
https://www.oracle.com/technetwork/java/javase/8u102-relnotes-3021767.html
-XX:+UseMontgomeryMultiplyIntrinsic also since 8u102

According to the release note of 8u152, the "BigInteger" performance 
improvements are enabled by default, and your options turn them off. Does it 
mean 8u152 performance sucks out of box?

I think we'll have to benchmark different JDK versions since we heavily rely on 
JDK for TLS. Waiting for HADOOP-15967 (KMS Benchmark Tool) before working on 
this one [~ghuangups] FYI.

> Optimizations for Java's TLS performance
> ----------------------------------------
>
>                 Key: HADOOP-15811
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15811
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: common
>    Affects Versions: 1.0.0
>            Reporter: Daryn Sharp
>            Priority: Major
>
> Java defaults to using /dev/random and disables intrinsic methods used in hot 
> code paths.  Both cause highly synchronized impls to be used that 
> significantly degrade performance.
> * -Djava.security.egd=file:/dev/urandom
> * -XX:+UseMontgomerySquareIntrinsic
> * -XX:+UseMontgomeryMultiplyIntrinsic
> * -XX:+UseSquareToLenIntrinsic
> * -XX:+UseMultiplyToLenIntrinsic
> These settings significantly boost KMS server performance.  Under load, 
> threads are not jammed in the SSLEngine.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to