CoreDet

Author:

Bergan Tom1,Anderson Owen1,Devietti Joseph1,Ceze Luis1,Grossman Dan1

Affiliation:

1. University of Washington, Computer Science and Engineering, Seattle, WA, USA

Abstract

The behavior of a multithreaded program does not depend only on its inputs. Scheduling, memory reordering, timing, and low-level hardware effects all introduce nondeterminism in the execution of multithreaded programs. This severely complicates many tasks, including debugging, testing, and automatic replication. In this work, we avoid these complications by eliminating their root cause: we develop a compiler and runtime system that runs arbitrary multithreaded C/C++ POSIX Threads programs deterministically. A trivial non-performant approach to providing determinism is simply deterministically serializing execution. Instead, we present a compiler and runtime infrastructure that ensures determinism but resorts to serialization rarely, for handling interthread communication and synchronization. We develop two basic approaches, both of which are largely dynamic with performance improved by some static compiler optimizations. First, an ownership-based approach detects interthread communication via an evolving table that tracks ownership of memory regions by threads. Second, a buffering approach uses versioned memory and employs a deterministic commit protocol to make changes visible to other threads. While buffering has larger single-threaded overhead than ownership, it tends to scale better (serializing less often). A hybrid system sometimes performs and scales better than either approach individually. Our implementation is based on the LLVM compiler infrastructure. It needs neither programmer annotations nor special hardware. Our empirical evaluation uses the PARSEC and SPLASH2 benchmarks and shows that our approach scales comparably to nondeterministic execution.

Publisher

Association for Computing Machinery (ACM)

Reference28 articles.

1. Weak ordering---a new definition

2. Hoard

3. The PARSEC benchmark suite

4. G. Blelloch. NESL: A Nested Data-Parallel Language (Version 3.1). Technical report Carnegie Mellon University Pittsburgh PA. G. Blelloch. NESL: A Nested Data-Parallel Language (Version 3.1). Technical report Carnegie Mellon University Pittsburgh PA.

Cited by 19 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Requirements-preserving design automation for multiprocessor embedded system applications;Journal of Ambient Intelligence and Humanized Computing;2020-06-05

2. Sparse record and replay with controlled scheduling;Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation;2019-06-08

3. Lazy Determinism for Faster Deterministic Multithreading;Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems;2019-04-04

4. Taming Parallelism in a Multi-Variant Execution Environment;Proceedings of the Twelfth European Conference on Computer Systems;2017-04-23

5. Intention preservation in deterministic multithreading: a partial solution;IET Software;2016-12

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3