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

一张表就能数清:单板的计算机上的并行频率估计

One Table to Count Them All: Parallel Frequency Estimation on Single-Board Computers

Fatih Taşyaran, Kerem Yıldırır, Kamer Kaya, Mustafa Kemal Taş

摘要:

草图是概率数据结构,其可以在数学上证明的误差范围内提供近似结果,同时使用比传统方法少的数量级的存储器。它们专为架构上的流数据分析量身定制,即使内存有限,例如广泛用于物联网和边缘计算的单板的【形】计算机。由于这些设备提供多个核心,具有高效的并行草图绘制方案,因此能够管理大量数据流。然而,由于它们的缓存相对较小,因此需要仔细的并行化。在这项工作中,我们专注于频率估计问题,并评估高端服务器,4核Raspberry Pi和8核Odroid的性能。作为草图,我们采用了广泛使用的计数-最小草图。为了以并行和缓存友好的方式散列流,我们应用了一种新颖的制表方法,并将辅助表重新排列为一个。为了在性能上并行化这个过程,我们修改了工作流,并在哈希计算和草图更新之间应用了一种缓冲形式。今天,许多单板的【形】计算机具有异构处理器,其中慢速和快速内核一起配备。为了充分利用这些内核,我们提出了一种动态负载平衡机制,显著提高了频率估计的性能。

英文摘要:

Sketches are probabilistic data structures that can provide approximate results within mathematically proven error bounds while using orders of magnitude less memory than traditional approaches. They are tailored for streaming data analysis on architectures even with limited memory such as single-board computers that are widely exploited for IoT and edge computing. Since these devices offer multiple cores, with efficient parallel sketching schemes, they are able to manage high volumes of data streams. However, since their caches are relatively small, a careful parallelization is required. In this work, we focus on the frequency estimation problem and evaluate the performance of a high-end server, a 4-core Raspberry Pi and an 8-core Odroid. As a sketch, we employed the widely used Count-Min Sketch. To hash the stream in parallel and in a cache-friendly way, we applied a novel tabulation approach and rearranged the auxiliary tables into a single one. To parallelize the process with performance, we modified the workflow and applied a form of buffering between hash computations and sketch updates. Today, many single-board computers have heterogeneous processors in which slow and fast cores are equipped together. To utilize all these cores to their full potential, we proposed a dynamic load-balancing mechanism which significantly increased the performance of frequency estimation.

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

↑