[PR #487] [CLOSED] PCIe probe: median of several primed bursts instead of one #2662

Closed
opened 2026-11-04 02:02:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/487
Author: @yannickloth
Created: 10/2/2026
Status: ❌ Closed

Base: main ← Head: fix/pcie-probe-median


📝 Commits (1)

  • c434fcc PCIe probe: median of several primed bursts instead of one

📊 Changes

1 file changed (+26 additions, -10 deletions)

View changed files

📝 src/program/generate.cpp (+26 -10)

📄 Description

probe_pcie_h2d_gbps() took a single 256 MiB x4 pinned burst after one warmup. On one x16 PCIe 4.0 link the same binary read 18.5, 6.9 and 5.8 GB/s across starts, and the low samples pin pcie_frac at 0.12-0.15 where calibration picks 0.35 (see #485).

This primes the link with two untimed copies and returns the median of five timed bursts, so one contended or not-yet-ramped sample cannot set the load's share. A >= 20 GB/s link still yields pcie_frac 0.55; a genuinely slow link now reports its true (low) rate instead of a worse outlier.

No new dependencies (<algorithm> is already included).

Refs #485.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/487 **Author:** [@yannickloth](https://github.com/yannickloth) **Created:** 10/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/pcie-probe-median` --- ### 📝 Commits (1) - [`c434fcc`](https://github.com/Niko1221/Strata/commit/c434fcce204c3bbfdf0b576908eff1c8f5e54a02) PCIe probe: median of several primed bursts instead of one ### 📊 Changes **1 file changed** (+26 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `src/program/generate.cpp` (+26 -10) </details> ### 📄 Description `probe_pcie_h2d_gbps()` took a single 256 MiB x4 pinned burst after one warmup. On one x16 PCIe 4.0 link the same binary read 18.5, 6.9 and 5.8 GB/s across starts, and the low samples pin `pcie_frac` at 0.12-0.15 where calibration picks 0.35 (see #485). This primes the link with two untimed copies and returns the **median of five** timed bursts, so one contended or not-yet-ramped sample cannot set the load's share. A >= 20 GB/s link still yields `pcie_frac 0.55`; a genuinely slow link now reports its true (low) rate instead of a worse outlier. No new dependencies (`<algorithm>` is already included). Refs #485. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:02:11 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2662
No description provided.