Skip to main content
QUICK REVIEW

[Paper Review] High-Performance Concurrency Control Mechanisms for Main-Memory Databases

Per-Åke Larson, Spyros Blanas|arXiv (Cornell University)|Dec 31, 2011
Distributed systems and fault toleranceComputer Science1 references4 citations
TL;DR

This paper proposes two high-performance multiversion concurrency control (MVCC) mechanisms—optimistic and pessimistic—for main-memory OLTP databases. Both use multiversioning to isolate read-only transactions from updates, with the optimistic variant using validation and atomic timestamping to minimize contention; experiments show MVCC methods outperform single-version locking under high contention or long transactions, with the optimistic approach achieving higher throughput.

ABSTRACT

A database system optimized for in-memory storage can support much higher transaction rates than current systems. However, standard concurrency control methods used today do not scale to the high transaction rates achievable by such systems. In this paper we introduce two efficient concurrency control methods specifically designed for main-memory databases. Both use multiversioning to isolate read-only transactions from updates but differ in how atomicity is ensured: one is optimistic and one is pessimistic. To avoid expensive context switching, transactions never block during normal processing but they may have to wait before commit to ensure correct serialization ordering. We also implemented a main-memory optimized version of single-version locking. Experimental results show that while single-version locking works well when transactions are short and contention is low performance degrades under more demanding conditions. The multiversion schemes have higher overhead but are much less sensitive to hotspots and the presence of long-running transactions.

Motivation & Objective

  • To address the scalability limitations of traditional single-version locking in high-throughput main-memory OLTP systems.
  • To design and evaluate multiversion concurrency control mechanisms optimized for in-memory workloads.
  • To compare the performance of optimistic and pessimistic MVCC schemes against single-version locking under varying workloads.
  • To identify conditions under which MVCC provides superior resilience and throughput compared to traditional locking.

Proposed method

  • Proposes an optimistic MVCC scheme that uses atomic timestamp acquisition for serialization and validation at commit to ensure serializability.
  • Implements a pessimistic MVCC scheme using multiversion locking to prevent conflicts during transaction execution.
  • Designs a main-memory-optimized variant of single-version locking to serve as a performance baseline.
  • Uses version timestamps to determine visibility and updatability, ensuring read stability and phantom avoidance.
  • Minimizes contention by avoiding blocking during normal processing; only commit phase involves potential waiting.
  • Employs a critical section only for timestamp acquisition, which is a single atomic instruction, enabling high parallelism.

Experimental results

Research questions

  • RQ1How does optimistic MVCC perform compared to pessimistic MVCC and single-version locking in high-throughput main-memory environments?
  • RQ2Can multiversioning significantly improve resilience to hotspots and long-running read-only transactions compared to single-version locking?
  • RQ3What is the performance overhead of MVCC mechanisms, and does it remain acceptable under high contention?
  • RQ4Does the optimistic MVCC approach achieve higher throughput than the pessimistic variant due to reduced blocking?
  • RQ5Can optimistic and pessimistic transactions coexist in the same database without conflict?

Key findings

  • The optimistic MVCC scheme achieved over 10x higher throughput than single-version locking on a low-contention TATP-like workload.
  • Single-version locking performance degrades rapidly under high contention or with long-running read-only transactions, becoming a bottleneck.
  • The pessimistic MVCC scheme showed better performance than single-version locking under high contention but was outperformed by the optimistic variant.
  • MVCC mechanisms maintained high throughput even with hotspots and long-running transactions, demonstrating superior resilience.
  • The optimistic approach consistently achieved higher throughput than the pessimistic MVCC method due to reduced serialization overhead.
  • The critical section for timestamp acquisition was minimal (one atomic instruction), enabling high parallelism and low contention.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.