Manuscript Offprint

arXiv:2610.13408

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

Senad-Leandro Lemes Galera, Michail Georgoulakis Misegiannis, Ferdinand Gruber, Jana Giceva, Dimitrios Stavrakakis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Senad-Leandro Lemes Galera ∗^{*}

Technical University of Munich

Munich, Germany

senad.lemes@tum.de

Michail Georgoulakis

Misegiannis ∗^{*}

Technical University of Munich

Munich, Germany

geom@in.tum.de

Ferdinand Gruber

Technical University of Munich

Munich, Germany

gruberfe@in.tum.de

Jana Giceva

Technical University of Munich

Munich, Germany

jana.giceva@in.tum.de

Abstract

GPU working sets have outgrown GPU memory, so applications must oversubscribe it, keeping only hot data on the GPU. NVIDIA's Unified Virtual Memory (UVM) supports oversubscription, but its performance degrades once data exceeds the GPU's memory. This stems from its fault-driven data placement, wasting interconnect bandwidth, and underutilizing the GPU. This raises the question: can UVM oversubscription become practical on stock GPUs, exploiting GPU memory speed and minimizing wasted interconnect bandwidth, without placement hints, profiling runs, or application changes?

To this end, we present EMBER, a UVM management framework for oversubscribed workloads. EMBER introduces a hybrid address space; allocations start as mapped into host memory, omitting data migration. EMBER's counter-driven region promotion uses GPU's hardware counters to fetch hot regions to the GPU, its decay-based eager reclamation proactively evicts cold regions in batches, while via online region re-placement, EMBER tracks the hot set at runtime.

We implement EMBER within NVIDIA’s open-source UVM driver for unmodified applications and as a userspace variant on stock CUDA. At 1.5×1.5\times oversubscription, it is 6.8−10.6×6.8-10.6\times faster than UVM on six applications across three PCIe GPUs, and generates LLM tokens 4.7−16×4.7-16\times faster at sizes where manual placement cannot run at all. Without a profiling run, it beats a profile-guided alternative by 2.1×2.1\times on kernel time.

1 Introduction

GPUs have become the primary platform for data-intensive workloads [3, 11, 22, 24, 62]. Their working sets are increasingly outgrowing GPU memory at a fast pace [6, 29, 54]. For instance, over the last few years, the largest models grew by ∼1000×\sim1000\times while GPU memory only by ∼5×\sim5\times [49]. Provisioning larger GPUs, or scaling out across more of them [31], raises monetary cost [12] without removing this ceiling, and in shared clusters each tenant receives only a fraction of one

Dimitrios Stavrakakis

Technical University of Munich

Munich, Germany

dimitrios.stavrakakis@tum.de

Figure

Working set [GiB]

Figure 1. UVM performance collapse past the VRAM line (H200 capped to 16 GiB, GPU sort over scattered data).

GPU’s memory [15, 50, 61]. Therefore, applications must oversubscribe GPU memory, keeping a subset of their data on the GPU and serving the rest from host memory over the interconnect, since otherwise they cannot run at all once their data exceeds device memory [43].

To simplify GPU memory management, NVIDIA introduced Unified Virtual Memory (UVM) [41], which places CPU and GPU memory in a single virtual address space and implicitly transfers data between them. Since UVM pages data into the GPU on demand, an allocation may also exceed the device memory, allowing applications to oversubscribe the GPU. Unlike manual data placement, which couples an application to a specific memory layout and requires rewriting per application and GPU generation [6, 39, 53], UVM lets host and GPU share pointer-based structures [42, 55]. By default, a GPU access to a non-resident page raises a page fault and the driver must migrate the page into GPU memory before the access can complete, with later accesses served at device-memory bandwidth. UVM also allows developers to prefetch a range into the device, or map it so the GPU reads host memory directly at interconnect speed.

Despite the benefits, UVM sees little adoption for working sets exceeding GPU memory, as performance collapses once the GPU capacity line is crossed. Figure 1 shows a GPU sort whose runtime grows from 4.1 s to 1150 s at 1.5×1.5\times oversubscription. Thus, production systems either manually orchestrate the placement policies [6] or disable UVM [47], with vendors recommending steering placement by hand [19, 55].

Making UVM practical beyond device memory has four obstacles ( §3§3). First, UVM suffers from reclamation-induced

∗^{*}Both authors contributed equally to this research.

execution stalls (C1). Once the device memory is full, a page fault must also reclaim a device-resident page before the driver migrates the new one, and the reclaimed pages may become the next faults. This cycle runs on the critical path, stalling computation. Architectural proposals shorten this path [7, 17, 33, 40, 67, 69, 71], but they rely largely on simulations or on features absent from commodity GPUs.

Second, to reduce page faults, developers can map a memory range so that the GPU accesses host memory directly. However, memory requests are then served over the interconnect, leading interconnect-bound mapped access (C2). Thus, mapping alone cannot resolve UVM's performance issues.

Third, to leverage GPU memory performance, UVM allows the programmer to selectively prefetch data. However, beyond the VRAM capacity, every transfer must first evict pages to free up space on the device. Prefetching moves up to ∼1.5×\sim1.5\times the amount of data that the default UVM does, trading faults for prefetch-amplified reclamation traffic (C3). Hence, prefetching only defers UVM's performance collapse.

Fourth, while mapping and prefetching can be combined through placement hints, there is no principled rule specifying which to apply where, and a wrong hint can degrade performance [2, 14, 28]. A hint also applies to a whole managed allocation and must be given before launch. However, access patterns shift during runtime [64, 65], leading to stale, allocation-granular placements (C4). Prior work either fixes placement before the run and per allocation [25, 49, 53], or decides at runtime but still migrates by default, mapping only as a fallback, so reclamation stays on the critical path [60].

Research question: Can UVM oversubscription become practical on stock GPUs, exploiting GPU memory speed, minimizing wasted interconnect bandwidth, without placement hints, profiling runs, or application changes?

To answer this question, we present EMBER, a GPU memory management framework designed for oversubscribed workloads. Our key insight is that mapping should be the default, not a fallback. Concretely, EMBER decides which regions leave device memory and when, reclaiming cold regions in batches before memory fills, avoiding computation stalls (C1). Underneath, it builds a mapped-by-default hybrid address space, in which every allocation starts as mapped and is reachable from the GPU without migration (C2). Only hot regions are promoted to GPU memory, either as advised by the developer in userspace or as reported by the GPU's hardware access counters in the kernel (C3). The split is also re-evaluated at runtime, demoting regions whose demand has decayed and promoting those that become hot (C4).

We implement two variants of EMBER: EMBER-static, a userspace variant on stock CUDA that fixes the data split at allocation time, and EMBER-adaptive, a patch to NVIDIA's open-source UVM kernel module that decides the split online and transparently supports unmodified applications. We

① ② faults on leaves 0 and 1 root at 2/4: nothing happens

Figure

brought in by a fault

③ fault on leaf 2

root at 3/4 > 50%

prefetched

not resident

Figure 2. Default TBN prefetching mechanism [17].

evaluate EMBER on four GPUs, covering three common deployment settings, across three workload classes. At 1.5× oversubscription, it reaches a geometric-mean speedup of 6.8–10.6× over naive UVM across six applications, sustains LLM generation at 4.7–16× the throughput of UVM at model sizes exceeding the GPU memory capacity, and outperforms profile-guided placement by 2.1× without a profiling run. Contributions. This paper makes four contributions:

• UVM performance analysis. We show the page reclamation effect behind UVM performance issues, and that mapping or prefetching alone is not enough ( §3§3).

• Hybrid data placement. We design a mapped-by-default hybrid address space that assigns residency per region instead of per allocation, turning eviction from a permanent cost of oversubscription into a policy decision ( §4§4, §5§5).

• Counter-driven runtime data placement. We derive the data split from the GPU’s hardware access counters, and revise it while kernels run, demoting and promoting regions with no application changes ( §5§5, §6§6).

• Implementation & evaluation. We implement EMBER’s variants, and evaluate them using four discrete GPUs ( §7§7).