Hive 哈希表:一种面向 GPU 的 Warp 协作、动态可调整大小的哈希表
Hive Hash Table: A Warp-Cooperative, Dynamically Resizable Hash Table for GPUs
AI总结:
Hive 哈希表是一种 warp 协作、动态可调整大小的 GPU 哈希表,通过紧凑桶布局、无锁并发协议和线性哈希调整策略,在 RTX 4090 上实现高达 95% 负载因子和 1.5-2 倍吞吐量提升。
摘要:
哈希表是数据密集型应用中的关键构建模块,然而现有的 GPU 实现常常在处理并发更新、高负载因子和内存访问模式不规则时遇到困难。我们提出了 Hive 哈希表,这是一种高性能、warp 协作且可动态调整大小的 GPU 哈希表,无需全局重哈希即可适应不同的工作负载。Hive 哈希表做出了三项关键贡献。首先,一种缓存对齐的紧凑桶布局将键值对存储为 64 位字,支持合并内存访问和通过单次 CAS 操作进行原子更新。其次,warp 同步并发协议——Warp-Aggregated-Bitmask-Claim (WABC) 和 Warp-Cooperative Match-and-Elect (WCME)——将竞争减少到每个 warp 仅一次原子操作,同时确保无锁进展。第三,一种负载因子感知的动态调整大小策略,使用线性哈希以 warp 并行的 K 桶批次扩展或收缩容量,维持均衡的占用率。为了处理高竞争下的插入,Hive 哈希表采用四步策略:替换、声明并提交、有界布谷鸟驱逐以及溢出暂存区回退。该设计提供了无锁快速路径和由固定驱逐深度决定的竞争下的有界恢复成本,同时消除了并发更新中的 ABA 风险。在 NVIDIA RTX 4090 上的实验评估显示,Hive 哈希表在混合插入-删除-查找工作负载下,可维持高达 95% 的负载因子,同时吞吐量比最先进的 GPU 哈希表(Slab-Hash、DyCuckoo、WarpCore)高出 1.5-2 倍。在均衡工作负载下,Hive 哈希表达到每秒 35 亿次更新和近 40 亿次查找,展示了其在 GPU 加速数据处理中的可扩展性和效率。
英文摘要:
Hash tables are essential building blocks in data-intensive applications, yet existing GPU implementations often struggle with concurrent updates, high load factors, and irregular memory access patterns. We present Hive hash table, a high-performance, warp-cooperative and dynamically resizable GPU hash table that adapts to varying workloads without global rehashing. Hive hash table makes three key contributions. First, a cache-aligned packed bucket layout stores key-value pairs as 64-bit words, enabling coalesced memory access and atomic updates via single-CAS operations. Second, warp-synchronous concurrency protocols - Warp-Aggregated-Bitmask-Claim (WABC) and Warp-Cooperative Match-and-Elect (WCME) - reduce contention to one atomic operation per warp while ensuring lock-free progress. Third, a load-factor-aware dynamic resizing strategy expands or contracts capacity in warp-parallel K-bucket batches using linear hashing, maintaining balanced occupancy. To handle insertions under heavy contention, Hive hash table employs a four-step strategy: replace, claim-and-commit, bounded cuckoo eviction, and overflow-stash fallback. This design provides lock-free fast paths and bounded recovery cost under contention determined by a fixed eviction depth, while eliminating ABA hazards during concurrent updates. Experimental evaluation on an NVIDIA RTX 4090 shows Hive hash table sustains load factors up to 95% while delivering 1.5-2x higher throughput than state-of-the-art GPU hash tables (Slab-Hash, DyCuckoo, WarpCore) under mixed insert-delete-lookup workloads. On balanced workload, Hive hash table reaches 3.5 billion updates/s and nearly 4 billion lookups/s, demonstrating scalability and efficiency for GPU-accelerated data processing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。