Performant almost-latch-free data structures using epoch protection in more depth

Tianyu Li, Badrish Chandramouli, Samuel Madden
{"title":"Performant almost-latch-free data structures using epoch protection in more depth","authors":"Tianyu Li, Badrish Chandramouli, Samuel Madden","doi":"10.1007/s00778-024-00859-8","DOIUrl":null,"url":null,"abstract":"<p>Multi-core scalability presents a major implementation challenge for data system designers today. Traditional methods such as latching no longer scale in today’s highly parallel architectures. While the designer can make use of techniques such as latch-free programming to painstakingly design specialized, highly-performant solutions, such solutions are often intricate to build and difficult to reason about. Of particular interest to data system designers is a class of data structures we call <i>almost-latch-free</i>; such data structures can be made scalable in the common case, but have rare complications (e.g., dynamic resizing) that prevent full latch-free implementations. In this work, we present a new programming framework called Epoch-Protected Version Scheme (EPVS) to make it easy to build such data structures. EPVS makes use of <i>epoch protection</i> to preserve performance in the common case of latch-free operations, while allowing users to specify critical sections that execute under mutual exclusion for the rare, non-latch-free operations. We showcase the use of EPVS-based concurrency primitives in a few practical systems to demonstrate its competitive performance and intuitive guarantees. EPVS is available in open source as part of Microsoft’s FASTER project (Epoch Protected Version Scheme (source code) 2022; Microsoft FASTER 2022).</p>","PeriodicalId":501532,"journal":{"name":"The VLDB Journal","volume":"40 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-06-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"The VLDB Journal","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1007/s00778-024-00859-8","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Multi-core scalability presents a major implementation challenge for data system designers today. Traditional methods such as latching no longer scale in today’s highly parallel architectures. While the designer can make use of techniques such as latch-free programming to painstakingly design specialized, highly-performant solutions, such solutions are often intricate to build and difficult to reason about. Of particular interest to data system designers is a class of data structures we call almost-latch-free; such data structures can be made scalable in the common case, but have rare complications (e.g., dynamic resizing) that prevent full latch-free implementations. In this work, we present a new programming framework called Epoch-Protected Version Scheme (EPVS) to make it easy to build such data structures. EPVS makes use of epoch protection to preserve performance in the common case of latch-free operations, while allowing users to specify critical sections that execute under mutual exclusion for the rare, non-latch-free operations. We showcase the use of EPVS-based concurrency primitives in a few practical systems to demonstrate its competitive performance and intuitive guarantees. EPVS is available in open source as part of Microsoft’s FASTER project (Epoch Protected Version Scheme (source code) 2022; Microsoft FASTER 2022).

Abstract Image

更深入地了解使用划时代保护的高性能几乎无锁存器数据结构
多核可扩展性是当今数据系统设计人员面临的一项重大实施挑战。在当今高度并行的架构中,锁存等传统方法已不再适用。虽然设计人员可以利用无锁存器编程等技术,煞费苦心地设计出专门的高性能解决方案,但这些解决方案往往构建复杂,难以推理。数据系统设计者特别感兴趣的是一类我们称之为几乎无锁存器的数据结构;这类数据结构在一般情况下可以扩展,但存在罕见的复杂性(如动态大小调整),无法完全实现无锁存器。在这项工作中,我们提出了一种新的编程框架,称为 "历元保护版本方案"(EPVS),以方便构建此类数据结构。EPVS 利用历元保护来保持常见的无锁存器操作的性能,同时允许用户为罕见的非无锁存器操作指定在互斥条件下执行的关键部分。我们在一些实际系统中展示了基于 EPVS 的并发基元,以证明其具有竞争力的性能和直观的保证。EPVS 已作为微软 FASTER 项目(Epoch Protected Version Scheme (source code) 2022; Microsoft FASTER 2022)的一部分开源。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信