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):
- Change the pagefile from system-managed to a fixed 64GB (commit went from 49GB to 95GB)
- Set NVIDIA's CUDA Sysmem Fallback to "Prefer No Sysmem Fallback"
The author suspects a recent Windows update changed commit-memory behavior under the hood and is asking if anyone knows what changed.
More from Infra
- RTX 5090 laptop benchmark: Qwen3.8-Flash-Next beats Inkling 2 Mini on long context — solyarisoftware · 2026-11-24
- Rumor: clustering 16 NVIDIA DGX Spark units may be the next local-AI move — AIFlow_ML · 2026-11-24
- Nvidia cleared after two-year probe over 74 chips in Malaysia data center — AlexTensor · 2026-11-24
- SD3.5-large (8B) runs on a 12 GB RTX 3080 Ti: ~62s per image, 8.3 GB peak VRAM, no Python — veizik · 2026-11-24
- Token Costs Drop 10x a Year — Flat Subscriptions Are Distorting Inference Economics — brandongalang · 2026-11-24
- Gensler says Nvidia misled public on disclosure, as critics call SEC probe logic circular — kevinnbass · 2026-11-24