!hzgkCxLtCOTmFXGauj:nixos.org

NixOS Gaming

532 Members
Gaming things, my hands are typing words.149 Servers

Load older messages


SenderMessageTime
9 Apr 2026
@k900:0upti.meK900So an application can be given more real-VRAM allocation15:54:23
@anji:mtux.nlanjiOn Windows that prioritization can be per allocation, with various heuristics in UMD, KMD and vidmm itself.15:59:11
@k900:0upti.meK900This is already a thing on Linux as well15:59:31
@k900:0upti.meK900Mesa and the kernel both have heuristics on what to evict15:59:41
@k900:0upti.meK900And what to allocate where15:59:46
@anji:mtux.nlanjiYeah it makes sense. Just from that blog post "The real problem is that to the kernel driver, all memory looks the same. The kernel doesn’t know if it’s dealing with a highly-important object from a game or a static image from a random web app running in the background - all it sees is a list of buffers. As long as all buffers look the same, it is impossible to have the same approach work well for every one of all the wildly different situations a driver may encounter."15:59:51
@k900:0upti.meK900The kernel doesn't know which processes are more important16:00:17
@anji:mtux.nlanjiI guess "the kernel" here just means the lower level mechanics not Mesa/dmemcg etc16:00:25
@k900:0upti.meK900Neither does Mesa really16:00:33
@k900:0upti.meK900The reason you need the KDE glue is because the desktop environment is what actually knows that information16:00:51
@anji:mtux.nlanjiWhat is foreground yes. But internal prioritization mostly depends on the work submission, resource types, etc. UMD/KMD stuff.16:02:10
@k900:0upti.meK900The kernel does know and use that16:02:43
@anji:mtux.nlanjiRegardless foreground application prioritization really is the most essential. So I hope all that can come together soon16:02:45
@anji:mtux.nlanjiWhat system in the kernel does this? As far as I know dmemcg is just a small set of APIs to control vram priorization in regions? It's not a full system level memory manager is it?16:05:41
@k900:0upti.meK900It's not, the actual eviction heuristics are in the drivers16:06:17
@anji:mtux.nlanjiRight. So different drivers have to make different prioritization decisions without necessarily seeing the total system picture.16:06:48
@anji:mtux.nlanjiWhich is different than vidmm16:06:55
@anji:mtux.nlanjiI'm not arguing Linux necessarily needs such a complex video memory manager btw. Just trying to understand what is currently there and how it works. And it's cool to see progress here, because vram overcommit is/was pretty bad.16:13:17
@niklaskorz:matrix.orgniklaskorz The Nvidia open kernel modules support Linux heterogenous memory management but I don't know if this automatically entails memory eviction from vram to ram 23:17:43
10 Apr 2026
@ccicnce113424:matrix.orgccicnce113424 https://github.com/NixOS/nixpkgs/pull/498612 | nixos/nvidia, linuxPackages.nvidia-x11: split proprietary kernel modules, use source-built ICDs, write params via modprobe Can you have a look? 09:07:01
@k900:0upti.meK900You probably want to talk to the CUDA folks for this tbh09:07:53
@k900:0upti.meK900They're de facto the ones in charge of the Nvidia proprietary stack09:08:01
@niklaskorz:matrix.orgniklaskorzGaetan already reviewed it09:08:13
@niklaskorz:matrix.orgniklaskorzwell, at least he reacted on the PR09:08:35
@k900:0upti.meK900I mean they should still be the ones to merge it probably09:10:11
@niklaskorz:matrix.orgniklaskorzagreed, I've request the team for review on the PR09:10:59
@niklaskorz:matrix.orgniklaskorz* agreed, I've requested the team for review on the PR09:11:15
@niklaskorz:matrix.orgniklaskorz I'll also smoke test the changes on my system in a moment 09:15:31
@k900:0upti.meK900 I don't have Nvidia hardware 09:17:14
@k900:0upti.meK900 So I can't help here 09:17:19

Show newer messages


Back to Room ListRoom Version: 10