[GH-ISSUE #4641] [Other] Windows: nvidia-smi display_active reports Disabled for every card, so the auto-reserve treats the display card as headless #2105

Open
opened 2026-11-04 01:56:43 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @cobra91 on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4641

Problem and result

On Windows 11 (driver 617.14, two NVIDIA cards), nvidia-smi --query-gpu=index,display_active --format=csv,noheader reports Disabled for every card — including one that drives the desktop and has 800-1500 MiB of VRAM in use before the engine starts. The server's card_displays() therefore marks every card headless, and split_reserves() assigns SPLIT_RESERVE_HEADLESS_MIB (512) to a card that needs SPLIT_RESERVE_DISPLAY_MIB (1800).

The result on our rig (RTX 5080 + RTX 4060 Ti 16 GB, the Ti driving the display): the auto-reserve gives 512 MiB instead of 1800 on the display card. The expert cache sizes itself from 1.3 GiB more VRAM than it safely can, writes to 0 MiB free, triggers the shrink loop, and either over-shrinks (losing hundreds of slots) or stalls under WDDM. The engine still runs, but the cache is mis-sized and the shrink cascade makes startup slower and the placement worse.

none (found while profiling the cache sizing differences discussed in #3976 and #4522).

Approach

We are not proposing a code change yet — this is a report of a platform limitation, with a suggestion. The detection could be made Windows-reliable by checking nvidia-smi --query-gpu=memory.used before the engine starts: a card that already uses >400 MiB before the engine allocates anything is a display card on Windows (the desktop, compositor and browser sit on it). That heuristic would be wrong only for a card shared with another CUDA program, which the current query cannot distinguish either. A Windows API (EnumDisplayDevices / QueryDisplayConfig) would be exact but heavier.

Validation

Passed:

  • nvidia-smi --query-gpu=index,display_active --format=csv,noheader on this machine returns:
    0, Disabled
    1, Disabled
    
    (card 1 is the RTX 4060 Ti; it drives the only display and nvidia-smi --query-gpu=index,memory.used reports 800-1500 MiB used before the engine starts.)
  • The engine log with the broken detection shows expert cache auto: ... 512 MiB reserved on the display card; with an explicit --vram-reserve-mib 1800 in the config it shows 1800 MiB reserved, confirming the auto-reserve is the path through.

Failed:

  • none observed (the engine runs; the mis-sizing is the problem, not a crash).

Not run:

  • other Windows machines (we have one rig; the query may behave differently on other driver versions or display topologies).
  • Linux (the query is documented to work there; we have not tested).
Originally created by @cobra91 on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4641 ## Problem and result On Windows 11 (driver 617.14, two NVIDIA cards), `nvidia-smi --query-gpu=index,display_active --format=csv,noheader` reports `Disabled` for every card — including one that drives the desktop and has 800-1500 MiB of VRAM in use before the engine starts. The server's `card_displays()` therefore marks every card headless, and `split_reserves()` assigns `SPLIT_RESERVE_HEADLESS_MIB` (512) to a card that needs `SPLIT_RESERVE_DISPLAY_MIB` (1800). The result on our rig (RTX 5080 + RTX 4060 Ti 16 GB, the Ti driving the display): the auto-reserve gives 512 MiB instead of 1800 on the display card. The expert cache sizes itself from 1.3 GiB more VRAM than it safely can, writes to 0 MiB free, triggers the shrink loop, and either over-shrinks (losing hundreds of slots) or stalls under WDDM. The engine still runs, but the cache is mis-sized and the shrink cascade makes startup slower and the placement worse. ## Related discussion none (found while profiling the cache sizing differences discussed in #3976 and #4522). ## Approach We are not proposing a code change yet — this is a report of a platform limitation, with a suggestion. The detection could be made Windows-reliable by checking `nvidia-smi --query-gpu=memory.used` before the engine starts: a card that already uses >400 MiB before the engine allocates anything is a display card on Windows (the desktop, compositor and browser sit on it). That heuristic would be wrong only for a card shared with another CUDA program, which the current query cannot distinguish either. A Windows API (`EnumDisplayDevices` / `QueryDisplayConfig`) would be exact but heavier. ## Validation **Passed:** - `nvidia-smi --query-gpu=index,display_active --format=csv,noheader` on this machine returns: ``` 0, Disabled 1, Disabled ``` (card 1 is the RTX 4060 Ti; it drives the only display and `nvidia-smi --query-gpu=index,memory.used` reports 800-1500 MiB used before the engine starts.) - The engine log with the broken detection shows `expert cache auto: ... 512 MiB reserved` on the display card; with an explicit `--vram-reserve-mib 1800` in the config it shows `1800 MiB reserved`, confirming the auto-reserve is the path through. **Failed:** - none observed (the engine runs; the mis-sizing is the problem, not a crash). **Not run:** - other Windows machines (we have one rig; the query may behave differently on other driver versions or display topologies). - Linux (the query is documented to work there; we have not tested).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2105
No description provided.