Use your Nvidia GPU's VRAM as swap space on Linux
1–10 of 142 posts
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#2I mean, cool, but I’d rather not?
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#3> Built for laptops with soldered memory and no upgrade path. If you have an RTX card sitting there with 8GB of VRAM and you're getting swapped to SSD, this puts that VRAM to work.
Well, that does at least answer my immediate question about why I would ever swap from expensive RAM to really expensive RAM:) Feels niche, but when you want it it's a good idea.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#4Q: Why?
A: Why not?
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#5[dead]
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#6I mean, cool, but I’d rather not?
So, erm, don't?
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#7Given my dev machine has 32GB of RAM and 32GB of VRAM that sits mostly idle when I'm not running AI models, this is not that bad of an idea.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#8I mean, cool, but I’d rather not?
Wouldn't it be faster to swap to vram if you are sitting there with 8gigs of it unused than swapping to ssd and burning its write cycles, assuming you absolutely need swap
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#9I mean, cool, but I’d rather not?
So don't. Not everything is for you.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#10Remember how 16GBs used to be an enterprise level database mainframe?
Well, GPUs also have stupid amounts of compute on them. I have to imagine that there is some kind of database format that's useful with GPU compute attached.
Since the data is already in VRAM, the GPU can sort, join, or otherwise manipulate data as needed.