通过子条目共享 TLB 设计提升多实例 GPU 效率
Improving Multi-Instance GPU Efficiency via Sub-Entry Sharing TLB Design
AI总结:
针对NVIDIA MIG技术中L3 TLB共享导致的性能下降和子条目利用率低问题,提出STAR方法,通过跨多基地址动态共享TLB条目,使整体性能平均提升30.2%。
摘要:
NVIDIA 的 Multi-Instance GPU (MIG) 技术支持将 GPU 计算能力和内存划分为独立的硬件实例,提供包括计算资源、缓存和内存在内的完全隔离。然而,先前的研究指出,MIG 并未扩展到最后一级 TLB(即 L3 TLB)的划分,该 TLB 仍在所有实例间共享。为了提高 TLB 覆盖范围,NVIDIA GPU 重组了 TLB 结构,每个 L3 TLB 条目中包含 16 个子条目,这些子条目与位于同一 1MB 对齐范围内的 16 个大小为 64KB 的页面的地址转换一一映射。我们对 MIG 中地址转换效率的全面调查发现了由 L3 TLB 共享干扰引起的两个主要问题:(i) 它导致并发运行的应用程序性能下降,以及 (ii) TLB 子条目在被驱逐前未被充分利用。基于这一观察,我们提出了 STAR,通过跨多个基地址动态共享 TLB 条目来提高 TLB 子条目的利用率。STAR 根据子条目利用率评估 TLB 条目以优化地址转换存储,在共享和非共享状态之间动态调整以满足当前需求。我们表明,STAR 在各种多租户工作负载中将整体性能平均提升了 30.2%。
英文摘要:
NVIDIA's Multi-Instance GPU (MIG) technology enables partitioning GPU computing power and memory into separate hardware instances, providing complete isolation including compute resources, caches, and memory. However, prior work identifies that MIG does not extend to partitioning the last-level TLB (i.e., L3 TLB), which remains shared among all instances. To enhance TLB reach, NVIDIA GPUs reorganized the TLB structure with 16 sub-entries in each L3 TLB entry that have a one-to-one mapping to the address translations for 16 pages of size 64KB located within the same 1MB aligned range. Our comprehensive investigation of address translation efficiency in MIG identifies two main issues caused by L3 TLB sharing interference: (i) it results in performance degradation for co-running applications, and (ii) TLB sub-entries are not fully utilized before eviction. Based on this observation, we propose STAR to improve the utilization of TLB sub-entries through dynamic sharing of TLB entries across multiple base addresses. STAR evaluates TLB entries based on their sub-entry utilization to optimize address translation storage, dynamically adjusting between a shared and non-shared status to cater to current demand. We show that STAR improves overall performance by an average of 30.2% across various multi-tenant workloads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。