[Paper Review] DGCC:A New Dependency Graph based Concurrency Control Protocol for Multicore Database Systems
This paper proposes DGCC, a dependency graph-based concurrency control protocol that decouples concurrency control from transaction execution in multicore in-memory OLTP systems. By pre-analyzing transaction dependencies and resolving conflicts before execution, DGCC enables high parallelism with zero runtime contention, achieving up to four times higher throughput than state-of-the-art protocols under high contention workloads.
Multicore CPUs and large memories are increasingly becoming the norm in modern computer systems. However, current database management systems (DBMSs) are generally ineffective in exploiting the parallelism of such systems. In particular, contention can lead to a dramatic fall in performance. In this paper, we propose a new concurrency control protocol called DGCC (Dependency Graph based Concurrency Control) that separates concurrency control from execution. DGCC builds dependency graphs for batched transactions before executing them. Using these graphs, contentions within the same batch of transactions are resolved before execution. As a result, the execution of the transactions does not need to deal with contention while maintaining full equivalence to that of serialized execution. This better exploits multicore hardware and achieves higher level of parallelism. To facilitate DGCC, we have also proposed a system architecture that does not have certain centralized control components yielding better scalability, as well as supports a more efficient recovery mechanism. Our extensive experimental study shows that DGCC achieves up to four times higher throughput compared to that of state-of-the-art concurrency control protocols for high contention workloads.
Motivation & Objective
- Address the poor scalability and performance bottlenecks of traditional concurrency control protocols (e.g., lock-based, timestamp-based) in modern multicore in-memory OLTP systems.
- Overcome the limitations of centralized control components and contention-induced aborts that hinder parallelism and throughput.
- Enable higher transaction throughput by decoupling dependency analysis from execution and exploiting fine-grained operation-level parallelism.
- Design a scalable system architecture without centralized control components and integrate an efficient recovery mechanism.
Proposed method
- Batch transactions and decompose them into atomic operations to enable fine-grained parallelism.
- Construct a dependency graph for each batch of transactions to model read-write and write-write conflicts between operations.
- Use the dependency graph to pre-schedule operations in a serializable order, eliminating runtime contention.
- Execute operations in parallel across multiple threads as long as they are non-conflicting, ensuring serializability.
- Decouple concurrency control logic from execution by processing dependency graphs in a separate phase before execution.
- Eliminate centralized components like global lock managers or timestamp allocators to improve scalability.
Experimental results
Research questions
- RQ1Can a concurrency control protocol that separates dependency analysis from execution achieve higher throughput in high-contention multicore in-memory OLTP workloads?
- RQ2How does pre-resolving conflicts via dependency graphs affect abort rates and parallelism compared to traditional lock-based or timestamp-based protocols?
- RQ3To what extent can the absence of centralized control components improve scalability in multicore systems?
- RQ4What is the impact of batch size and dependency graph complexity on system latency and throughput?
Key findings
- DGCC achieves up to four times higher throughput than state-of-the-art concurrency control protocols on high-contention workloads such as TPC-C and YCSB.
- The protocol reduces abort rates significantly by resolving conflicts during graph construction rather than at runtime.
- Throughput increases with batch size up to a point, after which latency begins to rise due to larger dependency graphs.
- The system scales effectively with more worker threads, requiring larger batch sizes to fully utilize computational resources.
- The removal of centralized components like global lock managers or timestamp allocators enhances system scalability.
- The prototype integrates an efficient recovery mechanism that supports high-performance crash recovery without sacrificing throughput.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.