Introduction
NVIDIA’s Multi-Instance GPU (MIG) technology has significantly advanced resource isolation for multi-tenant GPU computing. However, while compute and cache resources are partitioned, recent research reveals that the last-level Translation Lookaside Buffer (L3 TLB) remains a shared resource. This lack of isolation leads to significant performance degradation due to TLB thrashing. This paper introduces STAR, a Sub-EnTry ShAring-AwaRe TLB design that optimizes hardware utilization by allowing multiple applications to dynamically share the "sub-entries" within a single TLB entry.
The Shared TLB Bottleneck
Modern GPUs like the NVIDIA A100 utilize a sub-entry TLB design to increase "TLB reach." In this architecture, a single TLB entry maps a contiguous 1 MB range, divided into sixteen 64 KB pages (sub-entries). While efficient for single applications with high spatial locality, this design falters in multi-tenant environments.
When multiple instances share the L3 TLB, they compete for entries. Often, an application allocates an entry but only utilizes a few sub-entries. A co-running application may then evict this entire entry to map its own address space, causing the first application to lose all its translations. This "noisy neighbor" effect results in massive hardware underutilization and frequent, expensive page table walks.
The STAR TLB Design
To address this, the authors propose STAR, a hardware-supported mechanism that allows two or more base addresses to dynamically "pack" into the same 16-slot TLB entry. Key technical components include:
- Dynamic Sharing Criteria: Entries are evaluated for sharing based on current utilization. If an entry uses fewer than eight sub-entries, it becomes a candidate for sharing when a new request arrives.
- Flexible Mapping Layouts: STAR supports Sequential Layout (splitting the 16 sub-entries into two blocks of eight) and Stride Layout (interleaving sub-entries), catering to different application access patterns.
- Dynamic State Switching: To ensure high-demand processes are not throttled, STAR can revert shared entries to an exclusive state if memory demand increases.
- Minimal Hardware Overhead: The design requires only minor modifications, such as adding a "layout bit" and an "Address Identify Bit" (AIB), resulting in a negligible 1.4% area overhead for the L3 TLB.
Evaluation and Results
The STAR design was evaluated using the MGPUSim simulator, configured to model the A100’s TLB hierarchy. The researchers tested nine multi-tenant workload mixes (W1-W9) with varying levels of contention, ranging from High-High-High (HHH) to Low-Low-Low (LLL).
The results demonstrate that STAR significantly mitigates TLB thrashing:
- Performance Gains: STAR improved overall performance by an average of 30.2%, with high-contention workloads (like W1 and W2) seeing substantial improvements.
- Hit Rate and Utilization: The L3 TLB hit rate increased by an average of 28.8%, and sub-entry utilization improved by 31.4%, proving that the "packing" mechanism effectively rescues otherwise wasted hardware slots.
- Efficiency: By increasing the density of information within existing entries rather than simply increasing TLB size, STAR provides a power- and area-efficient solution to the isolation problem.
Conclusion
The L3 TLB is a critical yet often overlooked bottleneck in multi-instance GPU environments. By enabling sub-entry sharing, the STAR architecture effectively rescues wasted hardware slots and provides the necessary isolation to prevent inter-tenant interference. This approach offers a scalable and efficient path forward for improving GPU utilization in modern, multi-tenant data centers.
Summary updated