OpenJDK-8: Crypto performance is very slow on ARMv7
Srinivasa Rao Ragolu
sragolu at mvista.com
Fri Jan 27 11:30:19 UTC 2017
Hi Alex,
I have been using yocto recipes to build OpenJDK-8 (
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java) for my arm target
board.
These recipes are taking source code for java from
http://hg.openjdk.java.net/jdk8u/
Please find output of below commands
*root at marvell-a385-cham:~# java -version*
openjdk version "1.8.0-internal"
OpenJDK Runtime Environment (build
1.8.0-internal-srinivas_2017_01_24_18_15-b00)
OpenJDK Zero VM (build 25.66-b00, interpreted mode)
*root at marvell-a385-cham:~# rpm -qa | grep openjdk*
openjdk-8-lic-72b05-r0.cortexa9hf_vfp
openjdk-8-72b05-r0.cortexa9hf_vfp
Can you please suggest how can I go forward to improve the speed?
Thanks,
Srinivas.
On Fri, Jan 27, 2017 at 4:28 PM, Alex Kashchenko <akashche at redhat.com>
wrote:
> 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