mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #445] Large arena prefill regression on Linux: 42-43 GiB pin threshold stalls GPU #207
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#207
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 @mohammedalsayegh on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/445
Greetings!
first, thanks for the great work!
Found a performance regression testing on multiple P100s (sm_60 / Pascal). Unclear if Pascal-specific or affects newer architectures.
Commit
ed6c124("#253: the 8 GiB arena pin cap only under WDDM") causes large expert arenas to lose most prompt speed on Linux. The environment variable from that commit recovers performance, so this likely needs a different default or release note.Setup
arena_gb50.3)-DSTRATA_EXPERIMENTAL_SM60=ON -DCMAKE_CUDA_ARCHITECTURES=60Key Triggers
ed6c124.Results
Median of ≥2 rounds, fresh ~7.3K-token prompts (cached prompts ~0.45s, not measured).
STRATA_ARENA_PIN_GIB30ec18e(v0.1.30)ed6c124(first bad)c499bd1(v0.1.32)aeb35be(v0.1.33)aeb35be, unmodifiedSame pattern at 69,144 tokens: 125.0 → 204.3 tok/s. Gap widens at larger prompts.
Why this matters
#253 was resolved but didn't fix this for my setup. With layer split, default pins entire arena (past 42-43 GiB cliff): 127 tok/s default vs 192 tok/s with undocumented variable. Severely hinders large-context performance. Unclear if this affects single-GPU or only multi-GPU, but #253's fix clearly didn't cover all cases.
Discrete Performance Threshold
STRATA_ARENA_PIN_GIBDegradation is discrete (loan halves between 42-43 GiB), consistent across 7.3K and 69K tokens. RAM stable at 67-68 GB confirms threshold logic issue.
STRATA_PREFILL_TIMING=1shows 96.5% loss inembed+steps("gap where GPU waits" perprefill.cppcomments) — GPU stalls on host expert feed, not slower kernels. These env vars didn't help:STRATA_OLD_GROUPED=1,STRATA_REFILL_SERIAL=1,STRATA_STAGER_THREADS=4,STRATA_SPLIT_OWN=0,STRATA_PREFILL_AUTO_MAX=8192,STRATA_PREFILL_LEND_PCT(60-90).Where to Look
Loan halves at 83-85% arena pinned.
generate.cpphaspinned_share() >= 0.9 ? 90 : 85threshold. Values are close butSTRATA_PREFILL_LEND_PCTdidn't affect loan, so likely different thresholds. Coupling between arena pin % and prompt loan logic is probably there.@mohammedalsayegh commented on GitHub (Oct 2, 2026):
Same with Q4 model, after change value of STRATA_ARENA_PIN_GIB to 68 while evenly distributed expert on three of P100, the PP increased to ~260 TPS and peaked to more than ~300 TPS on longer context
@Niko1221 commented on GitHub (Oct 2, 2026):
Thanks for the careful sweep. The cliff lines up with an internal rule. Your arena is 46.85 GiB, and 0.9 of it is 42.2 GiB: when 90% or more of the experts are pinned, the prompt path takes a 384-slot streaming ring instead of 96 (and a larger lend). On a split with three 16 GB cards, that larger ring eats most of each stage's cache, which fits the prompt loan halving in your log. Could you run once with
"STRATA_SPLIT_RING": "96"in the config'senv(andSTRATA_ARENA_PIN_GIBunset), and post thestreamed ring,prompt chunk autoandborrowslines for both models? If it restores the 192 tok/s, the fix is that a split keeps the 96 ring regardless of how much is pinned.@mohammedalsayegh commented on GitHub (Oct 2, 2026):
The root cause turned out to be on my end rather than the engine's, and knowing about
STRATA_SPLIT_RINGhelped as I was configuring it the wrong way. It would be great if this was documented for others later with certain setups.The actual cause was a boot service of mine,
set_gpu_clocks.service, runningnvidia-smi -i 0 -ac 715,544to stop all three cards from boosting at once on a power-capped setup.That left GPU0 locked at 544 of its 1328 MHz for months, across every reboot, since
-acpersists in the driver. Your SMs × clock division then did exactly what it was supposed to with a card reporting 0.54 GHz: CUDA0 got 2 of 48 layers while the other two took 23 each. On the Q4 with the pin unset in both cases, I got 176.5 tok/s with the lock and 266.6 without (+51%), using the same model and settings.I ran your test on both models with
STRATA_ARENA_PIN_GIBunset, and the override demonstrably took effect (borrows dropped ~400 slots / 0.7 GiB either way):Prompt chunk was set to auto (8192 tokens) in all four runs, and streamed ring 96 slots were logged for the overridden ones. So forcing 96 helped neither model and cost the Q4 ~4.5% (non-overlapping ranges), while on the IQ3_S the +1.5% is inside the noise margin — I wouldn't make it unconditional. Your
pinned_share >= 0.9threshold picked correctly in both cases.Two smaller things, if useful:
cudaDevAttrClockRateat generate.cpp:2040 looks like a spec value rather than a live clock. It read 1.33 GHz for a card running at 1189 MHz, while still catching the hard lock. This means thermal or power throttling is invisible to the split planner, which is fine, just leaving a note for later when someone finds this while checking the root of an issue.It would be great to document
STRATA_SPLIT_RING. A note that it's the manual escape hatch for when the auto-planner can't resolve a clock-skewed or power-capped split would be genuinely helpful. It would have saved me an hour of guessing, lol.Thanks for your time and effort on the project!