路径树中的意外缩放
Unexpected Scaling in Path Copying Trees
摘要:
尽管已经提出了各种各样的手工制作的并发数据结构,但是对于用于构建并发数据结构的通用方法(此后称为通用构造或UC)存在相当大的兴趣。这些方法(半)自动地将顺序数据结构转换为并发数据结构。最简单的方法是使用锁来保护顺序数据结构,并且一次只允许一个进程访问它。产生的数据结构使用锁,因此是阻塞的。相反,大多数关于UC的工作都集中在获得非阻塞的进度保证上,比如阻塞自由、锁自由或等待自由。出现了许多非阻塞UC。关键的例子包括Herlihy的开创性的无等待UC,Yi等人的NUMA感知UC,和Fatourou等人提出的一种针对大型对象的高效UC。我们借鉴了持久化数据结构和多版本并发控制(MVCC)的思想,特别是路径复制,并使用它们来实现顺序持久化数据结构的并发版本。尽管我们期望我们的数据结构不会在写繁重的工作负载下扩展,但它们在实践中扩展。我们确认这种缩放分析在我们的模型与私人每进程缓存。
英文摘要:
Although a wide variety of handcrafted concurrent data structures have been proposed, there is considerable interest in universal approaches (henceforth called Universal Constructions or UCs) for building concurrent data structures. These approaches (semi-)automatically convert a sequential data structure into a concurrent one. The simplest approach uses locks that protect a sequential data structure and allow only one process to access it at a time. The resulting data structures use locks, and hence are blocking. Most work on UCs instead focuses on obtaining non-blocking progress guarantees such as obstruction-freedom, lock-freedom, or wait-freedom. Many non-blocking UCs have appeared. Key examples include the seminal wait-free UC by Herlihy, a NUMA-aware UC by Yi et al., and an efficient UC for large objects by Fatourou et al. We borrow ideas from persistent data structures and multi-version concurrency control (MVCC), most notably path copying, and use them to implement concurrent versions of sequential persistent data structures. Despite our expectation that our data structures would not scale under write-heavy workloads, they scale in practice. We confirm this scaling analytically in our model with private per-process caches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。