Exploiting hardware transactional memory in main-memory databases
Viktor Leis, Alfons Kemper, Thomas Neumann · Proceedings - International Conference on Data Engineering · 2014
So far, transactional memory-although a promising technique-suffered from the absence of an efficient hardware implementation. The upcoming Haswell microarchitecture from Intel introduces hardware transactional memory (HTM) in mainstream CPUs. HTM allows for efficient concurrent, atomic operations, which is also highly desirable in the context of databases. On the other hand HTM has several limitations that, in general, prevent a one-to-one mapping of database transactions to HTM transactions. In this work we devise several building blocks that can be used to exploit HTM in main-memory databases. We show that HTM allows to achieve nearly lock-free processing of database transactions by carefully controlling the data layout and the access patterns. The HTM component is used for detecting the (infrequent) conflicts, which allows for an optimistic, and thus very low-overhead execution of concurrent transactions.
Cited by 101 works. doi:10.1109/icde.2014.6816683
Authors
References
- Computer Architecture: A Quantitative Approach
- Transaction Processing: Concepts and Techniques
- Computer architecture: a quantitative approach
- Transactional memory
- ARIES
- Software transactional memory
- Transactional information systems: theory, algorithms, and the practice of concurrency control and recovery
- The Art of Multiprocessor Programming
- Transactional Locking II
- OLTP through the looking glass, and what we found there