Java 程序在 ARM 架构上运行速度比 Intel Xeon 慢

问题描述 投票:0回答:0

我当前正在运行 Java 程序 MATSim,该程序在由 Intel Xeon Gold 6230 (20C @ 2.1GHz) 驱动的集群上执行多代理模拟。然而,当我尝试在基于 ARM 的架构(Fujitsu A64FX、48C、2.2GHz)上运行相同的 JAR 文件时,性能显着下降,速度慢了约 6 倍。

这种行为并不符合预期,因为我使用的 ARM 处理器是高端处理器,应该能够在性能方面与 Xeon 竞争。此外,Java 被设计为可跨不同架构移植,因此这种差异非常令人费解。

我正在考虑一些潜在的原因:

I might need to use an ARM-optimized version of the JVM.
There might be some portions of the Java code that are not as optimized for ARM.
The Java program might be using libraries with native components that are not optimized for ARM.
There could be inherent hardware differences impacting the performance.

我目前正在寻找有关如何提高该 Java 程序在 ARM 上的性能的建议。任何有关针对 ARM 优化的 JVM、分析和优化工具或针对 ARM 优化 Java 代码的策略的建议都将不胜感激。

java performance x86 arm
© www.soinside.com 2019 - 2024. All rights reserved.