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

基于共享内存多核的有序流处理的缩放

Scaling Ordered Stream Processing on Shared-Memory Multicores

Guna Prasaad, G. Ramalingam, Kaushik Rajan

摘要:

许多现代应用需要实时处理大量高速数据。这种数据处理需求可以建模为流式计算。流计算被指定为一个多线程图,该图以数据、流水线和任务并行的形式暴露了并行化其执行的多个机会。另一方面,许多重要的应用程序要求对流的处理是有序的,其中输入的处理顺序与它们到达的顺序相同。在有序处理和并行化流计算之间存在根本冲突。本文主要研究在共享内存多核机器上有效并行有序流计算的问题。我们首先解决的关键挑战,利用数据并行在有序设置。我们提出了一个低延迟,非阻塞的并发数据结构,以有序的并发工人对一个操作符产生的输出。我们还提出了一种新的方法来并行化分区的有状态操作符,可以有效地处理跨分区的负载不平衡,主要是避免由于排序的延迟。我们说明了我们的并发数据结构的权衡和有效性的微基准和流查询从TPCx-BB基准。然后,我们提出了一个自适应的运行时,动态映射暴露的并行计算的机器。我们提出了几个直观的调度算法,并在TPCx-BB查询上进行了经验比较。我们发现,对于流计算,利用尽可能多的流水线并行的算法比那些试图利用数据并行的算法性能更好。

英文摘要:

Many modern applications require real-time processing of large volumes of high-speed data. Such data processing needs can be modeled as a streaming computation. A streaming computation is specified as a dataflow graph that exposes multiple opportunities for parallelizing its execution, in the form of data, pipeline and task parallelism. On the other hand, many important applications require that processing of the stream be ordered, where inputs are processed in the same order as they arrive. There is a fundamental conflict between ordered processing and parallelizing the streaming computation. This paper focuses on the problem of effectively parallelizing ordered streaming computations on a shared-memory multicore machine. We first address the key challenges in exploiting data parallelism in the ordered setting. We present a low-latency, non-blocking concurrent data structure to order outputs produced by concurrent workers on an operator. We also propose a new approach to parallelizing partitioned stateful operators that can handle load imbalance across partitions effectively and mostly avoid delays due to ordering. We illustrate the trade-offs and effectiveness of our concurrent data-structures on micro-benchmarks and streaming queries from the TPCx-BB benchmark. We then present an adaptive runtime that dynamically maps the exposed parallelism in the computation to that of the machine. We propose several intuitive scheduling heuristics and compare them empirically on the TPCx-BB queries. We find that for streaming computations, heuristics that exploit as much pipeline parallelism as possible perform better than those that seek to exploit data parallelism.

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

↑