基于拉取的图形处理新前沿
A New Frontier for Pull-Based Graph Processing
摘要:
基于拉和基于推的图形处理引擎之间的权衡是很好理解的。一方面,基于拉取的引擎可以实现更高的吞吐量,因为它们的工作负载是读主导的,而不是写主导的,并且可以在线程之间没有同步的情况下继续进行。另一方面,基于推送的引擎能够更好地利用前沿优化,这利用了这样一个事实,即通常只需要访问图的一个小子集来完成图处理应用程序的迭代。混合动力引擎试图通过在推和拉之间动态切换来克服这种权衡,但这种方法有两个关键缺点。首先,应用程序必须实现两次(一次用于推送,一次用于拉取),其次,使用推送运行的迭代的处理吞吐量会降低。我们提出了一个完全不同的解决方案:完全重建边界优化,使其非常适合基于拉动的引擎。在这样做的过程中,我们消除了基于推的引擎相对于基于拉的引擎的唯一优势,使得完全消除基于推的引擎成为可能。我们介绍了楔形,一个只拉图处理框架,将传统的面向源代码的顶点为基础的前沿到一个拉友好的格式称为楔形前沿。即使并行化,转换本身也是昂贵的,因此我们引入了两个关键的优化来使其实用。首先,我们只在得到的楔形边界足够稀疏时才执行变换。第二,我们粗化了楔形边界中元素表示的粒度。这些优化分别将Wedge的性能提高了5倍和2倍,使其分别超过Grazelle,Ligra和GraphMat高达2.8倍,4.9倍和185.5倍。
英文摘要:
The trade-off between pull-based and push-based graph processing engines is well-understood. On one hand, pull-based engines can achieve higher throughput because their workloads are read-dominant, rather than write-dominant, and can proceed without synchronization between threads. On the other hand, push-based engines are much better able to take advantage of the frontier optimization, which leverages the fact that often only a small subset of the graph needs to be accessed to complete an iteration of a graph processing application. Hybrid engines attempt to overcome this trade-off by dynamically switching between push and pull, but there are two key disadvantages with this approach. First, applications must be implemented twice (once for push and once for pull), and second, processing throughput is reduced for iterations that run with push. We propose a radically different solution: rebuild the frontier optimization entirely such that it is well-suited for a pull-based engine. In doing so, we remove the only advantage that a push-based engine had over a pull-based engine, making it possible to eliminate the push-based engine entirely. We introduce Wedge, a pull-only graph processing framework that transforms the traditional source-oriented vertex-based frontier into a pull-friendly format called the Wedge Frontier. The transformation itself is expensive even when parallelized, so we introduce two key optimizations to make it practical. First, we perform the transformation only when the resulting Wedge Frontier is sufficiently sparse. Second, we coarsen the granularity of the representation of elements in the Wedge Frontier. These optimizations respectively improve Wedge's performance by up to 5x and 2x, enabling it to outperform Grazelle, Ligra, and GraphMat respectively by up to 2.8x, 4.9x, and 185.5x.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。