mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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,noheaderreportsDisabledfor every card — including one that drives the desktop and has 800-1500 MiB of VRAM in use before the engine starts. The server'scard_displays()therefore marks every card headless, andsplit_reserves()assignsSPLIT_RESERVE_HEADLESS_MIB(512) to a card that needsSPLIT_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.usedbefore 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,noheaderon this machine returns: (card 1 is the RTX 4060 Ti; it drives the only display andnvidia-smi --query-gpu=index,memory.usedreports 800-1500 MiB used before the engine starts.)expert cache auto: ... 512 MiB reservedon the display card; with an explicit--vram-reserve-mib 1800in the config it shows1800 MiB reserved, confirming the auto-reserve is the path through.Failed:
Not run: