Use your Nvidia GPU's VRAM as swap space on Linux
81–90 of 142 posts
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#82Earlier quoted context omitted.
this is the pcmasterrace equivalent of being all upper body and with scrawny legs lol
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 thought it was a simple 2 dims are probably better than 4, but unsure how you'd ever land on 48?
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#83The kernels job is to manage resources - and GPU ram is one such resource, and it can be used for many of the same uses as regular ram.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#84Remember 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.
Can we somehow make them work with 1 TB PCIes so we can churn through way more data?
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#85Does anyone these days really use swap for anything than S4 suspend ?
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#86Earlier 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?
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#87Earlier 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?
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#88Earlier quoted context omitted.
Swapping to a NVMe will also consume PE cycles on your NAND, ie wearing it out over time. RAM/VRAM don’t degrade from use.
flash is a consumable, yes. but flash endurance isn't a strong argument here. you probably have O(TB) of flash, and aren't going to produce PB of swap writes any time soon. if you do a lot of swapping to a small flash device, it'll happen sooner. I'm typing from a quite old 4GB laptop, which swaps heavily to a 250G SATA ssd. sure, it's not great, but it also costs zero. currently 9GB of swap is used, and it's not rea…
All of this is to say that, it does have a potential impact on flash, if you rebuild often, which tends to happen on Gentoo.
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#89Earlier quoted context omitted.
this is the pcmasterrace equivalent of being all upper body and with scrawny legs lol
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…
Re: Use your Nvidia GPU's VRAM as swap space on Linux
#90Earlier quoted context omitted.
Can we somehow make them work with 1 TB PCIes so we can churn through way more data?
linux has P2P-DMA for this. The drivers, devices and bus topology need to support it though. https://docs.kernel.org/driver-api/pci/p2pdma.html