[Paper Review] Scheduling OLTP Transactions via Machine Learning
This paper proposes machine learning-driven transaction scheduling in main-memory OLTP databases to reduce abort rates and increase throughput by predicting conflict probabilities between transactions. Using supervised and unsupervised learning to group conflicting transactions into dedicated queues and balance workload, the approach achieves up to 54% higher throughput and 80% lower abort rate than random scheduling on a 20-core system.
Current main memory database system architectures are still challenged by high contention workloads and this challenge will continue to grow as the number of cores in processors continues to increase. These systems schedule transactions randomly across cores to maximize concurrency and to produce a uniform load across cores. Scheduling never considers potential conflicts. Performance could be improved if scheduling balanced between concurrency to maximize throughput and scheduling transactions linearly to avoid conflicts. In this paper, we present the design of several intelligent transaction scheduling algorithms that consider both potential transaction conflicts and concurrency. To incorporate reasoning about transaction conflicts, we develop a supervised machine learning model that estimates the probability of conflict. This model is incorporated into several scheduling algorithms. In addition, we integrate an unsupervised machine learning algorithm into an intelligent scheduling algorithm. We then empirically measure the performance impact of different scheduling algorithms on OLTP and social networking workloads. Our results show that, with appropriate settings, intelligent scheduling can increase throughput by 54% and reduce abort rate by 80% on a 20-core machine, relative to random scheduling. In summary, the paper provides preliminary evidence that intelligent scheduling significantly improves DBMS performance.
Motivation & Objective
- To address high abort rates in main-memory OLTP systems caused by contention under increasing core counts.
- To improve database throughput by intelligently balancing concurrency and conflict avoidance, moving beyond random scheduling.
- To design a lightweight, DBMS-agnostic scheduling framework that integrates machine learning with minimal engineering overhead.
- To generalize effective scheduling beyond partitionable workloads to non-partitionable, complex OLTP workloads.
- To empirically validate that conflict-aware scheduling via ML significantly outperforms random scheduling in real-world workloads.
Proposed method
- Train a supervised machine learning model to predict the probability of conflict between transaction pairs using static and dynamic features such as data access patterns and object granularity.
- Use the conflict prediction model to group high-probability conflicting transactions into the same first-in-first-out (FIFO) queue to reduce aborts.
- Implement a vector-based scheduling algorithm that maintains a centroid (average feature vector) of each queue’s historical transactions to enable efficient conflict prediction during scheduling.
- Introduce workload balancing by monitoring transaction response times and blocking overloaded queues to prevent performance degradation.
- Apply an unsupervised clustering algorithm to identify transaction groups with similar conflict patterns, enhancing scheduling decisions without labeled conflict data.
- Integrate the scheduler via a thin API, ensuring low runtime cost—linear in transaction length—so it remains practical for high-throughput systems.
Experimental results
Research questions
- RQ1Can machine learning accurately predict transaction conflicts in main-memory OLTP systems to guide scheduling decisions?
- RQ2Does conflict-aware scheduling that groups conflicting transactions reduce abort rates while maintaining high throughput?
- RQ3Can intelligent scheduling achieve better performance than random scheduling on both partitionable and non-partitionable workloads?
- RQ4What is the performance overhead of conflict prediction and dynamic load balancing in a real-time scheduling context?
- RQ5How effective is the integration of supervised and unsupervised learning in improving scheduler decisions with minimal system modifications?
Key findings
- The proposed intelligent scheduling approach increased throughput by up to 54% compared to random scheduling on a 20-core machine.
- The abort rate was reduced by 80% relative to random scheduling under high-contention workloads.
- The Balanced Vector Assign scheduler effectively balanced workload across cores while minimizing conflicts, avoiding performance degradation from queue imbalance.
- The best-performing scheduler required only about 500 lines of additional code, demonstrating low engineering overhead.
- The method generalized well to non-partitionable workloads, where traditional partitioning strategies fail, showing robustness across diverse transaction patterns.
- Model inference cost was kept low—linear in transaction length—making it viable for real-time use in high-performance OLTP systems.
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.