Scaling concurrent queues by using HTM to profit from failed atomic operations
Or Ostrovsky, Adam Morrison
摘要
Queues are fundamental concurrent data structures, but despite years of research, even the state-of-the-art queues scale poorly. This poor scalability occurs because of contended atomic read-modify-write (RMW) operations.
This paper makes a first step towards designing a scalable linearizable queue. We leverage hardware transactional memory (HTM) to design TxCAS, a scalable compare-and-set (CAS) primitive-despite HTM being targeted mainly at uncontended scenarios.
Leveraging TxCAS's scalability requires a queue design that does not blindly retry failed CASs. We thus apply TxCAS to the baskets queue, which steers enqueuers whose CAS fails into dedicated basket data structures. Coupled with a new, scalable basket algorithm, we obtain SBQ, the scalable baskets queue. At high concurrency levels, SBQ outperforms the fastest queue today by 1.6× on a producer-only workload.
CCS Concepts • Theory of computation → Concurrent algorithms.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper2
- The State-of-the-Art LCRQ Concurrent Queue Algorithm Does NOT Require CAS2Raed Romanov, Nikita KovalPPoPP 2023 · 被引用 8 次
- BBQ: A Block-based Bounded Queue for Exchanging Data and ProfilingJiawei Wang, Diogo Behrens, Ming Fu, Lilith Oberhauser 等USENIX ATC 2022
相关 Paper
- PathCAS: an efficient middle ground for concurrent search data structuresTrevor Brown, William Sigouin, Dan AlistarhPPoPP 2022 · 被引用 4 次
- Exploiting Persistent CPU Cache for Scalable Persistent Hash IndexBowen Zhang, Shengan Zheng, Liangxu Nie, Zhenlin Qi 等ICDE 2024 · 被引用 3 次
- SPHT: Scalable Persistent Hardware TransactionsDaniel Castro, Alexandro Baldassin, João Barreto, Paolo RomanoFAST 2021 · 被引用 12 次
- Aggregating Funnels for Faster Fetch&Add and QueuesYounghun Roh, Yuanhao Wei, Eric Ruppert, Panagiota Fatourou 等PPoPP 2025 · 被引用 2 次
- Practical Hardware Transactional vEB TreesMohammad Khalaji, Trevor Brown, Khuzaima Daudjee, Vitaly AksenovPPoPP 2024 · 被引用 3 次
