Capturing High-level Nondeterminism in Concurrent Programs for Practical Concurrency Model Agnostic Record & Replay

Dominik Aumayr, Stefan Marr, Sophie Kaleba, E. G. Boix, H. Mössenböck
{"title":"Capturing High-level Nondeterminism in Concurrent Programs for Practical Concurrency Model Agnostic Record & Replay","authors":"Dominik Aumayr, Stefan Marr, Sophie Kaleba, E. G. Boix, H. Mössenböck","doi":"10.22152/programming-journal.org/2021/5/14","DOIUrl":null,"url":null,"abstract":"With concurrency being integral to most software systems, developers combine high-level concurrency models in the same application to tackle each problem with appropriate abstractions. While languages and libraries offer a wide range of concurrency models, debugging support for applications that combine them has not yet gained much attention. Record& replay aids debugging by deterministically reproducing recorded bugs, but is typically designed for a single concurrency model only. This paper proposes a practical concurrency-model-agnostic record& replay approach for multi-paradigm concurrent programs, i. e. applications that combine concurrency models. Our approach traces high-level nondeterministic events by using a uniformmodel-agnostic trace format and infrastructure. This enables orderingbased record& replay support for a wide range of concurrency models, and thereby enables debugging of applications that combine them. In addition, it allows language implementors to add new concurrency models and reuse the model-agnostic record& replay support. We argue that a concurrency-model-agnostic record& replay is practical and enables advanced debugging support for a wide range of concurrency models. The evaluation shows that our approach is expressive and flexible enough to support record& replay of applications using threads& locks, communicating event loops, communicating sequential processes, software transactional memory and combinations of those concurrency models. For the actor model, we reach recording performance competitive with an optimized special-purpose record& replay solution. The average recording overhead on the Savina actor benchmark suite is 10% (min. 0%, max. 23%). The performance for other concurrency models and combinations thereof is at a similar level. We believe our concurrency-model-agnostic approach helps developers of applications that mix and match concurrency models. We hope that this substrate inspires new tools and languages making building and maintaining of multi-paradigm concurrent applications simpler and safer.","PeriodicalId":224558,"journal":{"name":"Art Sci. Eng. Program.","volume":"211 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-02-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Art Sci. Eng. Program.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.22152/programming-journal.org/2021/5/14","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

With concurrency being integral to most software systems, developers combine high-level concurrency models in the same application to tackle each problem with appropriate abstractions. While languages and libraries offer a wide range of concurrency models, debugging support for applications that combine them has not yet gained much attention. Record& replay aids debugging by deterministically reproducing recorded bugs, but is typically designed for a single concurrency model only. This paper proposes a practical concurrency-model-agnostic record& replay approach for multi-paradigm concurrent programs, i. e. applications that combine concurrency models. Our approach traces high-level nondeterministic events by using a uniformmodel-agnostic trace format and infrastructure. This enables orderingbased record& replay support for a wide range of concurrency models, and thereby enables debugging of applications that combine them. In addition, it allows language implementors to add new concurrency models and reuse the model-agnostic record& replay support. We argue that a concurrency-model-agnostic record& replay is practical and enables advanced debugging support for a wide range of concurrency models. The evaluation shows that our approach is expressive and flexible enough to support record& replay of applications using threads& locks, communicating event loops, communicating sequential processes, software transactional memory and combinations of those concurrency models. For the actor model, we reach recording performance competitive with an optimized special-purpose record& replay solution. The average recording overhead on the Savina actor benchmark suite is 10% (min. 0%, max. 23%). The performance for other concurrency models and combinations thereof is at a similar level. We believe our concurrency-model-agnostic approach helps developers of applications that mix and match concurrency models. We hope that this substrate inspires new tools and languages making building and maintaining of multi-paradigm concurrent applications simpler and safer.
在实际并发模型不可知的记录和重放中捕获并发程序中的高级不确定性
由于并发性是大多数软件系统的组成部分,开发人员将高级并发模型组合在同一个应用程序中,用适当的抽象来解决每个问题。虽然语言和库提供了广泛的并发模型,但对结合这些模型的应用程序的调试支持还没有得到太多关注。记录&重播通过确定地再现记录的错误来帮助调试,但通常仅为单个并发模型设计。本文针对多范式并发程序(即结合并发模型的应用程序)提出了一种实用的与并发模型无关的记录和重放方法。我们的方法通过使用与统一模型无关的跟踪格式和基础结构来跟踪高级不确定性事件。这使得基于排序的记录和重播支持广泛的并发模型,从而可以调试组合它们的应用程序。此外,它还允许语言实现者添加新的并发模型,并重用与模型无关的记录和重放支持。我们认为,与并发模型无关的记录和重放是实用的,并且可以为广泛的并发模型提供高级调试支持。评估表明,我们的方法具有足够的表现力和灵活性,可以支持使用线程和锁、通信事件循环、通信顺序进程、软件事务内存和这些并发模型的组合来记录和重放应用程序。对于演员模型,我们通过优化的专用录制&重播解决方案达到了具有竞争力的录制性能。Savina actor基准测试套件的平均记录开销为10%(最小为0%,最大为10%)。23%)。其他并发模型及其组合的性能也处于类似的水平。我们相信我们的与并发模型无关的方法可以帮助混合和匹配并发模型的应用程序开发人员。我们希望这个基础能够激发新的工具和语言,使多范式并发应用程序的构建和维护更简单、更安全。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:604180095
Book学术官方微信
小红书