[Paper Review] Ridgeline: A 2D Roofline Model for Distributed Systems
Ridgeline extends the traditional Roofline model to distributed systems by integrating compute, memory, and network constraints into a 2D performance visualization, enabling intuitive bottleneck identification. It reveals that for a data-parallel MLP, batch sizes below 512 are network-bound due to all-reduce overhead, while larger batches are compute-bound, a nuance missed by standard Roofline models.
In this short paper, we introduce the Ridgeline model, an extension of the Roofline model [4] for distributed systems. The Roofline model targets shared memory systems, bounding the performance of a kernel based on its operational intensity, and the peak compute throughput and memory bandwidth of the execution system. In a distributed setting, with multiple communicating compute entities, the network must be taken into account to model the system behavior accurately. The Ridgeline aggregates information on compute, memory, and network limits in one 2D plot to show, in an intuitive way, which of the resources is the expected bottleneck. We show the applicability of the Ridgeline in a case study based on a data-parallel Multi-Layer Perceptron (MLP) instance.
Motivation & Objective
- To address the limitation of the standard Roofline model in capturing network bandwidth constraints in distributed systems.
- To develop a simplified 2D visualization that retains the intuitive appeal of the original Roofline while incorporating network and memory constraints.
- To enable accurate performance prediction and bottleneck identification in data-parallel machine learning workloads, such as MLP training.
- To demonstrate the model’s utility in identifying when network communication (e.g., all-reduce) becomes the dominant performance cost.
- To provide a practical framework for performance analysis in disaggregated and distributed HPC environments.
Proposed method
- The Ridgeline model projects three performance constraints—compute, memory, and network—onto a 2D plane using arithmetic intensity (FLOPS per memory byte) and memory intensity (memory bytes per network byte).
- It overlays two Roofline-style curves: one for compute vs. memory intensity, and another for memory vs. network intensity, creating intersecting bounding lines.
- The intersection of these lines divides the plane into four quadrants, each indicating a different performance bottleneck: network-bound (lower-left), memory-bound (lower-right), compute-bound (upper-right), and a mixed case (upper-left).
- In the upper-left quadrant, the model uses the product of the x- and y-axis values (FLOPS per network byte × network bandwidth) to determine the effective performance ceiling.
- The model identifies the ridgeline as the locus where FLOPS per network byte × network bandwidth is constant, ensuring consistent GFLOPS/s across the line.
- The method enables performance prediction by assigning the runtime to the dominant resource: memory traffic / memory bandwidth, network traffic / network bandwidth, or total FLOPS / compute capacity.
Experimental results
Research questions
- RQ1How can the Roofline model be extended to account for network bandwidth in distributed systems?
- RQ2Can a 2D visualization preserve the interpretability of the original Roofline while incorporating network and memory constraints?
- RQ3What performance bottlenecks emerge in data-parallel MLP training when all-reduce communication is considered?
- RQ4How does batch size affect the performance bottleneck in distributed MLP training on modern hardware?
- RQ5Can the Ridgeline model accurately predict when communication (all-reduce) becomes the dominant cost in distributed training?
Key findings
- For a data-parallel MLP on an Intel Xeon Cascade Lake node, batch sizes below 512 are network-bound due to all-reduce communication overhead, despite high arithmetic intensity.
- Batch sizes of 512 or higher are compute-bound, as confirmed by both the Ridgeline plot and timing projections.
- The standard Roofline model fails to capture the all-reduce cost, incorrectly suggesting that smaller batches are memory-bound when they are actually network-bound.
- The Ridgeline plot clearly separates the three performance regions: network-bound (lower-left), memory-bound (lower-right), and compute-bound (upper-right), with the ridgeline marking the performance ceiling.
- The product of the x- and y-axis values on the Ridgeline is constant, ensuring consistent GFLOPS/s across the line, which validates the model’s theoretical consistency.
- The model enables accurate performance prediction by assigning runtime to the dominant resource, with results confirmed by projected timing measurements in the case study.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.