首页> 外文期刊>Computer architecture news >TxRace: Efficient Data Race Detection Using Commodity Hardware Transactional Memory
【24h】

TxRace: Efficient Data Race Detection Using Commodity Hardware Transactional Memory

机译:TxRace:使用商品硬件事务存储进行有效的数据竞争检测

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

摘要

Detecting data races is important for debugging shared-memory multithreaded programs, but the high runtime overhead prevents the wide use of dynamic data race detectors. This paper presents TxRace, a new software data race detector that leverages commodity hardware transactional memory (HTM) to speed up data race detection. TxRace instruments a multithreaded program to transform synchronization-free regions into transactions, and exploits the conflict detection mechanism of HTM for lightweight data race detection at runtime. However, the limitations of the current best-effort commodity HTMs expose several challenges in using them for data race detection: (1) lack of ability to pinpoint racy instructions, (2) false positives caused by cache line granularity of conflict detection, and (3) transactional aborts for non-conflict reasons (e.g., capacity or unknown). To overcome these challenges, TxRace performs lightweight HTM-based data race detection at first, and occasionally switches to slow yet precise data race detection only for the small fraction of execution intervals in which potential races are reported by HTM. According to the experimental results, TxRace reduces the average runtime overhead of dynamic data race detection from 11.68× to 4.65x with only a small number of false negatives.
机译:检测数据竞争对于调试共享内存多线程程序很重要,但是较高的运行时开销阻止了动态数据竞争检测器的广泛使用。本文介绍了TxRace,这是一种新型的软件数据竞赛检测器,它利用商品硬件事务存储器(HTM)加快了数据竞赛检测的速度。 TxRace使用多线程程序将无同步区域转换为事务,并利用HTM的冲突检测机制在运行时检测轻量级数据竞争。但是,当前尽力而为的商品HTM的局限性在将它们用于数据种族检测时暴露了一些挑战:(1)缺乏查明恶意指令的能力,(2)由冲突检测的缓存行粒度导致的误报,以及( 3)出于非冲突原因(例如容量或未知)的事务中止。为了克服这些挑战,TxRace首先执行基于HTM的轻量级数据争用检测,并偶尔切换到缓慢而精确的数据争用检测,仅适用于HTM报告潜在争用的执行间隔的一小部分。根据实验结果,TxRace将动态数据竞速检测的平均运行时开销从11.68倍减少到4.65倍,且误报率极低。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号