mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4007] [Engine] HIP gfx103x: the start-up pcie_frac (bandwidth only) is too high when the CPU pool is fast; the PcieAuto refinement (opt-in there) finds 0.20 — enable it by default on gfx103x? #1723
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#1723
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 @Vop3p on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4007
What I see
On gfx103x the native pack's PCIe share comes from the start-up rule only,
0.55 x min(1, probed GB/s / 20): the runtime refinement (PcieAuto) is the default on gfx12 (decode_defaults_arch_ok) and opt-in elsewhere (STRATA_PCIE_FRAC_DEFAULT=auto). The start-up rule looks at the link and not at the CPU pool, and with a fast pool the share it picks makes the GPU wait for its PCIe experts.RX 6900 XT, Qwen3.8-Flash-Next IQ3_S pack,
main7dd5cf18, single card,benchmark.py-style 4K / 32K prompts, two runs per arm, interleaved cold starts:Prompt reads do not change (Windows 796-802 / 1,154-1,163 tok/s in every arm, Linux 951-959 / 1,134-1,137).
A fixed sweep on the Windows box agrees with the refined value: decode 4K / 32K at
--pcie-frac0 45.4 / 45.9, 0.1 44.9 / 43.6, 0.2 46.5 / 47.6, 0.3 39.1 / 40.8, 0.35 (auto) 36.4 / 36.9 (two runs each, interleaved). On Windows the share costs more than on Linux because every DMA batch is a WDDM submission (~120 µs more per batch end to end than on Linux in a HIP probe), but the refinement does not need to know that: the pool is simply faster than the link, and the formulalink / (link + 1.85 x pool rate)lands on the measured best.The 4K decode on Windows stays below the fixed 0.2 (42.6 vs 46.5) because the first update comes after 48 windows, so a short answer runs mostly at the start-up share.
Question
Would you take a change that makes
PcieAutothe default on gfx103x (pcie_auto_fork_arch_okreturning true there unlessSTRATA_PCIE_FRAC_DEFAULT=old)? I can open it with 10 interleaved pairs on both machines. I have no gfx11 to say anything about the 7900-series reports in the code comment (one "no regression", one "never engages").Found while measuring the prompt path on Windows for #4005.
Developed with an AI coding assistant; every number above was measured on the two machines named in the table.
@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you. Your numbers agree with #3984: on RDNA2 with a fast CPU pool the start-up PCIe share is too high, and
PcieAutoor--pcie-frac 0.2gave +20% decode on your Windows RX 6900 XT and +13.7% on an RX 6700 XT in #3984. The start-up share was not changed in 0.2.7. Yes, please open the change that makesPcieAutothe default on gfx103x with the ten interleaved pairs on both machines; we have no gfx103x card, so those pairs are what it would be judged on.@kulight commented on GitHub (Oct 29, 2026):
A correction to the RX 6700 XT figure quoted above from #3984: the +13.7% there was measured against a hand-set
--pcie-frac 0.75, not the start-up share. On that machine the start-up rule picks 0.55, and against that--pcie-frac 0.2is about +12% in decode (45.3 → 50.6 tok/s, medians of 3, same session, all other flags fixed; full sweep with the peak at 0.2 in https://github.com/Niko1221/Strata/issues/3984#issuecomment-6495234521). Same direction, slightly smaller. That run used an abliterated IQ2_XS derivative, andPcieAutoitself was not measured there.