OpenJDK-8: Crypto performance is very slow on ARMv7

Srinivasa Rao Ragolu sragolu at mvista.com
Mon Jan 30 12:09:09 UTC 2017


Hi Alex,

With suggested configure options I get below java version. With or without
-Xint option , getting same delay.

*root at marvell-a385-cham:~/Certificates# java -version*
*openjdk version "1.8.0-internal"*
*OpenJDK Runtime Environment (build
1.8.0-internal-srinivas_2017_01_30_17_07-b00)*
*OpenJDK Zero VM (build 25.66-b00, interpreted mode)*

 I think still it builds ZeroVM due to below statement in my recipe, where
I am enabling zero mode builds for arm.
# Enable zero mode for arm based builds, as normal hotspot fails to build
PACKAGECONFIG_append_arm = " zero" If I comment above line, hotspot module
compiltion issues. As Andrew from forum suggested, will take latest source
tarballs from http://hg.openjdk.java.net/aarch32-port/jdk8u/, uncomment
above lines and then I will try to build. Update you once I through the
build. Thanks, Srinivas.




On Mon, Jan 30, 2017 at 3:45 PM, Alex Kashchenko <akashche at redhat.com>
wrote:

> Hi Srinivas,
>
> On 01/30/2017 07:02 AM, Srinivasa Rao Ragolu wrote:
>
>> Hi Edward/All,
>>
>> I have tried port  http://hg.openjdk.java.net/aarch32-port/jdk8u/ to
>> build
>> openjdk-8 but no luck. Still crypto performance is slow.
>>
>
> Could you please post test results with -Xint (with JIT disabled) and
> without -Xint (to be sure that JIT is included into build, please see
> below)?
>
> and I am enabling zero build to build hotspot in my recipe.
>>
>
> If you'll build ZeroVM from aarch32-port, it won't be noticeably different
> from ZeroVM built from jdk8u repos (the ones you used before). To build
> AArch32 JIT you need to configure with:
>
> --with-jvm-variants=client
>
> Please make sure that in -version output there is:
>
> OpenJDK *Client* VM ([...], *mixed* mode)
>
>
> Any other inputs that I could improve crypto performance?
>>
>> Thanks,
>> Srinivas.
>>
>> On Fri, Jan 27, 2017 at 5:14 PM, Edward Nevill <edward.nevill at gmail.com>
>> wrote:
>>
>> Hi Srinivas,
>>>
>>> On Fri, 2017-01-27 at 15:48 +0530, Srinivasa Rao Ragolu wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have ported openjdk-8-72b05(from Yocto) for armv7 . I am sharing
>>>>
>>> --------------------------^^^^^
>>>
>>> I am not familiar with this, but my guess is that you are building a Zero
>>> image. IE. You are building the reference interpreter implementation.
>>>
>>> I repeated your tests with a C1 build form armv7
>>>
>>> With C1 I get
>>>
>>> real    0m10.745s
>>> user    0m10.925s
>>> sys     0m0.235s
>>>
>>> With -Xint I get
>>>
>>> real    3m15.089s
>>> user    3m14.550s
>>> sys     0m0.280s
>>>
>>> Which is the same ballpark that you are getting.
>>>
>>> My guess is that yocto is picking up the sources from
>>>
>>> http://hg.openjdk.java.net/jdk8u/jdk8u/
>>>
>>> which does not have support for the C1 compiler.
>>>
>>> To build a version with the C1 compiler you need to use the source at
>>>
>>> http://hg.openjdk.java.net/aarch32-port/jdk8u/
>>>
>>> I have put a prebuilt image at
>>>
>>> http://camswl.com/images/jdk8-arm32-release.tgz
>>>
>>> which may work on your system (or may not depending on your shared libs)
>>> if you wish to give it a try.
>>>
>>> All the best,
>>> Ed.
>>>
>>>
>>> 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
>>>>
>>>>
>>>
>>>
>
> --
> -Alex
>


More information about the aarch32-port-dev mailing list