Reproduce “GMLake: Efficient and Transparent GPU Memory Defragmentation for Large-scale DNN Training with Virtual Memory Stitching” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Cong Guo, Rui Zhang, Jiale Xu, Jingwen Leng, Zihan Liu, Ziyu Huang, Minyi Guo, Hao Wu and 3 more

GMLake is a memory allocation framework that utilizes GPU virtual memory stitching to efficiently defragment memory for large-scale DNN training, transparently integrating with existing deep learning frameworks. It reduces average GPU memory usage by 9.2 GB and the fragmentation ratio by an average of 15%, enabling larger models and batch sizes without substantial performance overhead.

Key insights

  • Low-level GPU virtual memory management primitives can be effectively used to perform system-level memory defragmentation, making fragmented physical memory usable.
  • Building a caching memory pool around these VMM primitives is crucial for reducing the high overhead of direct VMM API calls, making the approach practical for dynamic deep learning workloads.
  • The periodic and predictable memory access patterns in DNN training allow GMLake to quickly stabilize memory utilization and amortize the cost of stitching operations after initial iterations.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.