Abstract
Concurrency control ensures the correctness of databases when transactions are processed in parallel. Bamboo is a state-of-the-art concurrency control protocol. One problem of Bamboo is that it requires transactions to fetch timestamps from a single centralized atomic counter. To replace the concentrated access to it, each transaction should generate timestamps independently. This paper proposes two methods of decentralization to address the problem. The first is the thread-ID method (TID): transactions use thread IDs as their timestamps. In high-contention settings, the performance of TID plummets, but proposed optimization FairTID sustains the performance. The second method (RandID) allocates timestamps using random-number generators. Experiments indicated that there were up to 60% and 34% improvement in throughput from Bamboo with FairTID and RandID, respectively. In high-contention settings, TID recorded 24% degradation, but FairTID and RandID showed 19% to 31% and 12% to 22% improvement from Bamboo, respectively.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Guo, Z., Wu, K., Yan, C., Yu, X.: Releasing locks as early as you can: Reducing contention of hotspots by violating two-phase locking. In: SIGMOD Conference, pp. 658–670 (2021)
Lim, H., Kaminsky, M., Andersen, D.G.: Cicada: dependably fast multi-core in-memory transactions. In: SIGMOD Conference, pp. 21–35 (2017)
Nakamori, T.: Tatzhiro/ccbench: concurrency control benchmark (2022). https://github.com/Tatzhiro/ccbench
Nakamori, T., Nemoto, J., Hoshino, T., Kawashima, H.: Decentralization of two phase locking based protocols. In: HPDC (poster) (2022)
Tanabe, T., Hoshino, T., Kawashima, H., Tatebe, O.: An analysis of concurrency control protocols for in-memory databases with CCBench. Proc. VLDB Endow. 13(13), 3531–3544 (2020)
Tanaka, M., Tatebe, O., Kawashima, H.: Applying Pwrake workflow system and Gfarm file system to telescope data processing. In: CLUSTER, pp. 124–133 (2018)
Tu, S., Zheng, W., Kohler, E., Liskov, B., Madden, S.: Speedy transactions in multicore in-memory databases. In: SOSP, pp. 18–32. ACM (2013)
Weikum, G., Vossen, G.: Transactional Information Systems: Theory, Algorithms, and the Practice of Concurrency Control and Recovery. Morgan Kaufmann Publishers Inc., San Francisco (2001)
Acknowledgement
This work is partially supported by JSPS KAKENHI Grant Number 22H03596 and a project, JPNP16007, commissioned by the New Energy and Industrial Technology Development Organization (NEDO).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Nakamori, T., Nemoto, J., Hoshino, T., Kawashima, H. (2022). Removing Performance Bottleneck of Timestamp Allocation in Two-Phase Locking Based Protocol. In: Hua, W., Wang, H., Li, L. (eds) Databases Theory and Applications. ADC 2022. Lecture Notes in Computer Science, vol 13459. Springer, Cham. https://doi.org/10.1007/978-3-031-15512-3_18
Download citation
DOI: https://doi.org/10.1007/978-3-031-15512-3_18
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-15511-6
Online ISBN: 978-3-031-15512-3
eBook Packages: Computer ScienceComputer Science (R0)