PR checks: the 125% peak-commit limit is inside the run-to-run spread; one pair can pass or fail on the same build #2225
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#2225
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?
@itsonewi on GitHub · 2026-11-25 10:32 UTC · original
Update 2: Creaa measured eight runs on one build and one machine: the low/high split is a variation inside a run, not the title profile and not the order. One low run in eight started from exactly the same data folder as the high runs. The issue stands as written below: one pair cannot carry a 125% limit. See the comments for the eight numbers.
pr_check.pycompares onexcl-smokeblock from the PR with one from main and rejects the PR when itspeak commitis over 125% of main's (COMMIT_GROWTH, line 35; the comparison is at lines 160-162). One 60 s run is not stable enough for that comparison: the peak commit is bimodal, and the two modes differ by about 1.7x.The evidence is in #2223, a help-text-only change that cannot affect memory. The author ran the same two revisions twice, in opposite order:
The low/high split did not follow the order: in the first pair the PR was high, in the second main was high. Same title (
RetailTitle), same 60 s, same machine (RTX 4070), same two commits.Creaa then ran the same release build of main (
cbc296a) eight times in a row on the same machine, 60 s, with 62 GB of commit free at every start:B2 started from exactly the same state as B1, B3 and B4 and still came out in the low mode. So the low mode is not the profile and not the order: the title sometimes does not load its graphics set in the first seconds (no AS/mesh burst, no video-memory arenas), and the run never commits the ~6 GB the other runs do. The #2223 logs show the same: the low run made 64 compute pipelines and no mesh pipelines; the high run made 1,569 AS shaders and 14 arenas. Why the title takes that path on a given run is not known.
That is not a criticism of #2223 (a string in
HELPcannot allocate 8 GB). It is a measurement problem in the gate:#2219 makes the
peak commitline mandatory, which is right, but it does not make the number reproducible.Suggested fix
smoke.ps1could take-Repeat Nand print N blocks, andpr_check.pycould use the median. One pair is not enough.Related
peak commit; this issue is about whether the number means anything.uma_coherent.txt; it was 4095 MB in both #2223 runs, so it is not the cause here.Scope
Read through the GitHub API at
568e7db; the numbers are from #2223's description and Creaa's runs, not from runs I made. Nothing was cloned, built or run.@Creaa on GitHub · 2026-11-25 10:41 UTC · original
The two numbers come from the runs sharing one title profile, not from run order as such. I'm taking the smoke-script side of this.
The #2223 pairs ran
smoke.ps1withoutXCL_DATA_ROOT, so every run used the same%LOCALAPPDATA%\XCL\<title>and started in whatever state the previous run left there (the title's saves and settings, XCL's caches). I have the logs of #2223's second pair on this machine (same RTX 4070, release builds, 60 s):xcl.prev.log)xcl.log)Both runs had the same coherent window, so this pair is not the window. The title took a different loading path from the start in the second run (the whole graphics set and its arenas within 15 s), and that is the 6 GB jump. The four results alternate low, high, low, high, which fits a profile each run leaves different for the next.
There is a second thing in the same direction: the coherent window is sized from
<data>\cache\uma_coherent.txt, written by the previous run, and only when 17 GB of commit is free at start (gpu/uma.rscoherent_hint_for); otherwise it is 512 MB. So a fresh profile, or a run started while something else holds commit, measures a different XCL.Runs that start from the same state agree. My smoke runs for #2129 and an earlier branch each started from a fresh copy of one profile (made by a previous run,
uma_coherent.txtincluded): five runs over two days, main and PR, came out at 17 499–19 806 MB.Plan (one PR,
scripts/only):smoke.ps1 -Profile <title data folder>copies that folder to a new data root for the run and pointsXCL_DATA_ROOTat it, so both runs of a pair start from the same state whatever their order; the block notes that it ran from a profile copy. Evidence in the PR: both orders with and without-Profileon this machine. This does not cover the 17 GB free-commit condition beyond keeping both runs' starting state equal; the script will print the free commit at start so a reader can see it.AI use: Claude Code (Claude Opus 5.5) read the logs and the code and drafted this comment.
@itsonewi on GitHub · 2026-11-25 10:49 UTC · original
Thanks - the logs change the diagnosis, and they make the gate problem worse rather than better. The second run did not inherit a different build; it inherited the same
%LOCALAPPDATA%\XCL\<title>profile, and from 6-15 s it took a different loading path (1,569 AS shaders, mesh pipelines, 14 arenas) while the first ran 2,682 CS shaders and 64 compute pipelines. Both had the same 4095 MB window, so the window is not the cause of this pair. "Run order" in the title is a proxy for "which run inherited the profile".For the PR:
-Profile(copy the title's data folder to a fresh data root, pointXCL_DATA_ROOTat it) is the right fix. Please print in the block that it ran from a copy and the free commit at start, so a reader can see the 17 GB condition; the coherent window alone is not enough to tell two starting states apart.-Profile, and show that the two orders agree with-Profile. Lower numbers alone would not prove the starting state was equal.uma_coherent.txt, but not the mesh/AS path or the 14 arenas. File it separately if the logs show XCL choosing it.One gate implication: even with
-Profile, a single pair still has no error bar. The median of 3+ runs per side (or both orders) is what makes the 125% check meaningful; otherwise the gate should print the ratio and not fail. I have added this to the issue body so the title does not send readers down the wrong path.@Creaa on GitHub · 2026-11-25 10:53 UTC · original
Correction to my comment above: the shared profile is not the cause, and I'm dropping the
-Profileplan. I measured it, and the low runs come from fresh copies of a profile too.Same machine (RTX 4070, 617.14), same release build of
maincbc296afor every run,smoke.ps1 -Title RetailTitle, 60 s, eight runs in a row, 62 GB of commit free at every start:Run B2 started from exactly the same state as B1, B3 and B4 and still came out in the low mode. So the two modes are a variation inside a run, not the profile and not the order: here 1 run in 8, in #2223's four runs 2 in 4. The #2223 logs show what the low mode is: the title does not load its graphics set in the first seconds (no AS/PS burst, no video-memory arenas), so the run never commits the ~6 GB the other runs do; why it takes that path on a given run I don't know.
For the gate that means what the issue says: one pair cannot carry a 125 % limit, and a clean change can fail or a regression pass on a single draw. Repeating each side (3 runs, median) or checking the ratio of the two higher runs would both have handled these eight. The coherent-window note in my comment stands on its own (sized from
uma_coherent.txtand only with 17 GB of commit free), but it was not what happened here.Unclaiming: someone else can take the
smoke.ps1 -Repeat/ median part.AI use: Claude Code (Claude Opus 5.5) ran the eight runs on my machine and drafted this correction.
@itsonewi on GitHub · 2026-11-25 10:59 UTC · original
Thanks for measuring it - the correction is the useful part, and the eight runs settle it: the low mode is a draw inside a run, not the profile or the order. That is worse for the gate than a profile effect, because there is no starting state to normalize; only repeats can tell a low run from a regression.
I updated the issue body with the eight runs and removed the profile claim.
-Profileis still worth having for reproducibility (and #1855 wants the manifest), but it is not the fix for this. The fix is-Repeat Nplus a median inpr_check.py; until that lands, the 125% check should print the ratio and not fail.If the low mode is XCL-side (the title sometimes skipping its graphics load), it is a runtime issue of its own; the logs in your table are enough to file it if you see it outside the gate. Unclaiming is fine - the numbers are in the issue for whoever picks it up.