Skip to main content
QUICK REVIEW

[Paper Review] Techniques for Shared Resource Management in Systems with Throughput Processors

Rachata Ausavarungnirun|arXiv (Cornell University)|Jan 1, 2017
Parallel Computing and Optimization TechniquesComputer Science278 references6 citations
TL;DR

This dissertation proposes GPU-aware memory management techniques to mitigate inter- and intra-application interference in throughput processor systems. It introduces MeDiC for warp-aware cache management, SMS for CPU-GPU memory scheduling, MASK for TLB-aware memory management, and Mosaic for software-hardware co-design of large page allocation—collectively improving performance, fairness, and efficiency in multi-application GPU workloads.

ABSTRACT

The continued growth of the computational capability of throughput processors has made throughput processors the platform of choice for a wide variety of high performance computing applications. Graphics Processing Units (GPUs) are a prime example of throughput processors that can deliver high performance for applications ranging from typical graphics applications to general-purpose data parallel (GPGPU) applications. However, this success has been accompa- nied by new performance bottlenecks throughout the memory hierarchy of GPU-based systems. This dissertation identifies and eliminates performance bottlenecks caused by major sources of interference throughout the memory hierarchy. Specifically, we provide an in-depth analysis of inter- and intra-application as well as inter- address-space interference that significantly degrade the performance and efficiency of GPU-based systems. To minimize such interference, we introduce changes to the memory hierarchy for systems with GPUs that allow the memory hierarchy to be aware of both CPU and GPU applications’ charac- teristics. We introduce mechanisms to dynamically analyze different applications’ characteristics and propose four major changes throughout the memory hierarchy. First, we introduce Memory Divergence Correction (MeDiC), a cache management mecha- nism that mitigates intra-application interference in GPGPU applications by allowing the shared L2 cache and the memory controller to be aware of the GPU’s warp-level memory divergence characteristics. MeDiC uses this warp-level memory divergence information to give more cache space and more memory bandwidth to warps that benefit most from utilizing such resources. Our evaluations show that MeDiC significantly outperforms multiple state-of-the-art caching policies proposed for GPUs. Second, we introduce the Staged Memory Scheduler (SMS), an application-aware CPU-GPU memory request scheduler that mitigates inter-application interference in heterogeneous CPU-GPU systems. SMS creates a fundamentally new approach to memory controller design that decouples the memory controller into three significantly simpler structures, each of which has a separate task, These structures operate together to greatly improve both system performance and fairness. Our three-stage memory controller first groups requests based on row-buffer locality. This grouping allows the second stage to focus on inter-application scheduling decisions. These two stages en- force high-level policies regarding performance and fairness. As a result, the last stage is simple logic that deals only with the low-level DRAM commands and timing. SMS is also configurable: it allows the system software to trade off between the quality of service provided to the CPU versus GPU applications. Our evaluations show that SMS not only reduces inter-application interference caused by the GPU, thereby improving heterogeneous system performance, but also provides better scalability and power efficiency compared to multiple state-of-the-art memory schedulers. Third, we redesign the GPU memory management unit to efficiently handle new problems caused by the massive address translation parallelism present in GPU computation units in multi- GPU-application environments. Running multiple GPGPU applications concurrently induces significant inter-core thrashing on the shared address translation/protection units; e.g., the shared Translation Lookaside Buffer (TLB), a new phenomenon that we call inter-address-space interference. To reduce this interference, we introduce Multi Address Space Concurrent Kernels (MASK). MASK introduces TLB-awareness throughout the GPU memory hierarchy and introduces TLBand cache-bypassing techniques to increase the effectiveness of a shared TLB. Finally, we introduce Mosaic, a hardware-software cooperative technique that further increases the effectiveness of TLB by modifying the memory allocation policy in the system software. Mosaic introduces a high-throughput method to support large pages in multi-GPU-application environments. The key idea is to ensure memory allocation preserve address space contiguity to allow pages to be coalesced without any data movements. Our evaluations show that the MASK-Mosaic combination provides a simple mechanism that eliminates the performance overhead of address translation in GPUs without significant changes to GPU hardware, thereby greatly improving GPU system performance. The key conclusion of this dissertation is that a combination of GPU-aware cache and memory management techniques can effectively mitigate the memory interference on current and future GPU-based systems as well as other types of throughput processors.

Motivation & Objective

  • To identify and eliminate performance bottlenecks caused by inter- and intra-application interference in GPU memory hierarchies.
  • To design memory management mechanisms that are aware of both CPU and GPU application characteristics.
  • To improve system-wide performance, fairness, and power efficiency in heterogeneous CPU-GPU systems with shared memory resources.
  • To address new interference phenomena such as inter-address-space interference from concurrent GPGPU applications.
  • To enable efficient, high-throughput memory allocation in multi-GPU environments without significant hardware changes.

Proposed method

  • Introduces MeDiC, a cache management mechanism that uses warp-level memory divergence information to allocate more cache and memory bandwidth to warps that benefit most.
  • Proposes the Staged Memory Scheduler (SMS), a three-stage memory controller that decouples memory request grouping, inter-application scheduling, and low-level DRAM command generation.
  • Designs MASK, a TLB-aware GPU memory management unit that reduces inter-core thrashing in multi-application environments through TLB- and cache-bypassing techniques.
  • Develops Mosaic, a hardware-software co-design technique that preserves virtual address space contiguity to enable efficient large page coalescing without data movement.
  • Combines MASK and Mosaic to eliminate address translation overhead in multi-GPU workloads with minimal hardware changes.
  • Employs dynamic analysis of application characteristics to guide runtime resource allocation decisions across the memory hierarchy.

Experimental results

Research questions

  • RQ1How can intra-application interference due to warp-level memory divergence be minimized in GPU caching?
  • RQ2What is a scalable and fair memory scheduling approach that reduces inter-application interference between CPU and GPU workloads?
  • RQ3How can inter-address-space interference from concurrent GPGPU applications be mitigated in shared TLB and cache structures?
  • RQ4What role does virtual memory contiguity play in enabling efficient large page management in multi-GPU systems?
  • RQ5How can software and hardware cooperate to eliminate address translation overhead in GPU memory hierarchies?

Key findings

  • MeDiC outperforms multiple state-of-the-art GPU caching policies by dynamically allocating cache and memory bandwidth based on warp-level memory divergence characteristics.
  • SMS reduces inter-application interference, improves system performance and fairness, and achieves better scalability and power efficiency than existing memory schedulers.
  • MASK significantly reduces inter-core thrashing on shared TLB and cache units in multi-application GPU environments through TLB-awareness and bypassing mechanisms.
  • The MASK-Mosaic combination enables efficient large page support in multi-GPU workloads without data movement, eliminating most address translation overhead with minimal hardware changes.
  • The combined techniques improve overall GPU system performance and efficiency by mitigating interference across the memory hierarchy.
  • Evaluations demonstrate that the proposed mechanisms effectively address emerging bottlenecks in modern GPU-based systems, especially under concurrent GPGPU workloads.

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.