首页> 外文会议>Real-time systems symposium >TO-Lock: removing lock overhead using the owners' temporal locality
【24h】

TO-Lock: removing lock overhead using the owners' temporal locality

机译:TO-Lock:使用所有者的临时位置消除锁定开销

获取原文
获取原文并翻译 | 示例

摘要

The performance of locking is critical, as programming languages with built-in thread support are coming into wide use. Many techniques for optimizing Java monitors have been proposed, based on the observation that the locks are rarely contended for in many applications. However, the problem of the performance degradation in SMP environments caused by necessary serializations of the processors' execution has not been addressed for shared objects. We propose a new algorithm for this problem. It uses simple instructions to acquire the lock by exploiting the owner locality for objects even if the ownership has migrated among the threads. Our algorithm is particularly effective for SMP environments because we can remove the overhead of the serialization caused by complex atomic operations for uncontended locks by allowing the lock operation and the code protected by the lock to be executed in parallel. We verified the safety of the algorithm by using a software tool, Spin. The experimental results of our benchmarking on an SMP machine using Intel Xeon processors showed that our algorithm can significantly improve the performance by 83% on average compared to the case using a complex atomic instruction.
机译:锁定的性能至关重要,因为带有内置线程支持的编程语言正在广泛使用。基于这样的观察,提出了许多优化Java监视器的技术:在许多应用程序中,锁很少争用。但是,尚未针对共享对象解决由处理器执行的必要序列化导致的SMP环境中性能下降的问题。我们针对此问题提出了一种新算法。它使用简单的指令通过利用对象的所有者位置来获取锁,即使所有权已在线程之间迁移也是如此。我们的算法对SMP环境特别有效,因为我们可以允许锁操作和受锁保护的代码并行执行,从而消除了无竞争锁的复杂原子操作所导致的序列化开销。我们使用软件工具Spin验证了算法的安全性。我们在使用Intel Xeon处理器的SMP机器上进行基准测试的实验结果表明,与使用复杂原子指令的情况相比,我们的算法平均可以将性能平均提高83%。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号