Title :
Lock-Free Cuckoo Hashing
Author :
Nhan Nguyen ; Tsigas, Philippas
Author_Institution :
Chalmers Univ. of Technol., Gothenburg, Sweden
fDate :
June 30 2014-July 3 2014
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 :
data structures; file organisation; query processing; access pattern scenarios; compare-and-swap primitives; data structure operations; fine tuned synchronization; hopscotch hashmap; key displacements; lock-based hashing algorithms; lock-free cuckoo hashing algorithm; logical clock technique; mutating operations; two-round query protocol; Algorithm design and analysis; Clocks; Concurrent computing; Indexes; Radiation detectors; Semantics; Synchronization; CAS; concurrent data structures; cuckoo hashing; hash table; lock-free;
Conference_Titel :
Distributed Computing Systems (ICDCS), 2014 IEEE 34th International Conference on
Conference_Location :
Madrid
Print_ISBN :
978-1-4799-5168-0
DOI :
10.1109/ICDCS.2014.70