Repository navigation
Conversation
Decode the flags word for XCL_TRACE_MEM and the address-limit diagnostic. Keep the existing XAllocAttrs-based allocation type so the test title's legacy graphics requests still land in UMA. Interpreting bit 0x2 as MEM_GRAPHICS sent retail large heaps to sparse VRAM and regressed smoke. The focused tests cover flag decoding and both allocation cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assisted-by: Codex (exact model unavailable)
Titles ask for 32-bit- or N-bit-addressable graphics memory (XMEM_GRAPHICS_32BIT_ADDRESS, XMEM_40BIT_ADDRESS..) through the flags word that xcl-dev#3173 decodes, but XCL does not place by that limit yet. Tally how many address-limited requests land above their limit, split by below-4GiB and N-bit, and log the totals at shutdown. Diagnostics only: no allocation path changes, only a shutdown log line is added. A measured 60 s run of one retail title shows 6 below-4GiB requests, at least one placed at ~18 GiB; a later PR will place these below the limit. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Review (head bc01bcb, the top commit only, diff read, not a merge-check; draft, stacked on #3173,
Fine: the cost is one or two relaxed atomic increments per limited call next to a AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
Stacked on #3173: its first commit is #3173's, and only the top commit ( AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Diagnostics for
XMemVirtualAllocaddress limits, with no behaviour change. #3173 decodes the flags word (below_4g,address_bits) andlimit(), but placement ignores it. This counts, per run, how many address-limited requests land above their limit — split by below-4 GiB (XMEM_GRAPHICS_32BIT_ADDRESS) and N-bit (XMEM_40BIT_ADDRESS..) — and logs the totals at shutdown.A measured 60 s run of one retail title: 6 of 6 below-4 GiB requests land above their 4 GiB limit (one is placed at ~18 GiB). The actual low-address placement is a follow-up PR; this lands the measurement that justifies it.
Stacked on #3173; only the top commit belongs here. Draft, blocked on #3173: its base is behind
main, so the requiredmain-baseline regression run is deferred until #3173 merges and this rebases ontomain. The run below is against the stack base, as a no-regression check for this commit alone.What is in it
kernelx: count XMemVirtualAlloc address-limit violations per run— the tally, theabove_limitpredicate, and the shutdown report incrates/xcl/src/hle/kernelx.rs; the report call incrates/xcl/src/report.rsTested
stable-x86_64-pc-windows-msvc, debug; AMD RX 6600cargo test -p xcl --lib above_limit_judges_placement_against_the_address_limit: 1 passedmem: XMemVirtualAlloc address limits (placement unchanged): below-4GiB 6/6 above the limit, N-bit 0/0 above the limitRegression run
Deferred (draft): the
main-baseline run comes after #3173 merges and this rebases ontomain. For now, a no-regression check against the stack base (#3173,599bf81a) — amainbaseline today would attributemain's 14-commit drift since #3173 branched to this PR. Both 60 s,XCL_PREPARE=0, same retail title (idb41e6560), AMD RX 6600.Head vs stack base: 1109 / 1035 frames = 107%, peak commit 16685 / 16362 MB = 102%, no device removal, no crash. As expected for a diagnostics-only change (a shutdown log line plus atomic counters on
XMemVirtualAlloc), the difference is within run-to-run noise.Not tested
AI use
🤖 Generated with Claude Code