Skip to content

GPU MEMORY MANAGEMENT SYSTEM WITH DEFERRED BUFFER REUSE FOR WEBGPU

2026 · RSUH/RGGU Bulletin. Series Information Science. Information Security. Mathematics · pp. 72-93 · 0 citations

TL;DR

The paper proposes an architecture that includes separate allocators for storage buffers and readback buffers, a mechanism for deferred return of buffers to the free-resource pool after synchronization, a best-fit reuse strategy, eviction of unused buffers based on an LRU approach, and a separate metadata arena for compact transfer of compute-kernel parameters.

Abstract

This paper considers a GPU memory management system developed for an experimental tensor-computation framework based on WebGPU. The relevance of the work is driven by the growing interest in running machinelearning workloads outside the CUDA ecosystem, including in browser-based and cross-platform environments, where WebGPU provides unified access to GPU computing capabilities through modern native graphics APIs. It is shown that the efficiency of tensor computations in such an environment is determined not only by the performance of compute shaders, but also by the organization of the GPU buffer lifecycle, buffer reuse, CPU–GPU synchronization, and the handling of auxiliary metadata. The paper proposes an architecture that includes separate allocators for storage buffers and readback buffers, a mechanism for deferred return of buffers to the free-resource pool after synchronization, a best-fit reuse strategy, eviction of unused buffers based on an LRU approach, and a separate metadata arena for compact transfer of compute-kernel parameters. Particular attention is paid to adapting known memory-management approaches used in CUDA-oriented machine-learning frameworks to the constraints of WebGPU and its asynchronous command-execution model. The experimental evaluation was performed on the task of training an MLP model on the MNIST dataset using an NVIDIA GeForce RTX 5070 GPU. The obtained results show that the proposed system improves average performance by 20.72 % compared with a naive implementation without buffer caching. In addition, the influence of the max_ttl parameter on the number of new allocations and memory reuse operations is analyzed. The results demonstrate that, when configured properly, the system forms a stable “hot cache” and substantially reduces the number of costly GPU-buffer creation operations. The proposed approach can be used in the development of portable machine-learning frameworks based on WebGPU, especially for devices with limited resources.

View source

Similar papers

Preprint Oct 2026

Fast and Memory Efficient Offload Training Framework with Hybrid XPU Computation

This paper designs and implements MemFerry, a novel hybrid on-GPU and DHA model that offloads gradients to CPU memory via DHA, and extends it to emerging scale-up domains with ScaleUp-MemFerry, which exploits otherwise underutilized accelerator interconnect bandwidth to assist host-to-accelerator data movement through...

Zhi-Yi Yao, Zu-Ning Liang, Yue-Dong Xu et al. · 0 citations
Preprint Oct 2026

Understanding NVIDIA Grace-Blackwell Unified Memory Through Placement-Controlled Microbenchmarks

NVIDIA Grace--Blackwell systems make CPU--GPU memory increasingly unified at the programming level, but unified addressability does not make the memory system uniform. A CUDA managed allocation on GB200 may be served from GPU-local HBM, accessed through host/system memory, demand-migrated, prefetched, reused after GPU...

Nathan Graddon, Aaron Jarmusch, Sunita Chandrasekaran · 0 citations

EMA: Elastic and Performance Transparent Memory Across GPUs

This work presents EMA, a memory sharing system that allows GPUs within a server to borrow and reclaim memory from each other, forming an elastic pool of capacity, and ensures performance transparency for both borrowers and lenders.

Yi Xu, Tian Xia, Ion Stoica · 0 citations
Preprint Oct 2026

Ember: Making Unified Virtual Memory Practical for Discrete-Memory GPUs

Ember is presented, a UVM management framework for oversubscribed workloads that is implemented within NVIDIA's open-source UVM driver for unmodified applications and as a userspace variant on stock CUDA.

Senad-Leandro Lemes Galera, Michail Georgoulakis Misegiannis, Ferdinand Gruber et al. · 0 citations
Book Open access Sep 2026

Bridging CPU and GPU I/O with a Device-Resident File System

Modern AI and data analytics workloads have terabyte-scale datasets, making GPUs access storage frequently. GPUDirect Storage allows the data path from SSD to GPU to bypass CPU memory. However, the file system shared by the CPU and GPU still runs on the CPU. Existing GPU file systems cache metadata to avoid frequent ac...

Qi Chen, Guan-Yi Chen, Yu-Jie Ren et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.