重新思考可串行化多版本并发控制
Rethinking serializable multiversion concurrency control
摘要:
多版本数据库系统有可能显著增加事务处理中的并发量,因为它们可以避免读写冲突。不幸的是,并发性的增加通常是以事务可串行化性为代价的。如果数据库用户请求完全可串行化,则现代多版本系统显著地约束冲突事务之间的读写并发,并且在其设计中采用昂贵的同步模式。在主存多核环境中,这些额外的约束是如此繁重,以至于多版本系统的性能往往明显优于单版本系统。我们提出了Bohm,一个新的并发控制协议的主存多版本数据库系统。Bohm保证了可串行化的执行,同时确保读永远不会阻塞写。此外,Bohm不需要读来执行任何簿记,从而避免了通过竞争写入共享内存来跟踪读的开销。这导致在多核设置中具有出色的可扩展性和性能。Bohm具有上述所有特性,但不执行基于验证的并发控制。相反,它是悲观的,因此在存在争用的情况下不倾向于过度中止。实验评估表明,Bohm在高争用和低争用设置下都表现良好,并且尽管保持了完整的可串行化保证,但仍能够显着优于最先进的多版本系统。
英文摘要:
Multi-versioned database systems have the potential to significantly increase the amount of concurrency in transaction processing because they can avoid read-write conflicts. Unfortunately, the increase in concurrency usually comes at the cost of transaction serializability. If a database user requests full serializability, modern multi-versioned systems significantly constrain read-write concurrency among conflicting transactions and employ expensive synchronization patterns in their design. In main-memory multi-core settings, these additional constraints are so burdensome that multi-versioned systems are often significantly outperformed by single-version systems. We propose Bohm, a new concurrency control protocol for main-memory multi-versioned database systems. Bohm guarantees serializable execution while ensuring that reads never block writes. In addition, Bohm does not require reads to perform any book-keeping whatsoever, thereby avoiding the overhead of tracking reads via contended writes to shared memory. This leads to excellent scalability and performance in multi-core settings. Bohm has all the above characteristics without performing validation based concurrency control. Instead, it is pessimistic, and is therefore not prone to excessive aborts in the presence of contention. An experimental evaluation shows that Bohm performs well in both high contention and low contention settings, and is able to dramatically outperform state-of-the-art multi-versioned systems despite maintaining the full set of serializability guarantees.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。