Skip to main content
QUICK REVIEW

[Paper Review] GraphCage: Cache Aware Graph Processing on GPUs

Xuhao Chen|arXiv (Cornell University)|Apr 3, 2019
Graph Theory and AlgorithmsComputer Science36 references4 citations
TL;DR

GraphCage is a cache-aware optimization framework for efficient GPU-based graph processing that introduces a throughput-oriented cache blocking scheme (TOCAB) to improve data locality and reduce memory latency. By leveraging GPU last-level cache (LLC) with CSR-based graph representation and coordinating with load balancing, GraphCage achieves 2–4× speedup over hand-optimized implementations and state-of-the-art frameworks like Gunrock and CuSha, with lower memory usage.

ABSTRACT

Efficient Graph processing is challenging because of the irregularity of graph algorithms. Using GPUs to accelerate irregular graph algorithms is even more difficult to be efficient, since GPU's highly structured SIMT architecture is not a natural fit for irregular applications. With lots of previous efforts spent on subtly mapping graph algorithms onto the GPU, the performance of graph processing on GPUs is still highly memory-latency bound, leading to low utilization of compute resources. Random memory accesses generated by the sparse graph data structure are the major causes of this significant memory access latency. Simply applying the conventional cache blocking technique proposed for matrix computation have limited benefit due to the significant overhead on the GPU. We propose GraphCage, a cache centric optimization framework for highly efficient graph processing on GPUs. We first present a throughput-oriented cache blocking scheme (TOCAB) in both push and pull directions. Comparing with conventional cache blocking which suffers repeated accesses when processing large graphs on GPUs, TOCAB is specifically optimized for the GPU architecture to reduce this overhead and improve memory access efficiency. To integrate our scheme into state-of-the-art implementations without significant overhead, we coordinate TOCAB with load balancing strategies by considering the sparsity of subgraphs. To enable cache blocking for traversal-based algorithms, we consider the benefit and overhead in different iterations with different working set sizes, and apply TOCAB for topology-driven kernels in pull direction. Evaluation shows that GraphCage can improve performance by 2 ~ 4x compared to hand optimized implementations and state-of-the-art frameworks (e.g. CuSha and Gunrock), with less memory consumption than CuSha.

Motivation & Objective

  • Address poor data locality in GPU graph processing due to irregular, random memory accesses in sparse graph workloads.
  • Overcome limitations of prior cache blocking techniques on GPUs, which suffer from high overhead and inefficient memory access patterns.
  • Design a GPU-optimized cache blocking scheme that improves memory access efficiency without sacrificing performance or increasing memory footprint.
  • Integrate cache blocking with load balancing strategies to handle varying subgraph sparsity and working set sizes across iterations.
  • Enable effective cache utilization in traversal-based graph algorithms by adapting blocking to dynamic working set changes in pull-based kernels.

Proposed method

  • Propose a throughput-oriented cache blocking (TOCAB) scheme that replaces sparse global memory accesses with dense partial sum accesses to improve memory access efficiency on GPUs.
  • Use the GPU's last-level cache (LLC) as a working set cache instead of relying on shared memory, avoiding the overhead of excessive subgraph partitioning.
  • Adopt the CSR (Compressed Sparse Row) format to minimize global memory usage compared to COO-based representations used in prior frameworks like CuSha.
  • Coordinate TOCAB with dynamic load balancing by analyzing subgraph sparsity to minimize load imbalance across GPU warps.
  • Apply TOCAB selectively in pull-mode traversal kernels, where working set size changes significantly across iterations, to maximize cache benefit.
  • Design a static cache blocking strategy that avoids repeated cache misses by aligning data access patterns with GPU memory hierarchy and cache line sizes.

Experimental results

Research questions

  • RQ1Can a cache-aware optimization framework improve data locality and reduce memory latency in GPU-based graph processing without increasing memory footprint?
  • RQ2How can cache blocking be effectively adapted to the GPU's memory hierarchy, especially given the limited shared memory and high-impact random accesses in sparse graphs?
  • RQ3What is the performance impact of coordinating cache blocking with load balancing in irregular graph workloads with dynamic working set sizes?
  • RQ4How does TOCAB compare to conventional cache blocking and existing GPU graph frameworks in terms of speedup and memory efficiency?
  • RQ5Can TOCAB be effectively applied to both push and pull directions in graph traversal algorithms, particularly in topology-driven kernels?

Key findings

  • GraphCage achieves up to 4× speedup over Gunrock, a state-of-the-art GPU graph processing framework, on diverse real-world graphs.
  • GraphCage improves performance by 2–4× compared to hand-optimized GPU implementations of graph algorithms.
  • GraphCage reduces memory consumption compared to CuSha by using CSR format instead of COO, avoiding the 2.5× memory overhead of COO.
  • The TOCAB scheme significantly reduces cache misses and improves memory access efficiency by transforming sparse accesses into dense partial sum operations.
  • Coordination of TOCAB with load balancing enables effective performance scaling across graphs with varying sparsity and dynamic working set sizes.
  • GraphCage demonstrates that last-level cache (LLC) can be effectively utilized as a working set cache in GPU graph processing, contrary to common assumptions that it is only for synchronization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.