Skip to main content
QUICK REVIEW

[Paper Review] Protecting real-time GPU kernels on integrated CPU-GPU SoC platforms

Waqar Ali, Heechul Yun|arXiv (Cornell University)|Dec 23, 2017
Parallel Computing and Optimization TechniquesComputer Science18 references10 citations
TL;DR

This paper proposes BWLOCK++, a software framework that protects real-time GPU kernels on integrated CPU-GPU SoCs by dynamically inserting memory bandwidth locks during runtime, throttling CPU memory bandwidth to prevent interference. It achieves near-solo GPU performance even under memory-intensive CPU workloads, with up to 75% lower CPU throughput loss via a novel Throttle Fair Scheduler (TFS) algorithm, enabling reliable real-time GPU task scheduling on platforms like NVIDIA Jetson TX2.

ABSTRACT

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

  • To address performance degradation of real-time GPU kernels caused by memory bandwidth contention with co-scheduled CPU applications on integrated CPU-GPU SoCs.
  • To enable predictable, real-time execution of GPU-accelerated workloads in resource-constrained robotics and embedded systems.
  • To minimize CPU throughput degradation while protecting GPU kernel performance through intelligent memory bandwidth throttling.
  • To integrate with existing real-time schedulability analysis frameworks for end-to-end system verification.

Proposed method

  • Dynamically instruments GPU kernels at runtime to insert memory bandwidth locks that regulate CPU memory access during GPU execution.
  • Applies memory bandwidth throttling to CPU cores based on per-GPU-task thresholds to limit interference.
  • Proposes Throttle Fair Scheduler (TFS), a modified CFS that prioritizes CPU-intensive tasks over memory-intensive ones during GPU kernel execution.
  • Uses the priority ceiling protocol to serialize GPU execution and prevent priority inversion via bandwidth lock acquisition.
  • Employs a profiling-based threshold selection mechanism to set optimal memory bandwidth limits per GPU task.
  • Integrates with existing CPU-focused real-time schedulability analysis by modeling GPU execution segments as critical sections with blocking.

Experimental results

Research questions

  • RQ1Can memory bandwidth throttling effectively isolate real-time GPU kernels from interference by memory-intensive CPU tasks on integrated CPU-GPU platforms?
  • RQ2What is the impact of memory bandwidth throttling on the Linux CFS scheduler, and how can it be mitigated?
  • RQ3Can a runtime instrumentation framework eliminate the need for manual kernel modification to protect GPU tasks?
  • RQ4To what extent does the proposed framework reduce CPU throughput loss while maintaining GPU performance isolation?
  • RQ5Can BWLOCK++ be integrated into existing real-time schedulability analysis frameworks for mixed CPU-GPU systems?

Key findings

  • BWLOCK++ reduces GPU kernel slowdown from up to 3.3X to near-solo performance (within 1%) under memory-intensive CPU workloads on NVIDIA Jetson TX2.
  • The Throttle Fair Scheduler (TFS) reduces CPU throughput loss by up to 75% compared to the default CFS scheduler under memory bandwidth throttling.
  • The total runtime overhead of BWLOCK++ across all evaluated GPU benchmarks is less than 1% of the solo execution time.
  • The framework enables accurate worst-case execution time (WCET) estimation by reducing pessimism in GPU kernel timing due to interference.
  • BWLOCK++ successfully integrates with existing CPU-focused real-time schedulability analysis frameworks, enabling end-to-end system-level verification.

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.