Skip to main content

Removing Performance Bottleneck of Timestamp Allocation in Two-Phase Locking Based Protocol

  • Conference paper
  • First Online:
Databases Theory and Applications (ADC 2022)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13459))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. 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)

    Google Scholar 

  2. Lim, H., Kaminsky, M., Andersen, D.G.: Cicada: dependably fast multi-core in-memory transactions. In: SIGMOD Conference, pp. 21–35 (2017)

    Google Scholar 

  3. Nakamori, T.: Tatzhiro/ccbench: concurrency control benchmark (2022). https://github.com/Tatzhiro/ccbench

  4. Nakamori, T., Nemoto, J., Hoshino, T., Kawashima, H.: Decentralization of two phase locking based protocols. In: HPDC (poster) (2022)

    Google Scholar 

  5. 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)

    Article  Google Scholar 

  6. Tanaka, M., Tatebe, O., Kawashima, H.: Applying Pwrake workflow system and Gfarm file system to telescope data processing. In: CLUSTER, pp. 124–133 (2018)

    Google Scholar 

  7. Tu, S., Zheng, W., Kohler, E., Liskov, B., Madden, S.: Speedy transactions in multicore in-memory databases. In: SOSP, pp. 18–32. ACM (2013)

    Google Scholar 

  8. Weikum, G., Vossen, G.: Transactional Information Systems: Theory, Algorithms, and the Practice of Concurrency Control and Recovery. Morgan Kaufmann Publishers Inc., San Francisco (2001)

    Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Hideyuki Kawashima .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics