arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.00208cs.DB
收藏

避免键值存储中的线程阻塞和切换:新的无锁技术及其他

Avoiding Thread Stalls and Switches in Key-Value Stores: New Latch-Free Techniques and More

Microsoft Corp(微软公司)

David Lomet, Rui Wang

AI总结:

本文提出了一种新的无锁技术——通知,用于减少键值存储中的线程阻塞和切换,同时解决B树索引维护问题。

摘要:

键值存储高性能的主要障碍是线程切换或阻塞的高成本。尽管有很多原因导致这一问题,但一个主要原因是资源的竞争。这种成本随着负载增加而增加,因为冲突的操作更频繁地尝试同时访问数据。传统的锁基方法通常通过阻塞一个或多个竞争线程来处理这些情况。无锁技术可以避免这种行为。但若无锁技术需要执行浪费的工作,则收益可能受限。在本文中,我们展示了无锁技术如何利用delta记录更新,并通过使用一种新的无锁方法——通知,可以显著减少浪费的工作。本文解释了通知如何工作,并能解决B树索引维护问题,同时避免线程切换或阻塞。还讨论了其他避免线程切换或阻塞的机会。

英文摘要:

A significant impediment to high performance in key-value stores is the high cost of thread switching or stalls. While there are many sources for this, a major one is the contention for resources. And this cost increases with load as conflicting operations more frequently try to access data concurrently. Traditional latch-based approaches usually handle these situations by blocking one or more contending threads. Latch-free techniques can avoid this behavior. But the payoff may be limited if latch-free techniques require executing wasted work. In this paper, we show how latch-free techniques exploit delta record updating and can significantly reduce wasted work by using notices, a new latch-free approach. This paper explains how notices work and can solve B-tree index maintenance problems, while avoiding thread switches or stalls. Other opportunities for avoiding thread switches or stalls are also discussed.

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

↑