TY - GEN
T1 - Scalable and robust latches for database systems
AU - Böttcher, Jan
AU - Leis, Viktor
AU - Giceva, Jana
AU - Neumann, Thomas
AU - Kemper, Alfons
N1 - Publisher Copyright:
© 2020 ACM.
PY - 2020/6/15
Y1 - 2020/6/15
N2 - Multi-core scalability is one of the most important features for database systems running on today's hardware. Not surprisingly, the implementation of locks is paramount to achieving efficient and scalable synchronization. In this work, we identify the key database-specific requirements for lock implementations and evaluate them using both micro-benchmarks and full-fledged database workloads. The results indicate that optimistic locking has superior performance in most workloads due to its minimal overhead and latency. By complementing optimistic locking with a pessimistic shared mode lock we demonstrate that we can also process HTAP workloads efficiently. Finally, we show how lock contention can be handled gracefully without slowing down the uncontented fast path or increasing space requirements by using a lightweight parking lot infrastructure.
AB - Multi-core scalability is one of the most important features for database systems running on today's hardware. Not surprisingly, the implementation of locks is paramount to achieving efficient and scalable synchronization. In this work, we identify the key database-specific requirements for lock implementations and evaluate them using both micro-benchmarks and full-fledged database workloads. The results indicate that optimistic locking has superior performance in most workloads due to its minimal overhead and latency. By complementing optimistic locking with a pessimistic shared mode lock we demonstrate that we can also process HTAP workloads efficiently. Finally, we show how lock contention can be handled gracefully without slowing down the uncontented fast path or increasing space requirements by using a lightweight parking lot infrastructure.
UR - http://www.scopus.com/inward/record.url?scp=85087609669&partnerID=8YFLogxK
U2 - 10.1145/3399666.3399908
DO - 10.1145/3399666.3399908
M3 - Conference contribution
AN - SCOPUS:85087609669
T3 - Proceedings of the 16th International Workshop on Data Management on New Hardware, DaMoN 2020
BT - Proceedings of the 16th International Workshop on Data Management on New Hardware, DaMoN 2020
PB - Association for Computing Machinery
T2 - 16th International Workshop on Data Management on New Hardware, DaMoN 2020
Y2 - 15 June 2020
ER -