• Medientyp: E-Artikel
  • Titel: Mostly-optimistic concurrency control for highly contended dynamic workloads on a thousand cores
  • Beteiligte: Wang, Tianzheng; Kimura, Hideaki
  • Erschienen: Association for Computing Machinery (ACM), 2016
  • Erschienen in: Proceedings of the VLDB Endowment, 10 (2016) 2, Seite 49-60
  • Sprache: Englisch
  • DOI: 10.14778/3015274.3015276
  • ISSN: 2150-8097
  • Entstehung:
  • Anmerkungen:
  • Beschreibung: 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.