Linux Gaming Gets Smarter: A Simple Fix for 8 GB Graphics Cards
A Valve developer has just made it easier to run games on Linux with 8 GB cards, offering a vital solution for gamers facing hardware limitations. Natalie Vock, a dedicated Linux developer for Valve, recently pushed a simple fix to GitHub that allows rigs with less VRAM to run titles significantly better. The issue stems from how applications in Linux tend to hog all available resources; however, if you are running an Arch-based distro on an 8 GB card, the situation is about to improve dramatically. To implement this change effectively, users will need some kernel patches as well as additional utilities designed to make use of these new kernel capabilities properly.
Tackling VRAM Overload with Kernel Patches
Vock explains that during extensive testing, their system frequently attempted to "use more VRAM than there was available at all," creating a critical bottleneck. Traditionally, the kernel would simply tell an app that memory allocation failed, which leads to near-certain application crashes. Instead, the updated approach kicks some memory out of VRAM to make everything fit, but Vock notes this degrades performance significantly because the driver treats all memory as identical without distinguishing priorities.
To solve this, the fix utilizes cgroups to "protect" specific uses of memory and intelligently figures out "how relatively important GPU memory allocations are." This ensures that critical game processes aren't evicted prematurely, allowing for a more stable experience even when resources are tight. The goal is to stop performance from slowly degrading over time, ensuring games run much more stably as long as the title does not exceed your actual VRAM capacity.
How to Install the Fix on Arch-Based Systems
To get these benefits, Vock recommends using the Arch-based distribution CachyOS and installing two specific packages: dmemcg-booster and plasma-foreground-booster. Once these utilities are in place, your games should start running smoother on graphics cards with 8 GB of VRAM. If you aren't currently on CachyOS, the package files are still available in the AUR (Arch User Repository).
Users can install them via:
- The CachyOS kernel package on a non-CachyOS system that has access to the repository.
- By compiling your own kernel manually if you prefer full control over your build process.
Future Implications for Steam Machines and Memory Costs
Vock advises users who do not use an Arch-based distro to "Maybe wait a bit," noting that they expect this fix to trickle down into more distributions eventually. The developer has also clarified plans to update the GitHub repository whenever other major distros successfully implement the trick, ensuring broader compatibility over time. This timing is crucial given the current memory crisis threatening to raise prices for memory, storage, and GPUs further.
Holding out with a slightly older card should now be a tad easier if you are on Linux, avoiding the need for an expensive upgrade during this inflationary period. Furthermore, with the upcoming 8 GB Steam Machine expected to launch in the future powered by Arch-based SteamOS, one can assume it will see immediate benefits from this optimization. It might just be why a Valve developer was looking into these specific memory management issues in the first place.