[Paper Review] Holistic Management of the GPGPU Memory Hierarchy to Manage Warp-level Latency Tolerance
This paper proposes Memory Divergence Correction (MeDiC), a hardware-aware technique that dynamically classifies GPGPU warps by their memory divergence behavior—high or low cache utility—and uses this classification to optimize cache bypassing, insertion, and memory scheduling. MeDiC achieves an average 21.8% speedup and 20.1% higher energy efficiency over state-of-the-art GPU cache management across 15 GPGPU workloads by reducing cache queuing delays and improving hit rates for beneficial warps.
In a modern GPU architecture, all threads within a warp execute the same instruction in lockstep. For a memory instruction, this can lead to memory divergence: the memory requests for some threads are serviced early, while the remaining requests incur long latencies. This divergence stalls the warp, as it cannot execute the next instruction until all requests from the current instruction complete. In this work, we make three new observations. First, GPGPU warps exhibit heterogeneous memory divergence behavior at the shared cache: some warps have most of their requests hit in the cache, while other warps see most of their request miss. Second, a warp retains the same divergence behavior for long periods of execution. Third, requests going to the shared cache can incur queuing delays as large as hundreds of cycles, exacerbating the effects of memory divergence. We propose a set of techniques, collectively called Memory Divergence Correction (MeDiC), that reduce the negative performance impact of memory divergence and cache queuing. MeDiC delivers an average speedup of 21.8%, and 20.1% higher energy efficiency, over a state-of-the-art GPU cache management mechanism across 15 different GPGPU applications.
Motivation & Objective
- To address the performance degradation caused by memory divergence in GPGPU warps, where slowest memory requests stall entire warps due to SIMD execution.
- To exploit inter-warp heterogeneity in memory access patterns—specifically, differences in cache hit/miss behavior—across warps.
- To reduce the impact of high queuing delays in the L2 cache by intelligently managing cache bypassing, insertion, and memory scheduling based on real-time warp classification.
- To improve both performance and energy efficiency by prioritizing high-utility warps and minimizing contention for shared memory resources.
Proposed method
- Online hardware profiling of warp-level memory divergence behavior to classify warps as high or low cache utility.
- A cache bypassing mechanism that redirects requests from low-utility warps (mostly-miss) around the L2 cache to reduce queuing delay and free up bandwidth.
- A cache insertion policy that preserves data from high-utility warps (mostly-hit) to prevent premature eviction and improve hit rates.
- A memory controller prioritization scheme that accelerates requests from high-utility warps to minimize stall time.
- A holistic co-design of cache and memory hierarchy components guided by real-time warp classification to reduce overall latency.
- Use of the observed stability of warp divergence behavior over time to enable reliable, long-term optimization decisions.
Experimental results
Research questions
- RQ1Can inter-warp heterogeneity in memory divergence behavior at the L2 cache be exploited to improve GPU performance and energy efficiency?
- RQ2How can dynamic classification of warps into high-utility and low-utility categories reduce the impact of cache queuing delays?
- RQ3To what extent can cache bypassing, insertion, and memory scheduling be co-optimized based on warp-level divergence characteristics?
- RQ4Can converting mostly-hit warps into all-hit warps and mostly-miss warps into all-miss warps reduce overall stall time and improve resource utilization?
Key findings
- MeDiC reduces the performance impact of memory divergence by classifying warps based on their cache utility and applying targeted optimizations.
- The technique achieves an average 21.8% speedup over a state-of-the-art GPU cache management mechanism across 15 diverse GPGPU applications.
- MeDiC delivers 20.1% higher energy efficiency compared to the same baseline, due to reduced cache traffic and queuing delays.
- The stability of warp divergence behavior over time enables reliable, long-term optimization without frequent reclassification.
- Cache bypassing for low-utility warps reduces contention and frees L2 bandwidth, improving performance for high-utility warps.
- Prioritizing requests from high-utility warps significantly reduces stall time, even under high memory pressure.
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.