[论文解读] A New Frontier for Pull-Based Graph Processing
本文提出了 Wedge,一种仅支持拉取(pull-only)的图处理框架,重新构想面向拉取引擎的前沿优化机制,克服了拉取引擎在前沿驱动工作负载中长期存在的性能劣势。通过将传统的以源点为中心的前沿转换为以目标点为中心的“Wedge 前沿”,并应用基于稀疏性的优化与粗粒度表示优化,Wedge 在 GraphMat 上实现了最高达 185.5× 的加速,并在性能上超越了当前最先进的框架如 Grazelle 和 Ligra。
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.
研究动机与目标
- 通过使拉取引擎能够高效利用前沿优化,消除拉取与推送式图处理引擎之间的性能差距。
- 解决传统观念中认为拉取引擎无法高效处理前沿优化的问题,因其基于目标点的处理模型。
- 消除在混合框架中需同时实现推送与拉取模式的应用程序的双重实现负担。
- 设计一种转换机制,将标准前沿转换为对拉取友好格式,同时不损失性能。
- 通过基于稀疏性的触发机制与粗粒度优化,降低转换步骤的开销,使其在真实工作负载中具备实用性。
提出的方法
- 提出 Wedge 前沿,一种以目标点为中心的数据结构,跟踪活跃边而非活跃顶点,与拉取处理模式保持一致。
- 设计一个转换步骤,将标准的以源点为中心的前沿转换为 Wedge 前沿,使拉取引擎能够高效识别需处理的边。
- 应用基于稀疏性的优化:仅当生成的结构足够稀疏时,才触发转换,以证明转换成本的合理性。
- 实现粗粒度粒度优化,通过分组边来减少 Wedge 前沿中的元素数量,从而降低存储与转换开销。
- 将转换步骤与 Wedge 前沿集成到基于 Grazelle(一种最先进的混合框架)构建的仅支持拉取的执行模型中。
- 利用底层系统(如缓存、内存访问、SIMD)的现有优化,进一步加速转换与运行时阶段。
实验结果
研究问题
- RQ1基于拉取的图处理引擎是否能够高效利用传统上仅限于推送引擎的前沿优化?
- RQ2是否可以通过为拉取执行重新设计前沿数据结构,从而消除对混合引擎的需求?
- RQ3为使从标准前沿到对拉取友好格式的转换在计算成本较高时仍具实用性,需要哪些优化?
- RQ4在多样化图工作负载下,采用重构前沿的仅拉取引擎性能与混合引擎及仅推送引擎相比如何?
- RQ5基于稀疏性检测与粗粒度表示,在拉取系统中能在多大程度上降低前沿转换的开销?
主要发现
- 在多样化图工作负载下,Wedge 在性能上超越 Grazelle 最高达 2.8×,超越 Ligra 最高达 4.9×,超越 GraphMat 最高达 185.5×。
- 基于稀疏性的优化通过避免在前沿较密集时进行不必要的转换,使 Wedge 性能最高提升 5×。
- 粗粒度粒度优化通过减小 Wedge 前沿的大小与处理成本,使性能最高提升 2×。
- 即使在传统上对推送引擎不利的稀疏迭代中,Wedge 仍表现出优越性能,无需回退至推送模式。
- 采用 Wedge 重构前沿的仅拉取模型性能可与或优于混合引擎(其动态切换处理模式)相媲美。
- Wedge 的仅拉取模式性能相比 Grazelle 的仅拉取模式高出数个数量级,充分证明了新前沿表示的有效性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。