arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1811.04967cs.DB
收藏

时间戳粒度对乐观并发控制的影响

The Impact of Timestamp Granularity in Optimistic Concurrency Control

Yihe Huang, Hao Bai, Eddie Kohler, Barbara Liskov, Liuba Shrira

摘要:

乐观并发控制(OCC)能够充分利用并行硬件的优势,为非竞争事务提供优异的性能,在高性能内存数据库和事务系统中得到广泛应用。但在高争用级别,OCC容易受到频繁中止的影响,导致工作浪费和性能下降。争用管理器、混合乐观/悲观并发控制算法和新颖的受乐观启发的并发控制算法(如TicToc)旨在解决这个问题,但是这些机制有时引入它们自己的高开销。我们表明,在现实世界的基准测试,传统的OCC可以通过简单地添加细粒度的版本时间戳(使用不同的时间戳为每个记录的不相交的组件)优于这些替代机制。通过细粒度的时间戳,OCC在128个核心的TPC-C中获得了1.14倍的TicToc吞吐量(以前的工作报告TicToc在80个超线程时的吞吐量比OCC高1.8倍)。我们的研究表明,时间戳粒度有更大的影响比以前认为的事务处理系统的性能,不应该被忽视,在推动更快的并发控制计划。

英文摘要:

Optimistic concurrency control (OCC) can exploit the strengths of parallel hardware to provide excellent performance for uncontended transactions, and is popular in high-performance in-memory databases and transactional systems. But at high contention levels, OCC is susceptible to frequent aborts, leading to wasted work and degraded performance. Contention managers, mixed optimistic/pessimistic concurrency control algorithms, and novel optimistic-inspired concurrency control algorithms, such as TicToc, aim to address this problem, but these mechanisms introduce sometimes-high overheads of their own. We show that in real-world benchmarks, traditional OCC can outperform these alternative mechanisms by simply adding fine-grained version timestamps (using different timestamps for disjoint components of each record). With fine-grained timestamps, OCC gets 1.14x TicToc's throughput in TPC-C at 128 cores (previous work reported TicToc having 1.8x higher throughput than OCC at 80 hyperthreads). Our study shows that timestamp granularity has a greater impact than previously thought on the performance of transaction processing systems, and should not be overlooked in the push for faster concurrency control schemes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑