nbd-vram: A Linux tool to use NVIDIA GPU VRAM as swap space for laptops with soldered memory
By
tanelpoder
Pure flour-power. Hearty enough to carry you through lunch.
Summary
A GitHub project called nbd-vram enables using NVIDIA GPU VRAM as swap space on Linux, particularly useful for laptops with soldered RAM and no upgrade path. The tool allows overflow from RAM to VRAM (fast PCIe), then to zram compression, and finally to SSD swap. Tested on an RTX 3070 laptop GPU with 8GB VRAM, it tripled addressable memory to ~46GB by allocating 7GB of VRAM for swap alongside existing zram and SSD swap.
Key quotes
· 5 pulledUse your NVIDIA GPU's VRAM as swap space on Linux.
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.
Overflow order is: RAM fills, then VRAM absorbs spill (fast, PCIe), then zram compresses the rest (CPU), then SSD only if everything else is exhausted.
End result including zram and SSD swap ~46 GB, tripled the addressable memory.
You might also wanna read
Optimizing LLM Inference: A C++ Backend for VRAM-Aware Sequence Packing
A technical deep-dive into optimizing LLM inference performance by eliminating wasteful padding in sequence batching. The article introduces
Microsoft's Surface Laptop Ultra to feature Nvidia RTX Spark chip with up to 128GB unified memory
Microsoft is developing the Surface Laptop Ultra, a high-end RTX Spark system powered by Nvidia's new Arm-based chip for Windows PCs. It wil
arstechnica.com·10d agoNvidia's RTX Spark Laptop Superchip Aims to Transform AI PCs and Windows on Arm
Nvidia announced the RTX Spark laptop superchip at Computex, marking a major shift in consumer laptop hardware. The chip combines Nvidia's D
Apacer Unveils High-Speed DDR5 Memory and Storage at Computex 2026
Apacer showcased its latest PC memory and storage products at Computex 2026, including the NOX series DDR5 CUDIMM kits under its main brand
