Better Linux Gaming New dmem cgroup Patch Prioritizes VRAM for Your Favorite Games.
Natalie Vock, a computer science student at the University of Konstanz and a contractor for Valve’s AMD GPU driver team, has developed a transformative Linux kernel patch. The update aims to significantly improve gaming performance on systems with limited video memory (VRAM), specifically targeting the common 8GB VRAM threshold.
The Problem: The VRAM "Eviction" Loop
Currently, the Linux kernel manages VRAM by fulfilling requests from various applications. When VRAM is exhausted, the system offloads data to the GTT (Graphics Translation Table) a portion of system RAM accessible by the GPU. While functional, GTT has much lower bandwidth than VRAM.
Furthermore, the kernel often performs "evictions," kicking data from one app out of VRAM to make room for another to ensure fairness. While this works for desktop multitasking, it is devastating for gaming performance, causing stuttering as assets are constantly swapped between fast VRAM and slow system RAM.
The Solution: Prioritizing Games via cgroups
Vock’s solution involves a new "dmem cgroup controller" (building on earlier work by Intel engineer Maarten Lankhorst). By utilizing cgroups, a standard Linux kernel feature for resource management, the system can now assign priority levels to specific applications.
This allows a game to be flagged as a "high-priority" process, making it resistant to being evicted from VRAM. In testing with Cyberpunk 2077, this patch allowed the game to maintain a larger VRAM footprint on an 8GB card, reducing reliance on the slower GTT and resulting in much smoother gameplay.
Compatibility Status
The patch is currently compatible with AMD and Intel Xe GPUs. While NVIDIA’s proprietary drivers do not yet support it, Vock has submitted the patch to the open-source nouveau driver project and is awaiting upstream approval.
Natalie Vock's work for Valve is significant because devices like the Steam Deck and other handheld devices often have limited memory shared between the CPU and GPU. This patch will help these machines run AAA games more stably without relying on more expensive hardware.
In an era where 12GB or 16GB of VRAM is becoming the standard, having software that intelligently manages resources will help extend the lifespan of mid-range graphics cards (such as the RTX 3060/4060 or RX 6600/7600), allowing them to continue playing newer games without sacrificing enjoyment.
This patch shifts Linux's philosophy from "fairness" to "prioritization," a direction the Linux gaming community (such as Project Proton and Wine) has been pushing for to make Linux a true gaming operating system.
Reducing reliance on GTT not only improves speed but also reduces data transfer latency. This, combined with technologies like Resizable BAR, improves the speed of in-game asset streaming and significantly reduces texture popping.
ASML Raises 2026 Revenue Target to €40B as AI Demand Outpaces Global Chip Supply.
Source: Tom's Hardware

Comments
Post a Comment