Windows OOM with free VRAM? Fix llama.cpp/NInfer failures via fixed pagefile and NVIDIA driver setting

munkiemagik · reddit · 2026-11-24

A Reddit user hit a baffling issue on Windows 11 with an RTX 5090 (32GB VRAM, 32GB RAM): both llama.cpp and NInfer started failing with cudaMalloc/cudaMallocHost OOM over the past month or two, despite 28GB free RAM and 31GB free VRAM at failure time. A 256MB pinned allocation succeeded instantly while 1-8GB requests were refused in under 30ms — instant refusal, not gradual exhaustion.

The fix (both engines load fine again):

The author suspects a recent Windows update changed commit-memory behavior under the hood and is asking if anyone knows what changed.

Original post →

More from Infra

Infra channel →