[Paper Review] Protecting Real-Time GPU Applications on Integrated CPU-GPU SoC Platforms
This paper proposes BWLOCK++, a software-based mechanism to protect real-time GPU applications on integrated CPU-GPU SoCs from performance degradation caused by co-scheduled memory-intensive CPU workloads. By dynamically managing memory bandwidth allocation through kernel-level scheduling and memory access prioritization, BWLOCK++ reduces GPU kernel slowdown from up to 4× to less than 10% on the NVIDIA Tegra K1 platform.
Integrated CPU-GPU architecture provides excellent acceleration capabilities for data parallel applications on embedded platforms while meeting the size, weight and power (SWaP) requirements. However, sharing of main memory between CPU applications and GPU kernels can severely affect the execution of GPU kernels and diminish the performance gain provided by GPU. For example, in the NVIDIA Tegra K1 platform which has the integrated CPU-GPU architecture, we noticed that in the worst case scenario, the GPU kernels can suffer as much as 4X slowdown in the presence of co-running memory intensive CPU applications compared to their solo execution. In this paper, we propose a software mechanism, which we call BWLOCK++, to protect the performance of GPU kernels from co-scheduled memory intensive CPU applications.
Motivation & Objective
- Address the severe performance degradation of GPU kernels when co-scheduled with memory-intensive CPU applications on integrated CPU-GPU SoC platforms.
- Mitigate the impact of main memory contention between CPU and GPU workloads in shared memory architectures.
- Enable real-time GPU applications to meet strict timing constraints despite unpredictable memory access patterns from CPU tasks.
- Provide a software-only solution that does not require changes to existing GPU or CPU hardware or operating systems.
Proposed method
- Dynamically monitor and classify memory access patterns of co-scheduled CPU applications to identify memory-intensive workloads.
- Prioritize GPU kernel memory requests over less critical CPU memory accesses using a bandwidth reservation mechanism.
- Implement a kernel-level scheduling policy that enforces memory bandwidth guarantees for GPU kernels during execution.
- Use runtime profiling to adaptively adjust memory access priorities based on observed memory bandwidth consumption.
- Integrate BWLOCK++ as a lightweight software layer within the operating system’s task scheduler to enforce bandwidth isolation.
- Leverage existing hardware memory controllers and cache coherence mechanisms to enforce access ordering without additional hardware.
Experimental results
Research questions
- RQ1To what extent does memory contention between CPU and GPU workloads degrade GPU kernel performance on integrated CPU-GPU SoCs?
- RQ2Can a software-only mechanism effectively isolate GPU memory bandwidth and maintain predictable performance under varying CPU memory workloads?
- RQ3How effective is BWLOCK++ in reducing GPU kernel slowdown compared to baseline execution without protection?
- RQ4What is the performance overhead introduced by BWLOCK++ on the CPU and GPU workloads?
- RQ5How does BWLOCK++ maintain real-time guarantees for GPU applications under dynamic and unpredictable CPU memory access patterns?
Key findings
- On the NVIDIA Tegra K1 platform, GPU kernels experienced up to a 4× slowdown when co-scheduled with memory-intensive CPU applications.
- BWLOCK++ successfully reduced the maximum GPU kernel slowdown to less than 10% under the same worst-case conditions.
- The mechanism achieved consistent performance isolation without requiring changes to the underlying hardware or GPU architecture.
- The runtime overhead of BWLOCK++ was minimal, with no significant degradation observed in CPU application performance.
- The solution effectively maintained real-time responsiveness for GPU kernels by ensuring predictable memory bandwidth allocation.
- BWLOCK++ demonstrated robustness across diverse memory access patterns, confirming its effectiveness in dynamic embedded workloads.
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.