基于商滤波器的并发可扩展AMQ
Concurrent Expandable AMQs on the Basis of Quotient Filters
摘要:
商过滤器是高速缓存高效AMQ数据结构。根据过滤器的填充程度,大多数插入和查询只需要访问一个或两个连续的缓存行。这使得商过滤器比更常用的布隆过滤器更快,后者会导致多个缓存未命中。然而,并发布隆过滤器易于实现,并且可以无锁实现,而并发商过滤器则不那么简单。通常,并发商过滤器通过使用外部锁数组来工作,每个锁保护表的一个区域。否则,此阵列每次操作都会导致一次额外的缓存未命中。我们提出了一个新的锁定方案,没有内存开销。使用这种新的锁定方案,我们实现了1.8倍的加速比与常见的外部锁定方案。商过滤器优于布隆过滤器的另一个优点是,商过滤器可以在其变满时改变其大小。我们实现这种增长技术,我们的并发商过滤器,并适应它的方式,允许无限增长,同时保持有界的误报率。我们把得到的数据结构称为完全可扩展的商过滤器。它的设计类似于可扩展的布隆过滤器,但我们利用一些概念固有的商过滤器,以提高空间效率和查询速度。我们还提出了商过滤器的变体,旨在减少状态位的数量(2-状态位变体)或简化并发实现(线性探测商过滤器)。线性探测商过滤器甚至导致无锁并发过滤器实现。这是特别有趣的,因为我们表明,任何无锁实现的另一个常见的商过滤器的变体将产生显着的开销,在额外的数据字段或多个访问数据的形式。
英文摘要:
A quotient filter is a cache efficient AMQ data structure. Depending on the fill degree of the filter most insertions and queries only need to access one or two consecutive cache lines. This makes quotient filters fast compared to the more commonly used Bloom filters that incur multiple cache misses. However, concurrent Bloom filters are easy to implement and can be implemented lock-free while concurrent quotient filters are not as simple. Usually concurrent quotient filters work by using an external array of locks -- each protecting a region of the table. Accessing this array incurs one additional cache miss per operation. We propose a new locking scheme that has no memory overhead. Using this new locking scheme we achieve 1.8 times higher speedups than with the common external locking scheme. Another advantage of quotient filters over Bloom filters is that a quotient filter can change its size when it is becoming full. We implement this growing technique for our concurrent quotient filters and adapt it in a way that allows unbounded growing while keeping a bounded false positive rate. We call the resulting data structure a fully expandable quotient filter. Its design is similar to scalable Bloom filters, but we exploit some concepts inherent to quotient filters to improve the space efficiency and the query speed. We also propose quotient filter variants that are aimed to reduce the number of status bits (2-status-bit variant) or to simplify concurrent implementations (linear probing quotient filter). The linear probing quotient filter even leads to a lock-free concurrent filter implementation. This is especially interesting, since we show that any lock-free implementation of another common quotient filter variant would incur significant overheads in the form of additional data fields or multiple passes over the accessed data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。