arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.01726cs.DScs.NI
收藏

SQUID:通过采样分位数估计实现更快的分析

SQUID: Faster Analytics via Sampled Quantile Estimation

Ran Ben-Basat, Gil Einziger, Wenchen Han, Bilal Tayh

AI总结:

针对流算法中$q$-MAX任务受分位数计算限制的问题,提出SQUID采样分位数估计方法,可用于构建更快更准的加权频繁项结构,还能适配交换机硬件实现高效缓存策略,性能优于现有方案。

摘要:

流算法是大型在线数据集分析的基础。许多此类分析任务的一个关键组成部分是$q$-MAX,即找出数字流中最大的$q$个值。现代方法通过批量移除小项并始终保留最大的$q$个项来实现恒定运行时间,但这些方法受限于昂贵的分位数计算,存在性能瓶颈。\n 本研究提出了一种名为SQUID(采样分位数估计)的分位数采样方法,并展示了其在多种分析任务中的优势。利用该方法,我们设计了一种新型加权频繁项数据结构,它比现有替代方案更快、更准确。我们还通过一个基于硬件的缓存原型验证了SQUID在改进网络辅助缓存系统方面的实用性,该原型使用SQUID实现缓存策略。此处的挑战在于,交换机的数据平面不支持实现许多缓存策略所需的通用计算,而其CPU的速度要慢几个数量级。我们通过仅将SQUID的样本传递给CPU来解决这一问题,从而弥补了这一差距。\n 在软件实现中,我们的方法在真实工作负载下的速度比当前最优替代方案最高快6.6倍。对于基于交换机的缓存,SQUID支持多种基于数据平面的缓存策略,并且比当前最优的P4LRU实现了更高的命中率。

英文摘要:

Streaming algorithms are fundamental in the analysis of large and online datasets. A key component of many such analytic tasks is $q$-MAX, which finds the largest $q$ values in a number stream. Modern approaches attain a constant runtime by removing small items in bulk and retaining the largest $q$ items at all times. Yet, these approaches are bottlenecked by an expensive quantile calculation. This work introduces a quantile-sampling approach called SQUID and shows its benefits in multiple analytic tasks. Using this approach, we design a novel weighted heavy hitters data structure that is faster and more accurate than the existing alternatives. We also show SQUID's practicality for improving network-assisted caching systems with a hardware-based cache prototype that uses SQUID to implement the cache policy. The challenge here is that the switch's dataplane does not allow the general computation required to implement many cache policies, while its CPU is orders of magnitude slower. We overcome this issue by passing just SQUID's samples to the CPU, thus bridging this gap. In software implementations, we show that our method is up to 6.6x faster than the state-of-the-art alternatives when using real workloads. For switch-based caching, SQUID enables a wide spectrum of data-plane-based caching policies and achieves higher hit ratios than the state-of-the-art P4LRU.

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

↑