arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.13644cs.DScs.DC
收藏

如何即时松弛:并发数据结构的弹性松弛

How to Relax Instantly: Elastic Relaxation of Concurrent Data Structures

Kåre von Geijer, Philippas Tsigas

AI总结:

本文提出弹性松弛概念及Lateral组件,设计可运行时重构的无锁队列和栈,兼顾性能与语义,实验验证优于静态松弛方案。

摘要:

许多并发数据结构(如栈和队列)的顺序语义在并行环境中不可避免地导致内存争用,从而限制了可扩展性。语义松弛有潜力解决这一问题,以削弱语义为代价增加并行性。尽管先前的研究表明,通过松弛并发数据结构语义可以获得更好的性能,但不存在一种通用的松弛方案能够充分满足动态执行的各种需求。在本文中,我们首先引入弹性松弛的概念,并由此提出Lateral结构,这是一种能够支持设计弹性松弛并发数据结构的算法组件。利用Lateral,我们设计了新颖的、弹性松弛的无锁队列和栈,它们能够在运行时重新配置松弛程度。我们建立了线性化性质,并为我们的设计定义了松弛误差的上界。实验评估表明,我们的弹性设计在与最先进的静态松弛设计相比时表现良好,同时能够迅速处理松弛与操作延迟之间的权衡。我们还概述了如何使用Lateral来设计弹性松弛的无锁计数器和双端队列。

英文摘要:

The sequential semantics of many concurrent data structures, such as stacks and queues, inevitably lead to memory contention in parallel environments, thus limiting scalability. Semantic relaxation has the potential to address this issue, increasing the parallelism at the expense of weakened semantics. Although prior research has shown that improved performance can be attained by relaxing concurrent data structure semantics, there is no one-size-fits-all relaxation that adequately addresses the varying needs of dynamic executions. In this paper, we first introduce the concept of elastic relaxation and consequently present the Lateral structure, which is an algorithmic component capable of supporting the design of elastically relaxed concurrent data structures. Using the Lateral , we design novel elastically relaxed, lock-free queues and stacks capable of reconfiguring relaxation during run time. We establish linearizability and define upper bounds for relaxation errors in our designs. Experimental evaluations show that our elastic designs hold up against state-of-the-art statically relaxed designs, while also swiftly managing trade-offs between relaxation and operational latency. We also outline how to use the Lateral to design elastically relaxed lock-free counters and deques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑