The global scarcity of GPUs necessitates more sophisticated strategies for Deep Learning jobs in shared cluster environments. Accurate estimation of how much GPU memory a job will require is fundamental to enabling advanced scheduling and GPU sharing, which helps prevent out-of-memory (OOM) errors and resource underutilization. However, existing estimation methods have limitations. Approaches relying on static analysis or historical data with machine learning often fail to accurately capture runtime dynamics. Furthermore, direct GPU analysis consumes scarce resources, and some techniques require intrusive code modifications. Thus, the key challenge lies in precisely estimating dynamic memory requirements, including memory allocator nuances, without consuming GPU resources and non-intrusive code changes. To address this challenge, we propose xMem, a novel framework that leverages CPU-only dynamic analysis to accurately estimate peak GPU memory requirements a priori. We conducted a thorough evaluation of xMem against state-of-the-art solutions using workloads from 25 different models, including architectures like Convolutional Neural Networks and Transformers. The analysis of 5209 runs, which includes ANOVA and Monte Carlo results, highlights xMem's benefits: it decreases the median relative error by 91% and significantly reduces the probability of estimation failure as safe OOM thresholds by 75%, meaning that the estimated value can often be used directly without causing OOM. Ultimately, these improvements lead to a 368% increase in memory conservation potential over current solutions.
Memory Centric Characterization and Analysis of SPEC CPU2017 Suite
在本文中,我们提供了一个全面的,以内存为中心的SPEC CPU 2017基准测试套件的特征,使用了多种机制,包括动态二进制插装,使用硬件性能计数器和基于操作系统的工具对本机硬件进行测量。我们提出了一些结果,包括工作集的大小,内存容量消耗和,各种工作负载的内存带宽利用率。我们的实验表明,SPEC CPU 2017工作负载是惊人的内存密集型,大约50%的动态指令是内存密集型指令。我们还表明,整个套件的内存占用和带宽利用率配置文件有很大的变化,一些基准测试使用多达16 GB的主内存和高达2.3 GB/s的内存带宽。我们还对该套件进行了指令执行和分布分析,发现SPEC CPU 2017工作负载的平均指令数比SPEC CPU 2006高一个数量级。此外,我们还发现SPEC 2017套件的FP基准测试具有更高的计算要求:平均而言,FP工作负载执行的计算操作数量是INT工作负载的三倍。
Optimizing CPU Cache Utilization in Cloud VMs with Accurate Cache Abstraction
Hofstra University(霍夫斯特拉大学);Columbia University(哥伦比亚大学);University of Rhode Island(罗德岛大学);New Jersey Institute of Technology(新泽理工学院);University of Texas at Austin(德克萨斯大学奥斯汀分校)