Abstract
NVIDIA’s Multi-Instance GPU (MIG) technology provides hardware-level isolation for multi-tenant cloud environments. However, recent studies reveal that the Last-Level TLB (L3 TLB) remains a shared resource, leading to performance degradation due to inter-instance contention and sub-entry underutilization. This paper introduces STAR (Sub-EnTry ShAring-AwaRe TLB), a novel hardware design that allows multiple memory regions to dynamically share sub-entries within a single TLB entry. By improving sub-entry utilization by 31.4%, STAR achieves an average performance boost of 28.7% across diverse multi-tenant workloads with negligible area overhead.
Introduction
Multi-Instance GPU (MIG) is a cornerstone of modern GPU virtualization, allowing a single physical GPU to be partitioned into isolated instances. While compute cores and memory capacity are strictly partitioned, the address translation hierarchy—specifically the L3 Translation Lookaside Buffer (TLB)—is often shared across all instances.
Modern GPUs like the NVIDIA A100 utilize a sub-entry TLB design to increase "reach" (the amount of memory the TLB can track). In this design, a single TLB entry tracks a contiguous 1 MB memory range divided into 16 sub-entries. However, this architecture suffers in multi-tenant scenarios. First, inter-instance contention causes frequent evictions as different tenants compete for the same entries. Second, sub-entry underutilization occurs when applications with sparse memory access patterns only use a fraction of the 16 available sub-entries. When an entry is evicted due to contention, the entire 1 MB range is lost, even if only one sub-entry was active.
The STAR Architecture
To mitigate these issues, we propose STAR, a hardware-level modification to the L3 TLB. STAR enables "dynamic sharing," allowing two or more different base addresses (from different processes or instances) to occupy the same physical TLB entry.
As shown in the architectural diagram above, STAR introduces several key mechanisms:
- Flexible Mapping Layouts: STAR supports both Sequential (splitting 16 slots into two blocks of 8) and Stride (interleaving slots) layouts. This flexibility allows the hardware to adapt to different application access patterns, whether they are block-based or strided.
- Dynamic State Switching: The system monitors sub-entry demand. If an application requires more reach, STAR can dynamically revert a shared entry to an exclusive state to maintain performance integrity.
- Low-Overhead Metadata: To track ownership, STAR adds an Address Identify Bit (AIB) and Layout Bits to each entry, requiring only a 1.4% increase in L3 TLB area.
Experimental Evaluation
We evaluated STAR using a modified version of MGPUSim, a high-fidelity simulator capable of modeling MIG's partitioned architecture. The evaluation utilized 10 representative applications from suites like Polybench, SHOC, and Rodinia. These were combined into 11 multi-tenant workloads (W1–W11), categorized by their TLB Misses Per Kilo-Instruction (MPKI) as High (H), Medium (M), or Low (L).
Key Results
STAR significantly outperforms the baseline shared TLB and other contention management schemes.
As illustrated in the performance summary, STAR provides consistent improvements across various workload intensities:
- Performance Gains: The average system performance improved by 28.7%, with peak gains reaching 51.3% in highly contentious workloads (e.g., W6).
- Hit Rate and Utilization: The L3 TLB hit rate increased by an average of 32.8%, directly attributable to a 31.4% improvement in sub-entry utilization.
- Efficiency: The design is highly efficient, with less than 1% impact on total system power and minimal area overhead.
Conclusion
STAR demonstrates that the key to scaling multi-tenant GPU performance lies in better utilization of existing on-chip resources rather than simply increasing their size. By allowing sub-entry sharing, STAR effectively increases TLB reach and reduces inter-instance interference. Future work will explore deeper integration with the Operating System to further optimize memory allocation for sharing-aware hardware.
Summary updated