arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.10673cs.DS
收藏

SSD上缓冲计数-最小值算法的理论与实验

Buffered Count-Min Sketch on SSD: Theory and Experiments

Mayank Goswami, Dzejla Medjedovic, Emina Mekic, Prashant Pandey

摘要:

频率估计数据结构,如计数-分钟草图(CMS),已发现在数据库,网络,计算生物学和其他领域的许多应用。许多使用count-min sketch的应用程序处理大量快速发展的数据集。对于旨在保持高估误差较低的数据密集型应用,计数-最小值草图可能变得太大而不能存储在可用RAM中,并且可能必须迁移到外部存储(例如,SSD。)由于count-min sketch的散列操作的随机读/写性质,简单地将其放置在SSD上会抑制时间关键型应用程序的性能,每次估计(查找)和更新(插入)操作需要对SSD进行大约4-6次随机读/写。在本文中,我们扩展了缓冲计数最小值草图(BCMS)[15]的初步想法,这是计数最小值草图的SSD变体,它使用哈希定位来有效地扩展RAM,同时保持总误差有界。我们描述了缓冲计数min草图的设计和实现,并根据经验表明,我们的实现了3.7x-4.7x的更新(插入)和4.3x的加速估计(查找)操作。我们的设计还提供了一个渐进的改进,在外部存储器模型[1]的原始数据结构:r随机I/O减少到1个I/O的估计操作。对于在SSD上使用k个块的数据结构,是字/计数器大小,r是行数,M是主存储器中的位数,我们的数据结构使用kwr/M摊销I/O进行更新,或者,如果kwr/M >1,则在最坏情况下使用1个I/O。在典型场景中,kwr/M远小于1。这与原始数据结构中每次更新所引起的O(r)I/O形成对比。

英文摘要:

Frequency estimation data structures such as the count-min sketch (CMS) have found numerous applications in databases, networking, computational biology and other domains. Many applications that use the count-min sketch process massive and rapidly evolving datasets. For data-intensive applications that aim to keep the overestimate error low, the count-min sketch may become too large to store in available RAM and may have to migrate to external storage (e.g., SSD.) Due to the random-read/write nature of hash operations of the count-min sketch, simply placing it on SSD stifles the performance of time-critical applications, requiring about 4-6 random reads/writes to SSD per estimate (lookup) and update (insert) operation. In this paper, we expand on the preliminary idea of the Buffered Count-Min Sketch (BCMS) [15], an SSD variant of the count-min sketch, that used hash localization to scale efficiently out of RAM while keeping the total error bounded. We describe the design and implementation of the buffered count-min sketch, and empirically show that our implementation achieves 3.7x-4.7x the speedup on update (insert) and 4.3x speedup on estimate (lookup) operations. Our design also offers an asymptotic improvement in the external-memory model [1] over the original data structure: r random I/Os are reduced to 1 I/O for the estimate operation. For a data structure that uses k blocks on SSD, was the word/counter size, r as the number of rows, M as the number of bits in the main memory, our data structure uses kwr/M amortized I/Os for updates, or, if kwr/M >1, 1 I/O in the worst case. In typical scenarios, kwr/M is much smaller than 1. This is in contrast to O(r) I/Os incurred for each update in the original data structure.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑