Graphics Processing Units (GPUs) leverage massive parallelism and large memory bandwidth to support high-performance computing applications, such as multimedia rendering, crypto-mining, deep learning, and natural language processing. These applications require models and datasets that are getting bigger in size and currently challenge the memory capacity of a single GPU, causing substantial performance overheads. To address this problem, a programmer has to partition the data and manually transfer data in and out of the GPU. This approach requires programmers to carefully tune their applications and can be impractical for workloads with irregular access patterns, such as deep learning, recommender systems, and graph applications. To ease programmability, programming abstractions such as unified virtual memory (UVM) can be used, creating a virtually unified memory space across the whole system and transparently moving the data on demand as it is accessed. However, UVM brings in the overhead of the OS involvement and inefficiencies due to generating many transfer requests especially when the GPU memory is oversubscribed. This paper proposes GPUVM, a GPU memory management system that uses an RDMA-capable network device to construct a virtual memory system without involving the CPU/OS. GPUVM enables on-demand paging for GPU applications and relies on GPU threads for memory management and page migration. Since CPU chipsets do not support GPU-driven memory management, we use a network interface card to facilitate transparent page migration from/to the GPU. GPUVM achieves performance up to 4x higher than UVM for latency-bound applications while providing accessible programming abstractions that do not require the users to manage memory transfers directly.
Deep Learning based Data Prefetching in CPU-GPU Unified Virtual Memory
统一虚拟内存(UVM)支持CPU内存和GPU内存之间的按需数据移动,从而减轻了开发人员维护复杂数据结构和显式数据迁移的负担。然而,按需分页很快成为UVM的性能瓶颈,由于页表遍历和互连上的数据迁移引起的高延迟。预取被认为是一个很有前途的解决方案,这个问题的能力,利用程序的内存访问模式的局部性。然而,现有的基于位置的预取方案不能处理所有的情况。%像数组这样的数据结构倾向于存储在连续的块中,并重复访问。一个理想的预取器不仅应该查看所请求的地址空间的狭窄区域,而且还应该捕获全局上下文以提供对存储器访问模式的良好预测。提出了一种基于深度学习的UVM页面预取方法。我们首先展示了一个强大的Transformer学习模型可以为UVM页面预取提供高精度。然后,我们执行分析来解释这个Transformer模型,并得出一些见解,使我们能够设计一个更简单的模型,以匹配无约束模型的精度与数量级更低的成本。我们评估这个简化的模型上的一组11个内存密集型的基准测试,从流行的基准套件。我们的解决方案优于最先进的UVM框架,将性能提高了10.89%,将设备内存页面命中率提高了16.98%(89.02%,而现有技术为76.10%),并将CPU-GPU互连流量减少了11.05%。根据我们提出的统一指标,它结合了准确性,覆盖率和页面命中率,我们的解决方案比最先进的设计更接近理想的预取方案(0.90 vs. 0.85,完美…
Predictive-LoRA: A Proactive and Fragmentation-Aware Serverless Inference System for LLMs
University of Illinois at Urbana–Champaign(伊利诺伊大学厄巴纳-香槟分校);Santa Clara University(圣克拉拉大学);New York University(纽约大学);University of Southern California(南加州大学);University of Missouri–Kansas City(密苏里大学堪萨斯城分校);Boston University(波士顿大学)
eLLM: Elastic Memory Management Framework for Efficient LLM Serving
Shanghai Jiao Tong University(上海交通大学);Shanghai Qi Zhi Institute(上海人工智能实验室);University of Science and Technology of China(中国科学技术大学);National University of Singapore(新加坡国立大学)