Zombie Hashing: Reanimating Tombstones in Graveyard
Yuvaraj Chesetti, Benwei Shi, Jeff M. Phillips, Prashant Pandey
Abstract
Linear probing-based hash tables offer high data locality and are considered among the fastest in real-world applications. However, they come with an inherent tradeoff between space efficiency and speed, i.e. when the hash table approaches full capacity, its performance tends to decline considerably due to an effect known as primary clustering. As a result they are only used at low load factors.
Tombstones (markers for deleted elements) can help mitigate the effect of primary clustering in linear probing hash tables. However, tombstones require periodic redistribution, which, in turn, requires a complete halt of regular operations. This makes linear probing not suitable in practical applications where periodic halts are unacceptable.
In this paper, we present a solution to forestall primary clustering in linear probing hash tables, ensuring high data locality and consistent performance even at high load factors. Our approach redistributes tombstones within small windows, deamortizing the cost of mitigating primary clustering and eliminating the need for periodic halts. We provide theoretical guarantees that our deamortization method is asymptotically optimal in efficiency and cost. We also design an efficient implementation within dominant linear-probing hash tables and show performance improvements.
We introduce Zombie hashing in two variants: ordered (compact) and unordered (vectorized) linear probing hash tables. Both variants achieve consistent, high throughput and lowest variance in operation latency compared to other state-of-the-art hash tables across numerous churn cycles, while maintaining 95% space efficiency without downtime. Our results show that Zombie hashing overcomes the limitations of linear probing while preserving high data locality.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 16f43649-2422-46e5-bdf3-c85b796e7b18Cited by top-tier papers1
Ask how each one uses itBuilds on8
- Teseo and the Analysis of Structural Dynamic GraphsDean De Leo, Peter BonczVLDB 2021 · 65 citations
- Grizzly: Efficient Stream Processing Through Adaptive Query CompilationPhilipp M. Grulich, Sebastian Breß, Steffen Zeuch, Jonas Traub et al.SIGMOD 2020 · 41 citations
- Sparta: high-performance, element-wise sparse tensor contraction on heterogeneous memoryJiawen Liu, Jie Ren, Roberto Gioiosa, Dong Li et al.PPoPP 2021 · 31 citations
- IcebergHT: High Performance Hash Tables Through Stability and Low AssociativityPrashant Pandey, Michael A. Bender, Alex Conway, Martin Farach-Colton et al.SIGMOD 2023 · 17 citations
- Timely Reporting of Heavy Hitters using External MemoryPrashant Pandey, Shikha Singh, Michael A. Bender, Jonathan W. Berry et al.SIGMOD 2020 · 15 citations
Related papers
- Linear Probing Revisited: Tombstones Mark the Demise of Primary ClusteringMichael A. Bender, Bradley C. Kuszmaul, William KuszmaulFOCS 2021 · 11 citations
- Locally Uniform HashingIoana O. Bercea, Lorenzo Beretta, Jonas Klausen, Jakob Bæk Tejs Houen et al.FOCS 2023 · 4 citations
- Tight Analyses of Ordered and Unordered Linear ProbingMark Braverman, William KuszmaulFOCS 2024 · 1 citation
- Distributed Page Table: Harnessing Physical Memory as an Unbounded Hashed Page TableOsang Kwon, Yongho Lee, Junhyeok Park, Sungbin Jang et al.MICRO 2024 · 7 citations
- Can Learned Models Replace Hash Functions?Ibrahim Sabek, Kapil Vaidya, Dominik Horn, Andreas Kipf et al.VLDB 2023 · 29 citations
