Rainbow: Efficient memory dependence recording with high replay parallelism for relaxed memory model

Xuehai Qian, He Huang, B. Sahelices, D. Qian
{"title":"Rainbow: Efficient memory dependence recording with high replay parallelism for relaxed memory model","authors":"Xuehai Qian, He Huang, B. Sahelices, D. Qian","doi":"10.1109/HPCA.2013.6522349","DOIUrl":null,"url":null,"abstract":"Architectures for record-and-replay (R&R) of multithreaded applications ease program debugging, intrusion analysis and fault-tolerance. Among the large body of previous works, Strata enables efficient memory dependence recording with little hardware overhead and can be applied smoothly to snoopy protocols. However, Strata records imprecise happens-before relations and assumes Sequential Consistency (SC) machines that execute memory operations in order. This paper proposes Rainbow, which is based on Strata but records near-precise happens-before relations, reducing the number of logs and increasing the replay parallelism. More importantly, it is the first R&R scheme that supports any relaxed memory consistency model. These improvements are achieved by two key techniques: (1) To compact logs, we propose expandable spectrum (the region between two logs). It allows younger non-conflict memory operations to be moved into older spectrum, increasing the chance of reusing existing logs. (2) To identify the overlapped and incompatible spectra due to reordered memory operations, we propose an SC violation detection mechanism based on the existing logs and the extra information can be recorded to reproduce the violations when they occur. Our simulation results with 10 SPLASH-2 benchmarks show that Rainbow reduces the log size by 26.6% and improves replay speed by 26.8% compared to Strata. The SC violations are few but do exist in the applications evaluated.","PeriodicalId":357799,"journal":{"name":"2013 IEEE 19th International Symposium on High Performance Computer Architecture (HPCA)","volume":"8 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2013-02-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"11","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2013 IEEE 19th International Symposium on High Performance Computer Architecture (HPCA)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/HPCA.2013.6522349","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 11

Abstract

Architectures for record-and-replay (R&R) of multithreaded applications ease program debugging, intrusion analysis and fault-tolerance. Among the large body of previous works, Strata enables efficient memory dependence recording with little hardware overhead and can be applied smoothly to snoopy protocols. However, Strata records imprecise happens-before relations and assumes Sequential Consistency (SC) machines that execute memory operations in order. This paper proposes Rainbow, which is based on Strata but records near-precise happens-before relations, reducing the number of logs and increasing the replay parallelism. More importantly, it is the first R&R scheme that supports any relaxed memory consistency model. These improvements are achieved by two key techniques: (1) To compact logs, we propose expandable spectrum (the region between two logs). It allows younger non-conflict memory operations to be moved into older spectrum, increasing the chance of reusing existing logs. (2) To identify the overlapped and incompatible spectra due to reordered memory operations, we propose an SC violation detection mechanism based on the existing logs and the extra information can be recorded to reproduce the violations when they occur. Our simulation results with 10 SPLASH-2 benchmarks show that Rainbow reduces the log size by 26.6% and improves replay speed by 26.8% compared to Strata. The SC violations are few but do exist in the applications evaluated.
Rainbow:高效的内存依赖记录,具有高重放并行性,适用于放松内存模型
多线程应用程序的记录和重播(R&R)架构简化了程序调试、入侵分析和容错。在之前的大量工作中,Strata以很少的硬件开销实现了高效的内存依赖记录,并且可以顺利地应用于snoopy协议。然而,Strata记录了不精确的happens-before关系,并假设顺序一致性(Sequential Consistency, SC)机器按顺序执行内存操作。本文提出了基于Strata的Rainbow,它记录了近乎精确的happens-before关系,减少了日志数量并增加了重放并行性。更重要的是,它是第一个支持任意宽松内存一致性模型的R&R方案。这些改进是通过两个关键技术实现的:(1)为了压缩日志,我们提出了可扩展频谱(两个日志之间的区域)。它允许将较年轻的非冲突内存操作移到较旧的频谱中,从而增加重用现有日志的机会。(2)为了识别由于内存重排序操作导致的重叠和不相容光谱,我们提出了一种基于现有日志的SC违规检测机制,并可以记录额外的信息,以便在发生违规时重现违规。我们对10个SPLASH-2基准测试的模拟结果表明,与Strata相比,Rainbow减少了26.6%的日志大小,提高了26.8%的重放速度。违反SC的情况很少,但在评估的应用程序中确实存在。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信