Live data from Hacker News

Use your Nvidia GPU's VRAM as swap space on Linux

github.com

11–20 of 142 posts

Re: Use your Nvidia GPU's VRAM as swap space on Linux

#15

I'm more interested in the opposite. Nvidia linux drivers crash when you try to address more VRAM than you have. It'd be nice if they didn't.

They already do that on windows and it kinda sucks. If you are targeting something like LMStudio or ComfyUI, both of those have superior methods to do exactly this.

Re: Use your Nvidia GPU's VRAM as swap space on Linux

#17
Nice idea, but something has gone very wrong here:

>Sequential throughput: ~1.3 GB/s

[on a RTX 3070 Laptop]

This RTX 3070 chip is on PCIe 4.0 x16 which should give 64GB/s. The 8GB of GDDR6 is 448GB/s.

Swapping to an NVMe drive would be twice as fast, but with higher latency.

Re: Use your Nvidia GPU's VRAM as swap space on Linux

#20

Remember 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.

Possibly LSM compaction.
Post reply on HN