OpenJDK-8: Crypto performance is very slow on ARMv7

Alex Kashchenko akashche at redhat.com
Fri Jan 27 10:58:14 UTC 2017


Hi Srinivas,

On 01/27/2017 10:18 AM, Srinivasa Rao Ragolu wrote:
> Hi All,
>
> I have ported openjdk-8-72b05(from Yocto) for armv7 . I am sharing sample
> code via link, which I have run to see the crypto performance and found it
> is very slow.
>
> Code Location:
> https://drive.google.com/open?id=0BxeL64n1TNdJMlItSWpld1lIdjg
>
> See the output below:
>
>
> root at Spider:~/Certificates# uname -a
> Linux Spider 4.4.32-rt41-yocto-standard #1 SMP PREEMPT Mon Jan 9 00:24:23
> PST 2017 aarch64 GNU/Linux
> root at Spider:~/Certificates# time java -cp common-0.0.1-SNAPSHOT.jar:jars/*
> com.ericsson.athena.common.certificate.Main
> [...]
>
>
> *real 7m3.241s*
> *user 7m1.972s*
> *sys 0m0.196s*
>
> Could you please suggest any solution or patches to improve the performance?

Can you please post a "java -version" output for the jdk you are using?

With openjdk-aarch32 on Fedora on Alwinner A20 board I can see the 
following numbers with your example:

$ uname -a
Linux 97c852a965d0 4.2.3-300.fc23.armv7hl #1 SMP Mon Oct 5 16:45:59 UTC 
2015 armv7l armv7l armv7l GNU/Linux
$ cat /etc/redhat-release
Fedora release 25 (Twenty Five)
$ java -version
openjdk version "1.8.0_112"
OpenJDK Runtime Environment (build 1.8.0_112-161109)
OpenJDK Client VM (build 25.112-b161109, mixed mode)
$ time java -cp common-0.0.1-SNAPSHOT.jar:jars/* 
com.ericsson.athena.common.certificate.Main
...
real    0m41.327s
user    0m42.195s
sys     0m0.665s


-- 
-Alex


More information about the aarch32-port-dev mailing list