468 points by tanelpoder 4 days ago | 125 comments | View on ycombinator
yjftsjthsd-h 4 days ago |
RachelF 4 days ago |
>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.
xfalcox 4 days ago |
drdaeman 4 days ago |
With X11 it's not that bad (buffers are pre-allocated), but with Wayland allocations are a lot more dynamic, so running low on VRAM can easily crash the whole desktop. I just had a few of such crashes with Hyprland+llama-server+KVM switching between computers without freeing VRAM.
kimixa 4 days ago |
That page also has a fuse filesystem implementation on top of opencl - https://github.com/Overv/vramfs - which may be more compatible.
dragontamer 4 days ago |
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.
molticrystal 4 days ago |
>GpuRamDrive
>Create a virtual drive backed by GPU RAM.
https://github.com/prsyahmi/GpuRamDrive
Fork with AMD support:
mmastrac 4 days ago |
In the end I just had to bite the bullet and take a gamble on finding ECC DDR4 RAM that would work with the ancient AMD chipset...
This particular implementation seems to be running over too many layers to be particularly performant. Why not a custom block driver instead?
rwmj 4 days ago |
sgjohnson 4 days ago |
sounds VERY low, also, wouldn't random read/write speed be MUCH more relevant here?
willis936 4 days ago |
dlt713705 4 days ago |
theblazehen 4 days ago |
There is originally https://github.com/Overv/vramfs however that has the overhead of a FUSE filesystem + loop device when using as a swap device.
The performance is rather lackluster however, it's far from a miracle "now you effectively have more ram for a 90% performance drop" - it definitely feels like traditional swapping
londons_explore 3 days ago |
The 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.
bobsmooth 4 days ago |
NortySpock 3 days ago |
It would be nice to have dynamic scaling or even just auto-shutoff on VRAM pressure if I forget I have this enabled and then fire up a game or LLM.
LouisvilleGeek 4 days ago |
Now if it could be dynamically used and vacated on other GPU workloads?
UnfitFootprint 4 days ago |
ProllyInfamous 3 days ago |
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 abandoned this system settings/layout "phase" – it's still word-salad (compared to decades of preference panes).
#Apple #Feedback #swapfile
hardwaresofton 4 days ago |
tgtweak 3 days ago |
tlb 3 days ago |
AI2070 about 18 hours ago |
steeve 4 days ago |
mrwizrd 3 days ago |
jcmfernandes 4 days ago |
1matin 3 days ago |
hearstcastle8 3 days ago |
effnorwood 4 days ago |
zx8080 4 days ago |
undefined 4 days ago |
nialv7 4 days ago |
enthus1ast_ 3 days ago |
usxr1515 4 days ago |
undefined 3 days ago |
cgnguyen 3 days ago |
ryanshrott 3 days ago |
dbdr 4 days ago |
moviepiq 3 days ago |
Sohcahtoa82 4 days ago |
vecchio 3 days ago |
simonask 4 days ago |
lowbloodsugar 4 days ago |
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.