首页> 外文期刊>ACM Transactions on Parallel Computing >Processor-Oblivious Record and Replay
【24h】

Processor-Oblivious Record and Replay

机译:处理器无法记录和重放

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

摘要

Record-and-replay systems are useful tools for debugging non-deterministic parallel programs by first recording an execution and then replaying that execution to produce the same access pattern. Existing record-and-replay systems generally target thread-based execution models, and record the behaviors and interleavings of individual threads. Dynamic multithreaded languages and libraries, such as the Cilk family, OpenMP, TBB, and the like, do not have a notion of threads. Instead, these languages provide a processor-oblivious model of programming, where programs expose task parallelism using high-level constructs such as spawn/sync without regard to the number of threads/cores available to run the program. Thread-based record-and-replay would violate the processor-oblivious nature of these programs, as they incorporate the number of threads into the recorded information, constraining the replayed execution to the same number of threads. In this article, we present a processor-oblivious record-and-replay scheme for dynamic multithreaded languages where record and replay can use different number of processors and both are scheduled using work stealing. We provide theoretical guarantees for our record and replay scheme—namely that record is optimal for programs with one lock and replay is near-optimal for all cases. In addition, we implemented this scheme in the Cilk Plus runtime system and our evaluation indicates that processor-obliviousness does not cause substantial overheads.
机译:记录和重放系统是调试非确定性并行程序的有用工具,方法是先记录执行,然后重放该执行以产生相同的访问模式,从而调试不确定的并行程序。现有的记录和重放系统通常以基于线程的执行模型为目标,并记录各个线程的行为和交错。动态多线程语言和库(例如Cilk系列,OpenMP,TBB等)没有线程的概念。相反,这些语言提供了处理器无关的编程模型,其中程序使用诸如生成/同步之类的高级结构来公开任务并行性,而不考虑可用于运行程序的线程/核心的数量。基于线程的记录和重放将违反这些程序的处理器无关性,因为它们将线程数合并到记录的信息中,从而将重放的执行限制为相同数量的线程。在本文中,我们为动态多线程语言提出了一种处理器忽略的记录和重放方案,其中记录和重放可以使用不同数量的处理器,并且两者都使用工作窃取进行调度。我们为我们的记录和重播方案提供了理论上的保证-即,记录对于具有一个锁的程序是最佳的,并且在所有情况下重播几乎都是最佳的。另外,我们在Cilk Plus运行时系统中实现了该方案,我们的评估表明处理器无关性不会导致大量开销。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号