Building a swap device at user level used to be one of those classic unsolvable problems, because what if your daemon needs to swap in a page in order to swap in a page? Or at least it was discussed at a reason why microkernels will never work. I’m not sure what the solution is here.
Use your Nvidia GPU's VRAM as swap space on Linux
111–120 of 142 posts
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#112RAM disks have always fascinated me. In a different timeline every PC has a 100gb of RAM and 50TB HDDs are the norm.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#113Why does my Apple Sillicon Mac with 32gb of RAM use (or even create?!) a swapfile, when 20gb is still unused/"free"? Why can I not just enter a simple command to entirely-disable swapfile, like with Linux's: >>>>swapoff -a Seems kind of silly, unless the point is intentionally to wear-down the SSD's lifespan . Having a GUI swapfile-disable system preference would be awesome. It would also be awesome if Apple finally…
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#114Building a swap device at user level used to be one of those classic unsolvable problems, because what if your daemon needs to swap in a page in order to swap in a page? Or at least it was discussed at a reason why microkernels will never work. I’m not sure what the solution is here.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#115Re: Use your Nvidia GPU's VRAM as swap space on Linux
#116Earlier quoted context omitted.
I mean, if you aren’t using the car while using the boat and it won’t really damage the car… yes?
And when you use your car, then what?
The bandwidth is terrible here, but if it wasn’t, this would be a good utilization of resources.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#117Re: Use your Nvidia GPU's VRAM as swap space on Linux
#118Earlier quoted context omitted.
I am catching up on comments The reason I wrote this is I run this laptop in hybrid (AMD display + NVIDIA as swap). So all at VRAM was going to waste. On your question re: switchable swap. It's on my to-do list ;)
Wouldn't this prevent the nvidia GPU from being power gated since it's never "idle"? So like your battery life regresses?
So it will use more power, but nothing close to when the GPU is being used.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#119Earlier quoted context omitted.
I assume on Linux you could use something like daxctl to tell the kernel to treat the vRAM as normal RAM, but I think this would be Intel/AMD only.
I don't think it would help. It's not just a software issue that can be fixed in the kernel, the hardware fundamentally isn't part of the cache coherency system of the CPU.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#120Remember 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.
GPU-accelerated databases have a long history. I founded HeavyAI (previously MapD/OmniSci) in 2013, but there are or have been many other startups in this space, such as Voltron Data, Kinetica, Sqream, etc. And now you have major players like IBM, Starburst, and Microsoft (which just announced Fabric SQL on GPU today) working on their own GPU-accelerated systems. GPUs have a huge advantage in terms of compute, memory…
Where does a few more steps of evolution take us? A wide path between a few heavy devices, and then the CPU off to the side just orchestrating the data flow?