Abstract
Future servers will be equipped with thousands of CPU cores and deep memory hierarchies. Traditional concurrency control (CC) schemes---both optimistic and pessimistic---slow down orders of magnitude in such environments for highly contended workloads. Optimistic CC (OCC) scales the best for workloads with few conflicts, but suffers from clobbered reads for high conflict workloads. Although pessimistic locking can protect reads, it floods cache-coherence backbones in deep memory hierarchies and can also cause numerous deadlock aborts.
This paper proposes a new CC scheme,
mostly-optimistic concurrency control
(MOCC), to address these problems. MOCC achieves orders of magnitude higher performance for dynamic workloads on modern servers. The key objective of MOCC is to avoid clobbered reads for high conflict workloads, without any centralized mechanisms or heavyweight interthread communication. To satisfy such needs, we devise a native, cancellable reader-writer spinlock and a serializable protocol that can acquire, release and re-acquire locks in any order without expensive interthread communication. For low conflict workloads, MOCC maintains OCC's high performance without taking read locks.
Our experiments with high conflict YCSB workloads on a 288-core server reveal that MOCC performs 8× and 23× faster than OCC and pessimistic locking, respectively. It achieves 17 million TPS for TPC-C and more than 110 million TPS for YCSB without conflicts, 170× faster than pessimistic methods.
Subject
General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development
Cited by
49 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. WoundDie: Concurrency Control Protocol with Lightweight Priority Control;Proceedings of the 15th ACM SIGOPS Asia-Pacific Workshop on Systems;2024-09-04
2. LTPG: Large-Batch Transaction Processing on GPUs with Deterministic Concurrency Control;2024 IEEE 40th International Conference on Data Engineering (ICDE);2024-05-13
3. Efficient Partial Order Based Transaction Processing for Permissioned Blockchains;2024 IEEE 40th International Conference on Data Engineering (ICDE);2024-05-13
4. EPO‐R: An efficient garbage collection scheme for long‐term transactions;Concurrency and Computation: Practice and Experience;2024-05-04
5. Scaling Up Transactions with Slower Clocks;Proceedings of the 29th ACM SIGPLAN Annual Symposium on Principles and Practice of Parallel Programming;2024-02-20