放宽并发数据结构语义以提升性能:一种多结构二维设计框架
Relaxing Concurrent Data-structure Semantics for Increasing Performance: A Multi-structure 2D Design Framework
AI总结:
本文提出一种无锁并发数据结构二维设计框架,通过多实例分散操作和利用数据局部性实现乱序语义放宽,在确定性界限内单调提升吞吐量,并在队列、栈、计数器等结构上验证了其显著性能优势。
摘要:
文献中已有大量工作提出对并发数据结构进行语义放宽,以提升可扩展性和性能。通过放宽数据结构的语义,可以揭示出更大的设计空间,从而允许更弱的同步和更有用的并行性。研究能够在单调方式下以语义换取更好性能的新型数据结构设计,是该领域的一项重大挑战。我们在本文中以算法方式应对这一挑战。为应对这一挑战,我们提出了一种高效的、无锁的、面向乱序语义放宽的并发数据结构设计框架。我们的框架引入了一种新的二维算法设计,该设计使用给定数据结构的多个实现实例。我们设计的第一个维度是数据结构实例的数量,操作被分散到这些实例上,以便通过不相交的内存访问实现更高的并行性。第二个维度是单个线程可以停留在同一数据结构实例上的连续操作数量,以便从数据局部性中获益。我们的设计可以灵活地探索这一二维空间,从而在严格的确定性放宽界限内,通过放宽并发数据结构语义来实现单调递增的吞吐量性能,正如我们在文中所证明的那样。我们展示了该框架如何实例化无锁乱序队列、栈、计数器和双端队列。实验评估表明,我们的二维数据结构:i) 在可扩展性和吞吐量性能方面显著优于先前备受推崇的方案;ii) 随着放宽程度的增加,吞吐量单调递增。
英文摘要:
There has been a significant amount of work in the literature proposing semantic relaxation of concurrent data structures for improving scalability and performance. By relaxing the semantics of a data structure, a bigger design space, that allows weaker synchronization and more useful parallelism, is unveiled. Investigating new data structure designs, capable of trading semantics for achieving better performance in a monotonic way, is a major challenge in the area. We algorithmically address this challenge in this paper.To address this challenge, we present an efficient lock-free, concurrent data structure design framework for out-of-order semantic relaxation. Our framework introduces a new two dimensional algorithmic design, that uses multiple instances of an implementation of the given data structure. The first dimension of our design is the number of data structure instances onto which operations are spread to, in order to achieve increased parallelism through disjoint memory accesses. The second dimension is the number of consecutive operations of a single thread that can stay at the same data structure instance in order to benefit from data locality. Our design can flexibly explore this two-dimensional space to achieve the property of monotonically increasing throughput performance via relaxing concurrent data structure semantics within a tight deterministic relaxation bound, as we prove in the paper. We show how our framework can instantiate lock-free out-of-order queues, stacks, counters and dequeues. The experimental evaluation shows that our two-dimensional data structures: i) significantly outperform the respected previous proposed ones with respect to scalability and throughput performance and ii) monotonically increase throughput as relaxation increases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。