Intelligent Transaction Scheduling via Conflict Prediction in OLTP DBMS

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Zhang, Tieying, Tomasic, Anthony, Pavlo, Andrew
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909303271587840
author Zhang, Tieying
Tomasic, Anthony
Pavlo, Andrew
author_facet Zhang, Tieying
Tomasic, Anthony
Pavlo, Andrew
contents Current architectures for main-memory online transaction processing (OLTP) database management systems (DBMS) typically use random scheduling to assign transactions to threads. This approach achieves uniform load across threads but it ignores the likelihood of conflicts between transactions. If the DBMS could estimate the potential for transaction conflict and then intelligently schedule transactions to avoid conflicts, then the system could improve its performance. Such estimation of transaction conflict, however, is non-trivial for several reasons. First, conflicts occur under complex conditions that are far removed in time from the scheduling decision. Second, transactions must be represented in a compact and efficient manner to allow for fast conflict detection. Third, given some evidence of potential conflict, the DBMS must schedule transactions in such a way that minimizes this conflict. In this paper, we systematically explore the design decisions for solving these problems. We then empirically measure the performance impact of different representations on standard OLTP benchmarks. Our results show that intelligent scheduling using a history increases throughput by $\sim$40\% on 20-core machine.
format Preprint
id arxiv_https___arxiv_org_abs_2409_01675
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Intelligent Transaction Scheduling via Conflict Prediction in OLTP DBMS
Zhang, Tieying
Tomasic, Anthony
Pavlo, Andrew
Databases
H.2.6
Current architectures for main-memory online transaction processing (OLTP) database management systems (DBMS) typically use random scheduling to assign transactions to threads. This approach achieves uniform load across threads but it ignores the likelihood of conflicts between transactions. If the DBMS could estimate the potential for transaction conflict and then intelligently schedule transactions to avoid conflicts, then the system could improve its performance. Such estimation of transaction conflict, however, is non-trivial for several reasons. First, conflicts occur under complex conditions that are far removed in time from the scheduling decision. Second, transactions must be represented in a compact and efficient manner to allow for fast conflict detection. Third, given some evidence of potential conflict, the DBMS must schedule transactions in such a way that minimizes this conflict. In this paper, we systematically explore the design decisions for solving these problems. We then empirically measure the performance impact of different representations on standard OLTP benchmarks. Our results show that intelligent scheduling using a history increases throughput by $\sim$40\% on 20-core machine.
title Intelligent Transaction Scheduling via Conflict Prediction in OLTP DBMS
topic Databases
H.2.6
url https://arxiv.org/abs/2409.01675