共享虚拟内存:其设计及对多样化应用的性能影响
Shared Virtual Memory: Its Design and Performance Implications for Diverse Applications
AI总结:
本文细粒度剖析AMD GPU的Shared Virtual Memory设计及其与应用访问模式的交互,揭示超额订阅下激进预取与驱逐策略导致的颠簸瓶颈,并提出缓解算法与设计改进。
摘要:
离散GPU加速器虽然为超级计算机和数据中心提供了巨大的计算能力,但拥有独立的内存域。在编程中跨设备域和主机域进行显式内存管理既繁琐又容易出错。为了提高编程可移植性和生产力,Unified Memory(UM,统一内存)将GPU内存集成到主机虚拟内存系统中,并在二者之间提供透明的数据迁移以及GPU内存超额订阅。然而,当前的UM技术会给应用带来显著的性能损失。随着AMD GPU越来越多地被集成到世界领先的超级计算机中,有必要理解其Shared Virtual Memory(SVM,共享虚拟内存)并缓解性能影响。在本工作中,我们深入研究SVM设计,以细粒度考察其与应用数据访问的交互,定量分析其对各种应用的性能影响,并识别性能瓶颈。研究表明,SVM对按需分页采用了激进的预取策略。当GPU内存未超额订阅时,这种预取是高效的。但在超额订阅情况下,它与驱逐策略协同作用,会导致某些应用出现过度的颠簸和性能下降。我们讨论了感知SVM的算法以及SVM设计变更,以缓解性能影响。据我们所知,本工作是首个针对SVM技术的深入而全面的研究。
英文摘要:
Discrete GPU accelerators, while providing massive computing power for supercomputers and data centers, have their separate memory domain. Explicit memory management across device and host domains in programming is tedious and error-prone. To improve programming portability and productivity, Unified Memory (UM) integrates GPU memory into the host virtual memory systems, and provides transparent data migration between them and GPU memory oversubscription. Nevertheless, current UM technologies cause significant performance loss for applications. With AMD GPUs increasingly being integrated into the world's leading supercomputers, it is necessary to understand their Shared Virtual Memory (SVM) and mitigate the performance impacts. In this work, we delve into the SVM design, examine its interactions with applications' data accesses at fine granularity, and quantitatively analyze its performance effects on various applications and identify the performance bottlenecks. Our research reveals that SVM employs an aggressive prefetching strategy for demand paging. This prefetching is efficient when GPU memory is not oversubscribed. However, in tandem with the eviction policy, it causes excessive thrashing and performance degradation for certain applications under oversubscription. We discuss SVM-aware algorithms and SVM design changes to mitigate the performance impacts. To the best of our knowledge, this work is the first in-depth and comprehensive study for SVM technologies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。