Verify whether disk-enabled compute PSO builds waste CPU hashing DXIL on RAM-cache hits #2883
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2883
Loading…
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?
@KOLESNiii on GitHub · 2026-11-26 21:11 UTC · original
Could someone verify whether deferring
driver_cache::path_for/driver_cache::pathuntil a compute PSO missesCOMPUTE_BLOBS(or needs to write back to disk) saves measurable CPU time on warm world loads?On
mainat8b957bec,compute_containerand the compute pass offinish_two_passlook upcompute_blob(key)in RAM and also computedriver_cache::path_for/driver_cache::patheagerly before checking whethercachedis alreadySome.driver_cache::name_forrunsfnv64over the entire DXIL buffer in addition tocompute_blob_key's hash. Whencachedhits inCOMPUTE_BLOBSand the driver accepts it, neitherdisknor its FNV-1a hash is used.A standalone Linux microbenchmark (extracted key functions compiled with
rustc -Oon synthetic byte buffers, Ryzen AI 7 350, three runs) measured median disk-name costs of ~0.85 ms for 1 MiB and ~3.42 ms for 4 MiB, versus ~0.14 ms and ~0.55 ms forcompute_blob_key. Those are isolated component timings, not full title runs.Please verify on Windows by measuring the count and total DXIL bytes of accepted
COMPUTE_BLOBSRAM hits during a warm world load, and comparing time before the driver call with disk-path construction deferred until RAM miss or cache writeback (keeping disk filenames and cold/rejected-blob behavior unchanged).Duplicate check: screened open issues and PRs (including drafts); PR #2723 modifies descriptor inputs and still builds the disk path eagerly, and PR #2767 covers DXIL copies.
AI use: Gemini 4 Hydrogen (via Antigravity CLI) verified the source locations and filed this verification request based on the earlier Codex-assisted static review and Linux component microbenchmark recorded in
docs/pso-performance-audit.md.@CryingLaughing on GitHub · 2026-11-27 02:45 UTC · original · edited 2026-11-27 03:02 UTC
I measured the
finish_two_passcompute path with the existing synthetic mesh and legacy geometry fixtures. Builds used pinned main8b957bec6f82495aec940944c6bf47faa02db590and #2909 head67c26e28f4d5d148595923ebb254205b07164b83, with a passive timing observer and the same fixture on both revisions. Each of three fresh processes per revision performed two cold creates and 64 warm creates with disk caching enabled. Both revisions supplied and accepted RAM blobs on all 192 warm creates. All 24 GPU readbacks matched, and all six processes produced the same four cold driver filenames.The eager path hashed 1,368,192 DXIL bytes for disk filenames across those warm hits. The lazy path hashed zero. The measured interval starts before the RAM-key hash and ends before the native driver call. It is instrumented elapsed time. The fixture used the existing retention override since both compute shaders are smaller than the 16 KiB production threshold. Retail world-load hit rate and elapsed time remain unmeasured.
Tested. Windows 11 25H2 build 26200.9974, Core i5-13600K, GeForce RTX 4080 on driver 621.01, Rust 1.100.0 MSVC and DXC 1.8.2502.11, release. Six interleaved, serial processes reported 6 passed, 0 failed, 0 ignored, 0 capability skips in total. Each process used a fresh private
XCL_DXIL_CACHEandXCL_DATA_ROOT, withXCL_TEST_TWO_PASS_RAM_PROFILE=1 XCL_PSO_DISK_CACHE=1 XCL_PSO_PRELOAD=0 XCL_ASYNC_PSO=0 XCL_NETWORK=0 XCL_ADAPTER=4080and the Windows SDK 10.0.26100.0 x64 DXC.Main observer and serial runner
a7b75f694c0d98924d77a3a40290efdc323ffd15· Same fixture on #29091d62b27ef5a4f1c0b2b68ca844933ccf5fa185f5AI use