Earlier quoted context omitted.
Another possible reason that occurred to me: what if you have VRAM but you're not using it all the time? For example, let's say you bought a GPU because you like to play video games. When you're not actively gaming, you probably don't need 16 GB of VRAM just to render the desktop. Might as well use it for something else, right? Edit: Although, this is predicated on the system being able to release VRAM that is acting…
> you probably don't need 16 GB of VRAM just to render the desktop Microsoft: hold my beer
Use your Nvidia GPU's VRAM as swap space on Linux
131–140 of 142 posts
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#132Earlier quoted context omitted.
Actually not that crazy of a spread. E.g. I have 48 GB + 32 GB in my gaming PC because if you go beyond 48 GB you start having to trade off more and more performance to keep the memory controller from falling over, so you really have to have a good reason to want to load more. Server platforms, like Epyc, it tends not to matter as much because you have so many channels for bandwidth and a beefier memory controller to…
I’ve got 64GB with a 3950x working great, although the speeds are not high. Just 3200MHz, IIRC.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#133Earlier quoted context omitted.
Actually not that crazy of a spread. E.g. I have 48 GB + 32 GB in my gaming PC because if you go beyond 48 GB you start having to trade off more and more performance to keep the memory controller from falling over, so you really have to have a good reason to want to load more. Server platforms, like Epyc, it tends not to matter as much because you have so many channels for bandwidth and a beefier memory controller to…
What's this trade off about? I thought it was a simple 2 dims are probably better than 4, but unsure how you'd ever land on 48?
You can go up to 64 GB per DIMM on the current consumer offerings (max of 256 GB total across 4 DIMMs). So you could could 128 GB over 2 DIMMs, but it's still going to perform worse than 2x24 GB or 2x16 GB.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#134Earlier quoted context omitted.
What's this trade off about? I thought it was a simple 2 dims are probably better than 4, but unsure how you'd ever land on 48?
Not that simple. 4 dimms were getting higher clocks on 2 CCD Ryzen models (12 & 16 cores) compared to those with one CCD. Motherboard topology is a factor too.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#135Re: Use your Nvidia GPU's VRAM as swap space on Linux
#136Earlier quoted context omitted.
You mean Chrome? (Looking at the 5GiB usage here...)
Google Chrome is using 5 GB of VRAM ?! Are you running something with WebGPU or something?
At 4k it adds up, especially since if you look into DevTools Chrome actually renders more at least vertically if not across major scroll regions.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#137Earlier quoted context omitted.
So can VRAM actually be used like regular RAM? E.g. if I have a 16GB module and my GPU has 16GB VRAM, could it be made so that my system reports 32GB RAM? What would be the implications of that?
Typical desktop GPU ram does not support being write-back cached by the CPU. With PCIe resizable BAR, you could map the area into ram, so you could technically fit 32GB to memory, but it would have to be uncached (or write-combine cached), which would make it really, really slow. There are a bunch of datacenter GPUs that support full cache coherency, but if you used them like that the VRAM would be very high latency…
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#138Re: Use your Nvidia GPU's VRAM as swap space on Linux
#139Re: Use your Nvidia GPU's VRAM as swap space on Linux
#140The catch is volatility: one CUDA process reclaims the VRAM, and your swap just evaporates.