Repository navigation
d3d12_multithread: 60 s fence waits and 300 s ctest timeout under parallel load (TEST-514 follow-up) - #3197
Conversation
… headroom under parallel load (TEST-514 follow-up)
|
Independent Windows 11 (26200) check of I also ran a separate, heavier same-adapter load of six simultaneous |
|
Tested 144a406 on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:
AI-assisted (Claude Code). |
Claimed in the coordination issue as a new item: #2891 (comment) (from my
finding:line there).What and why
d3d12_multithread's four fence waits cap at 15000 ms (runtime/test/d3d12_multithread_test.cpp:202,368,403,413) and its ctestTIMEOUTis 120 s (runtime/CMakeLists.txt:956). The test itself runs in ~0.3-0.8 s, but under heavy parallel load the fences stall: two concurrent fullctest -j 6suites on an RTX 3070 Ti pushed it to 91-120 s and it failed 3 times in ~6 double-runs (113.3 s, 91.0 s, 119.8 s) - the 15 s waits expire while the GPU is shared 12 ways. Same device-wide queue-contention mechanism as TEST-514 part 2 (#2916); sibling GPU tests already wait 15-60 s, 15 s was the outlier.Fix: the four waits go to 60000 ms (matching
d3d12_rgb96) and the ctest timeout to 300 s so the waits can actually be used. Test-only; no runtime code touched.Tested
Windows 11, MSVC RelWithDebInfo/Ninja, RTX 3070 Ti + RTX 5080 + Ryzen 9 9950X3D iGPU (Radeon 610M, driver 32.0.13018.6; NVIDIA 621.01):
--repeat until-fail:5: 5/5.-j 6suites, layer on the 3070 Ti): now passes in both suites (0.81 s / 0.68 s).-j 6suites in those contention runs: 117/118 each; the two failures were sibling contention flakes in other tests (d3d12_shader_cache1.6 s,d3d12_compute2.2 s), not this test.AI-assisted (opencode); synthetic fixtures only, no game files.