{"title":"通过 OLTP DBMS 中的冲突预测实现智能事务调度","authors":"Tieying Zhang, Anthony Tomasic, Andrew Pavlo","doi":"arxiv-2409.01675","DOIUrl":null,"url":null,"abstract":"Current architectures for main-memory online transaction processing (OLTP)\ndatabase management systems (DBMS) typically use random scheduling to assign\ntransactions to threads. This approach achieves uniform load across threads but\nit ignores the likelihood of conflicts between transactions. If the DBMS could\nestimate the potential for transaction conflict and then intelligently schedule\ntransactions to avoid conflicts, then the system could improve its performance.\nSuch estimation of transaction conflict, however, is non-trivial for several\nreasons. First, conflicts occur under complex conditions that are far removed\nin time from the scheduling decision. Second, transactions must be represented\nin a compact and efficient manner to allow for fast conflict detection. Third,\ngiven some evidence of potential conflict, the DBMS must schedule transactions\nin such a way that minimizes this conflict. In this paper, we systematically\nexplore the design decisions for solving these problems. We then empirically\nmeasure the performance impact of different representations on standard OLTP\nbenchmarks. Our results show that intelligent scheduling using a history\nincreases throughput by $\\sim$40\\% on 20-core machine.","PeriodicalId":501123,"journal":{"name":"arXiv - CS - Databases","volume":"30 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Intelligent Transaction Scheduling via Conflict Prediction in OLTP DBMS\",\"authors\":\"Tieying Zhang, Anthony Tomasic, Andrew Pavlo\",\"doi\":\"arxiv-2409.01675\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Current architectures for main-memory online transaction processing (OLTP)\\ndatabase management systems (DBMS) typically use random scheduling to assign\\ntransactions to threads. This approach achieves uniform load across threads but\\nit ignores the likelihood of conflicts between transactions. If the DBMS could\\nestimate the potential for transaction conflict and then intelligently schedule\\ntransactions to avoid conflicts, then the system could improve its performance.\\nSuch estimation of transaction conflict, however, is non-trivial for several\\nreasons. First, conflicts occur under complex conditions that are far removed\\nin time from the scheduling decision. Second, transactions must be represented\\nin a compact and efficient manner to allow for fast conflict detection. Third,\\ngiven some evidence of potential conflict, the DBMS must schedule transactions\\nin such a way that minimizes this conflict. In this paper, we systematically\\nexplore the design decisions for solving these problems. We then empirically\\nmeasure the performance impact of different representations on standard OLTP\\nbenchmarks. Our results show that intelligent scheduling using a history\\nincreases throughput by $\\\\sim$40\\\\% on 20-core machine.\",\"PeriodicalId\":501123,\"journal\":{\"name\":\"arXiv - CS - Databases\",\"volume\":\"30 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-09-03\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Databases\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2409.01675\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Databases","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.01675","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Intelligent Transaction Scheduling via Conflict Prediction in OLTP DBMS
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.