Lock-Free Cuckoo Hashing
Authors:
- Nhan NguyenNNNhan Nguyen
- Philippas TsigasPTPhilippas Tsigas
- 1 June 2014
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10636927,p. 627-636
Abstract
This paper presents a lock-free cuckoo hashing algorithm, to the best of our knowledge this is the first lock-free cuckoo hashing in the literature. The algorithm allows mutating operations to operate concurrently with query ones and requires only single word compare-and-swap primitives. Query of items can operate concurrently with others mutating operations, thanks to the two-round query protocol enhanced with a logical clock technique. When an insertion triggers a sequence of key displacements, instead of locking the whole cuckoo path, our algorithm breaks down the chain of relocations into several single relocations which can be executed independently and concurrently with other operations. A fine tuned synchronization and a helping mechanism for relocation are designed. The mechanisms allow high concurrency and provide progress guarantees for the data structure's operations. Our experimental results show that our lock-free cuckoo hashing performs consistently better than two efficient lock-based hashing algorithms, the chained and the hopscotch hash-map, in different access pattern scenarios.Keywords
This publication has 11 references indexed in Scilit:
- Lock-Free Cuckoo Hashing2014
- Boundless memory allocations for memory safety and high availability2011
- More Robust Hashing: Cuckoo Hashing with a StashSIAM Journal on Computing, 2010
- Hopscotch Hashing2008
- Efficient Hash Probes on Modern Processors2007
- Split-ordered listsJournal of the ACM, 2006
- Architecture-conscious hashing2006
- Cuckoo hashingJournal of Algorithms, 2004
- High performance dynamic lock-free hash tables and list-based sets2002
- Time, clocks, and the ordering of events in a distributed systemCommunications of the ACM, 1978