TL;DR
SGDRC is a software-defined system that dynamically manages GPU compute units and VRAM bandwidth to enable efficient co-execution of high-priority and background DNN inference tasks. By reverse-engineering proprietary GPU memory architectures and employing "bimodal tensors," it achieves near-perfect service-level objective (SLO) attainment while boosting overall throughput by up to 1.47×.
The Challenge of GPU Resource Contention
In modern data centers, GPUs are frequently shared between high-priority, latency-sensitive (LS) tasks (e.g., real-time autonomous driving inference) and low-priority, best-effort (BE) tasks (e.g., background batch processing). The objective is to maximize GPU utilization without compromising the performance of LS tasks.
However, existing NVIDIA GPU sharing solutions face significant hurdles:
- Multi-Process Service (MPS): While it partitions compute units, it fails to isolate VRAM bandwidth, leading to "noisy neighbor" interference.
- Multi-Instance GPU (MIG): Provides strong isolation but is restricted to high-end flagship GPUs (like the A100) and lacks the flexibility needed for dynamic workloads.
- Interference-aware multiplexing: Often adopts overly conservative policies, sacrificing throughput to ensure LS task deadlines are met.
A major technical barrier is that NVIDIA’s VRAM channel architecture and its address-mapping hash functions are proprietary "black boxes." Without visibility into how memory addresses map to hardware channels, preventing different tasks from competing for the same memory bandwidth is extremely difficult.
SGDRC: Software-Defined Resource Control
To address these limitations, the authors introduce SGDRC (Software-defined GPU Dynamic Resource Control). SGDRC manages resources through several innovative software-level techniques:
- Reverse-Engineering with DNNs: Since VRAM hash mapping is non-linear and undocumented, the authors trained a DNN to learn the mapping. By profiling memory access latencies, they collected samples to train a model that predicts VRAM channel assignments with >99.9% accuracy.
- Fine-Grained Cache Coloring: Using the learned mapping, SGDRC implements a "shadow page table" to perform software-level cache coloring. This ensures LS and BE tasks are mapped to distinct VRAM channels, effectively eliminating memory-level contention.
- Bimodal Tensors: To enable dynamic bandwidth allocation without hardware modifications, SGDRC maintains two versions of memory-bound tensors: one mapped to all channels (for solo execution) and one restricted to a subset (for co-location). The system switches between these on the fly.
- Tidal SM Masking: SGDRC utilizes the
libsmctrlinterface to dynamically mask or unmask Streaming Multiprocessors (SMs). This allows LS tasks to instantly preempt compute resources from BE tasks upon request arrival.
Key Insights: Dynamic vs. Static Partitioning
The most significant advantage of SGDRC is its ability to provide MIG-like isolation on a wider range of GPUs (including older models like the Tesla P40) while maintaining high utilization through dynamic resource reclamation. Unlike static hardware partitioning, SGDRC can immediately return resources to background tasks once an LS task completes.
Evaluation and Results
The system was evaluated using 11 mainstream DNN models (e.g., ResNet, MobileNet, BERT) and real-world request patterns from the Baidu Apollo autonomous driving trace.
- SLO Attainment: SGDRC achieved a 99.0% average SLO attainment rate, significantly outperforming state-of-the-art solutions like Orion and MPS.
- Throughput Gains: Compared to Orion, SGDRC improved overall throughput by up to 1.47× and boosted BE job throughput by up to 2.36×.
- Minimal Overhead: The software-level address re-indexing adds only approximately 0.5% to end-to-end inference time.
Limitations
Currently, SGDRC relies on DNN compilers like TVM to transform CUDA kernels, making it difficult to support closed-source vendor libraries like cuDNN without further binary-level intervention. Additionally, the "bimodal tensor" approach increases VRAM usage, which may be a constraint for memory-intensive models.
Summary updated