【24h】

Cache locking optimization in java virtual machine

机译:Java虚拟机中的缓存锁定优化

获取原文

摘要

Cache plays an important role in multilevel storage system. It can greatly reduce the memory access latency. So the cache hit rate has a significant impact on the performance of the application. Many processors provide cache locking mechanism, which can lock the certain lines in cache. It enables an application to affect the cache replacement decisions under software control. This paper presents a novel method, which uses cache locking mechanism to reduce the run-time of java virtual machine (JVM). JVM often uses just-in-time compiler (JIT) to improve the performance. JIT compiles the method that has been invoked certain times, and then JVM executes the compiled method when invoking this method the next time. This paper analyzes the calling situation of the compiled method in JVM, and then proposes a heuristic approach to lock the compiled method in cache for an appropriate period. It can reduce cache miss rate when JVM executes the compiled method. The algorithm has been implemented in HotSpot based on Loongson-3A. Also, it can be implemented in other run-time systems. Experiment results show that the cache locking heuristic algorithm averagely reduces the cache miss rate by 8.5%, and improves the performance by 4% on the benchmark SPECjvm2008.
机译:缓存在多级存储系统中扮演一个重要的作用。它可以大大降低内存访问延迟。因此缓存命中率对应用程序的性能产生了重大影响。许多处理器提供缓存锁定机制,可以锁定缓存中的某些行。它使应用程序能够影响软件控制下的缓存替换决策。本文介绍了一种新的方法,它使用缓存锁定机制来减少Java虚拟机(JVM)的运行时。 JVM通常使用即时编译器(JIT)来提高性能。 JIT编译已在某些时间调用的方法,然后在下次调用此方法时执行jvm执行编译的方法。本文分析了JVM中编译方法的调用情况,然后提出了一种启发式方法来锁定缓存中的编译方法进行适当的时期。当JVM执行编译方法时,它可以降低缓存未命中率。该算法已经在基于Loongson-3a的热点中实现。此外,它可以在其他运行时间系统中实现。实验结果表明,该缓存锁定启发式算法8.5%平均降低了高速缓存未命中率,并提高了对基准SPECjvm2008表现了4%。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号