An Analysis of Concurrency Control Protocols for In-Memory Databases with CCBench (Extended Version)

Takayuki Tanabe, Takashi Hoshino, Hideyuki Kawashima, Jun Nemoto, Masahiro Tanaka +1 more
9/24/2020
cs.DB
benchmark-dataset

Official code: thawk105/ccbench (50 stars, Shell, Apache-2.0, last commit 2026-11-13).

Abstract

This paper presents yet another concurrency control analysis platform, CCBench. CCBench supports seven protocols (Silo, TicToc, MOCC, Cicada, SI, SI with latch-free SSN, 2PL) and seven versatile optimization methods and enables the configuration of seven workload parameters.

Show full abstract

We analyzed the protocols and optimization methods using various workload parameters and a thread count of 224. Previous studies focused on thread scalability and did not explore the space analyzed here. We classified the optimization methods on the basis of three performance factors: CPU cache, delay on conflict, and version lifetime. Analyses using CCBench and 224 threads, produced six insights. (I1) The performance of optimistic concurrency control protocol for a read only workload rapidly degrades as cardinality increases even without L3 cache misses. (I2) Silo can outperform TicToc for some write-intensive workloads by using invisible reads optimization. (I3) The effectiveness of two approaches to coping with conflict (wait and no-wait) depends on the situation. (I4) OCC reads the same record two or more times if a concurrent transaction interruption occurs, which can improve performance. (I5) Mixing different implementations is inappropriate for deep analysis. (I6) Even a state-of-the-art garbage collection method cannot improve the performance of multi-version protocols if there is a single long transaction mixed into the workload. On the basis of I4, we defined the read phase extension optimization in which an artificial delay is added to the read phase. On the basis of I6, we defined the aggressive garbage collection optimization in which even visible versions are collected. The code for CCBench and all the data in this paper are available online at GitHub.

View on arXivView PDF

Code Implementations(1)

thawk105/ccbenchOfficial100%
Apache-2.0

Concurrency Control Benchmark

5029Shell, C++Aug 29, 20182 weeks agoApache-2.0

Similar Papers

Cite this paper

@article{tanabe2020analysis,
  title  = {An Analysis of Concurrency Control Protocols for In-Memory Databases with CCBench (Extended Version)},
  author = {Takayuki Tanabe and Takashi Hoshino and Hideyuki Kawashima and Jun Nemoto and Masahiro Tanaka and Osamu Tatebe},
  year   = {2020},
  eprint = {2009.11558},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.11558}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.11558.svg)](https://codeofpaper.com/paper/2009.11558)

Discussion