[Paper Review] Improving High Contention OLTP Performance via Transaction Scheduling
Strife improves high-contention OLTP performance by batching transactions and partitioning them into conflict-free clusters and residuals; clusters execute in parallel without concurrency control, while residuals are processed serially or with concurrency control, achieving up to 2× throughput improvement over 2PL and optimistic concurrency control protocols.
Research in transaction processing has made significant progress in improving the performance of multi-core in-memory transactional systems. However, the focus has mainly been on low-contention workloads. Modern transactional systems perform poorly on workloads with transactions accessing a few highly contended data items. We observe that most transactional workloads, including those with high contention, can be divided into clusters of data conflict-free transactions and a small set of residuals. In this paper, we introduce a new concurrency control protocol called Strife that leverages the above observation. Strife executes transactions in batches, where each batch is partitioned into clusters of conflict-free transactions and a small set of residual transactions. The conflict-free clusters are executed in parallel without any concurrency control, followed by executing the residual cluster either serially or with concurrency control. We present a low-overhead algorithm that partitions a batch of transactions into clusters that do not have cross-cluster conflicts and a small residual cluster. We evaluate Strife against the optimistic concurrency control protocol and several variants of two-phase locking, where the latter is known to perform better than other concurrency protocols under high contention, and show that Strife can improve transactional throughput by up to 2x. We also perform an in-depth micro-benchmark analysis to empirically characterize the performance and quality of our clustering algorithm
Motivation & Objective
- To address the performance degradation of traditional OLTP systems under high data contention, especially due to lock contention and transaction aborts.
- To reduce concurrency control overhead in multi-core in-memory OLTP systems by exploiting inherent transaction access patterns.
- To dynamically partition transaction batches into conflict-free clusters and residuals to minimize reliance on locking or validation.
- To achieve high throughput without sacrificing serializability by executing clusters in parallel and residuals with controlled concurrency.
- To outperform standard 2PL and OCC protocols in write-intensive, highly contended workloads like TPC-C and YCSB.
Proposed method
- Strife processes transactions in micro-batches, analyzing each batch independently to identify conflict-free clusters and residuals.
- A low-overhead partitioning algorithm groups transactions into clusters that have no cross-cluster data conflicts, ensuring serializability when executed in parallel.
- Conflict-free clusters are executed in parallel across multiple cores without any concurrency control, guaranteeing commit if not explicitly aborted.
- Residual transactions—those conflicting with multiple clusters—are executed serially or with concurrency control to maintain correctness.
- The system re-partitions transactions per batch, enabling adaptation to changing access patterns without static data partitioning.
- The approach avoids centralized lock management and reduces aborts by minimizing the use of locking and validation.
Experimental results
Research questions
- RQ1Can transaction workloads with high data contention be effectively partitioned into conflict-free clusters to reduce concurrency control overhead?
- RQ2How can a dynamic, per-batch partitioning strategy improve OLTP throughput compared to static or global partitioning?
- RQ3To what extent can eliminating concurrency control for conflict-free clusters improve performance in high-contention scenarios?
- RQ4How does Strife compare to 2PL and OCC in terms of throughput and abort rates under write-intensive workloads?
- RQ5Can a hybrid execution model—parallel clusters and controlled residuals—achieve both high performance and serializability?
Key findings
- Strife achieves up to 2× higher throughput than standard two-phase locking (2PL) protocols on TPC-C and YCSB workloads under high contention.
- The performance gain is attributed to eliminating concurrency control overhead for conflict-free transaction clusters, which constitute the majority of transactions in high-contention workloads.
- Strife outperforms optimistic concurrency control (OCC) and other 2PL variants, especially in workloads with high write contention and frequent aborts.
- The low-overhead partitioning algorithm efficiently identifies clusters with no cross-cluster conflicts, enabling scalable parallel execution.
- Residuals are kept minimal through effective clustering, reducing the need for expensive concurrency control or serialization.
- Strife’s per-batch re-partitioning enables adaptation to dynamic access patterns, unlike static partitioned databases or fixed concurrency control protocols.
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.