RTX 5090 / 617.14: dwm.exe leaks dedicated VRAM on every VidMM eviction → recurring 0x10E (0x2D) dxgmms2 bugcheck

Summary

On an RTX 5090 (32 GB), dwm.exe permanently leaks a chunk of dedicated GPU memory every time the driver evicts and recreates its composition surfaces under VRAM pressure. The leak is monotonic and never released until dwm.exe is restarted. Triggered reliably by repeatedly allocating and freeing a large (~17–20 GB) GPU buffer while the desktop compositor is running. Over a day of such activity dwm grows by several GB, erodes VRAM headroom, and the machine then bugchecks with VIDEO_MEMORY_MANAGEMENT_INTERNAL (0x10E), subcode 0x2D, in dxgmms2.sys.

System configuration

  • GPU: NVIDIA GeForce RTX 5090, 32607 MiB
  • Driver: 617.14 (Windows driver 32.0.16.1714, dated 2026-09-17)
  • VBIOS: 98.02.2e.40.e1
  • OS: Windows 11, 26H2, build 26300.9711
  • CPU / board: Intel Core Ultra 9 285K / ASUS ROG MAXIMUS Z890 EXTREME
  • Hardware-accelerated GPU scheduling (HAGS): OFF (HwSchMode=1)
  • No virtual/indirect display driver installed (IddCx/SudoVDA/Parsec etc. — none). Only the 5090 and the Intel iGPU.
  • 3 physical monitors (one rotated to portrait).

Bugcheck history (all identical subcode)

Six 0x10E bugchecks, first parameter 0x000000000000002d every time, roughly every 1–3 weeks:

2026-07-31  0x0000010e (0x2d, ...)  Minidump 073126-11093-01.dmp
2026-08-13  0x0000010e (0x2d, ...)  Minidump 081326-11171-01.dmp
2026-09-22  0x0000010e (0x2d, ...)  Minidump 092226-11859-01.dmp
2026-09-26  0x0000010e (0x2d, ...)  Minidump 092626-14609-01.dmp
2026-10-05  0x0000010e (0x2d, ...)  Minidump 100526-14046-01.dmp
2026-10-16  0x0000010e (0x2d, ...)  Minidump 101626-15390-01.dmp

Crash always correlates with high VRAM usage from a large GPU workload (local LLM inference) plus accumulated dwm growth.

Minimal reproduction

  1. Boot the machine; note dwm.exe dedicated GPU usage (e.g. ~6.5 GB with 3 monitors).
  2. Repeatedly allocate and free a large GPU buffer that forces eviction — in my case load, then unload, a ~17–20 GB model on the GPU (Ollama: ollama stop <model> then a generate request to reload). Any workload that commits ~2/3 of VRAM and frees it, with the compositor running, should do.
  3. After each allocate→free cycle, read dwm.exe Dedicated Usage from the GPU Process Memory performance counter set (or Task Manager → Details → Dedicated GPU memory).

Observed: dwm.exe dedicated usage steps up on each cycle and never comes back down.

Controlled run (3 cycles of a 17 GB model, 2026-10-19):

cycle  event    adapter VRAM (MB)     dwm dedicated (MB)   Δdwm
1      unload   25251 -> 5164         10560.2 -> 10560.3   +0.1
1      load     5154  -> 25364        10560.3 -> 10575.3   +15
2      unload   25344 -> 5237         10575.3 -> 10568.4   -7
2      load     5249  -> 23728        10578.4 -> 10603.4   +25
3      unload   23736 -> 3749         10603.4 -> 10647.5   +44
3      load     3900  -> 24013        10647.5 -> 10719.4   +72
NET dwm change over 3 cycles: +159 MB (monotonic, accelerating)

Longer-term sampling (every 10 min for 25 h): dwm grew from 6.55 GB to 10.24 GB (~3.5 GB/day) on a day of model load/unload activity, and was completely flat during a 15-minute window with no large-allocation events. So the growth is driven by eviction events, not by redraw or uptime.

Expected vs actual

  • Expected: after a GPU buffer is freed and dwm’s surfaces are paged back in / recreated, dwm’s dedicated allocation returns to its baseline.
  • Actual: dwm’s dedicated allocation only ever increases across eviction cycles; the memory is reclaimed only by restarting dwm.exe. Eventually a VidMM operation under pressure fails and the system bugchecks 0x10E (0x2D) in dxgmms2.sys.

Notes / ruled out

  • Not a counter/reporting artifact: growth is monotonic across 25 h and across controlled cycles; nvidia-smi and the perf counters agree.
  • Not HAGS: already disabled.
  • Not a virtual display driver: none installed.
  • Restarting dwm.exe is the only thing that fully releases the leaked memory.

Files available

I have the controlled repro script (cycle_test.ps1), 25 h of 10-minute dwm/adapter VRAM samples (samples.csv), and the 0x10E minidumps. Happy to attach them in a reply or send however QA prefers.