If you've ever watched a Linux game stutter because background apps were hogging your GPU's limited video memory, relief is on the way. Natalie Vock, a Valve engineer who works on the RADV Vulkan driver, has developed a set of Linux kernel and KDE Plasma patches that fundamentally change how the system allocates dedicated VRAM, ensuring foreground games get priority access over everything else running on the desktop. The patches are already available on CachyOS for an easy out-of-the-box experience, with upstream integration expected to follow.
On the kernel side, the work introduces DRM device memory cgroup controller support alongside changes to the TTM memory management subsystem that govern how allocations and evictions are handled. Two new user-space packages complete the picture: dmemcg-booster, a systemd service that enables and controls DMEM cgroup limits for foreground games, and plasma-foreground-booster, a KDE Plasma component that automatically prioritizes VRAM for whichever application is in the foreground. For users not running KDE, newer versions of Valve's Gamescope compositor offer the same functionality.
The practical impact is most noticeable on GPUs with around 8 GB of dedicated VRAM, where spilling allocations to system memory via the GTT is common. Under the current default behavior, game allocations can end up displaced to slower system memory while lower-priority background processes sit comfortably in VRAM. Vock's patches flip that dynamic, and the results speak for themselves. In a detailed blog post, she demonstrates Cyberpunk 2077 running via Steam Play on an 8 GB card with markedly improved stability. For now CachyOS is the simplest path to trying this out, but the kernel patches and KDE components should eventually land upstream, bringing smarter VRAM management to every Linux distribution.