Abstract
As GPUs become increasingly central to AI infrastructure, maximizing their efficiency through colocation—running multiple applications on a single chip—has become a priority. However, standard metrics like "utilization percentage" fail to capture the nuances of resource interference. This paper identifies specific hardware bottlenecks, including L2 cache pollution and warp scheduler constraints, that lead to significant performance degradation. Using a suite of custom CUDA microbenchmarks, we analyze the impact of interference on Large Language Model (LLM) workloads and propose a framework for more predictable, interference-aware GPU scheduling.
Introduction: The Pitfalls of Coarse Metrics
GPUs are often significantly underutilized, with even large-scale LLMs sometimes consuming only 10% of available compute power. While colocation offers a path to improved efficiency, it introduces the risk of unpredictable interference. Current scheduling approaches rely on metrics such as nvidia-smi utilization or thread occupancy. This study argues that these metrics are insufficient; for instance, a kernel with low occupancy can still saturate instruction-issue hardware, leading to an 8.57x latency increase. Understanding these "pitfalls" is essential for production-grade colocation.
Methodology
The researchers developed custom CUDA microbenchmarks to stress specific architectural components:
- Compute Pipelines: Targeting specific units like FP64.
- Memory Hierarchy: Evaluating L2 cache and global memory bandwidth.
- Internal SM Resources: Investigating shared memory bank conflicts and warp scheduling limits.
These benchmarks were tested against the decode phase of Llama3.1-8B-Instruct and Gemma3-1B-IT on NVIDIA H100 NVL and RTX 3090 hardware. To ensure precise partitioning, the study utilized CUDA Green Contexts for Streaming Multiprocessor (SM) isolation.
Identifying Hardware Bottlenecks
L2 Cache Interference
Even when applications are isolated on different SMs, they share the L2 cache. "Cache pollution" from a colocated task can drastically reduce the hit rate for the primary workload. The authors demonstrated that this contention can result in a 2.15x slowdown as the working set size approaches the cache capacity.
Warp Scheduling and Register Pressure
Modern GPUs are limited by their ability to issue instructions (typically 4 per cycle per SM). A compute-bound kernel hitting this limit can stall a memory-bound kernel sharing the same scheduler. Furthermore, kernels that maximize register usage can cause "head-of-line blocking," preventing the hardware scheduler from initiating new work even if resources appear available.
Impact on LLM Performance
The practical consequences of these bottlenecks are most evident in LLM inference. In tests colocating Llama3-8B with a "sleep" kernel, the Time Between Tokens (TBT) increased from 7.53 ms to 16.56 ms. This jump is attributed to the block scheduler's inability to allocate sufficient registers for the LLM kernels amidst the colocated workload.
Interestingly, the study found that restricting an LLM to half of the available SMs only caused a 1.19x slowdown while freeing significant capacity for other tasks, suggesting that strategic under-provisioning can enhance overall system efficiency.
Conclusion and Future Directions
Effective GPU colocation requires fine-grained, kernel-level scheduling. The authors propose developing a kernel-level interference estimator to predict performance degradation based on a kernel's resource profile. While this study focused on NVIDIA architectures, the underlying principles of resource contention provide a roadmap for optimizing multi-tenant GPU environments across various hardware platforms.
Summary updated