[GH-ISSUE #1745] [Bug]: SYCL engine's PCIe probe times a pageable copy, so it reads the link ~4x low and lowers pcie_frac (Arc Pro B70) #696

Closed
opened 2026-11-04 01:45:09 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @sam-fakhreddine on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1745

What happened

On the SYCL engine the startup PCIe probe reads the link far below what it carries, and the low reading sets pcie_frac from it:

strata generate: PCIe probe: 7.7 GB/s host->device (best of 7.5 7.5 7.0 7.7) -> pcie_frac 0.21 (default 0.55)

The card is an Arc Pro B70 on a PCIe 5.0 x16 link (32 GT/s x16 at the root port and at the card's switch upstream port, checked with lspci -vv). A standalone SYCL copy test on the same card and VM, best of 5 per size:

Host to device 1 MiB 16 MiB 256 MiB 1 GiB
sycl::malloc_host (pinned) 18.9 GB/s 25.0 35.3 34.7
malloc (pageable) 8.3 9.5 8.1 14.9

The probe's 256 MiB bursts land on the pageable row. In sycl/src/program/generate.cpp, probe_pcie_h2d_gbps() allocates its host buffer with malloc, while the CUDA engine's probe uses cudaMallocHost and the function's own comment says it "copies from pinned host memory, as the expert arena's reads are". The expert mirror is pinned (... mirrored in pinned host memory (11.63 GiB ...)), so the probe times a different path from the one decode uses.

#485 (fixed in 0.1.37) is about the probe's sampling on CUDA; this is the SYCL port's allocation and is not covered by it.

With the buffer from sycl::malloc_host the same card reads:

strata generate: PCIe probe: 35.6 GB/s host->device (best of 27.0 35.6 33.0 31.8) -> pcie_frac 0.55 (default 0.55)

Greedy output tokens are identical either way (IQ2_XS, 20-token and 2,185-token prompts, 256 new tokens). Decode with --pcie-frac 0.55 against the probed 0.18 on IQ2_XS: 62.6 vs 61.0 tok/s on the 20-token prompt, 60.3 vs 60.1 on the 2,185-token prompt (medians of 3 interleaved pairs). Small here because only 4 to 10% of routed entries come from the mirror on IQ2_XS; a quant with more of its experts in the mirror depends on the share more.

Strata version, GPU, OS

0.1.41 (main fb58e0d), SYCL engine (AOT, bmg-g31), Arc Pro B70 32 GB, Ubuntu 26.04 VM (Proxmox passthrough), xe driver, oneAPI 2026.1.1, NEO 26.05.37020.3

Engine log

The two probe lines are above. A fix is ready as a pull request (three lines in probe_pcie_h2d_gbps()).

Originally created by @sam-fakhreddine on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1745 ### What happened On the SYCL engine the startup PCIe probe reads the link far below what it carries, and the low reading sets `pcie_frac` from it: ``` strata generate: PCIe probe: 7.7 GB/s host->device (best of 7.5 7.5 7.0 7.7) -> pcie_frac 0.21 (default 0.55) ``` The card is an Arc Pro B70 on a PCIe 5.0 x16 link (32 GT/s x16 at the root port and at the card's switch upstream port, checked with `lspci -vv`). A standalone SYCL copy test on the same card and VM, best of 5 per size: | Host to device | 1 MiB | 16 MiB | 256 MiB | 1 GiB | | --- | ---: | ---: | ---: | ---: | | `sycl::malloc_host` (pinned) | 18.9 GB/s | 25.0 | 35.3 | 34.7 | | `malloc` (pageable) | 8.3 | 9.5 | 8.1 | 14.9 | The probe's 256 MiB bursts land on the pageable row. In `sycl/src/program/generate.cpp`, `probe_pcie_h2d_gbps()` allocates its host buffer with `malloc`, while the CUDA engine's probe uses `cudaMallocHost` and the function's own comment says it "copies from pinned host memory, as the expert arena's reads are". The expert mirror is pinned (`... mirrored in pinned host memory (11.63 GiB ...)`), so the probe times a different path from the one decode uses. #485 (fixed in 0.1.37) is about the probe's sampling on CUDA; this is the SYCL port's allocation and is not covered by it. With the buffer from `sycl::malloc_host` the same card reads: ``` strata generate: PCIe probe: 35.6 GB/s host->device (best of 27.0 35.6 33.0 31.8) -> pcie_frac 0.55 (default 0.55) ``` Greedy output tokens are identical either way (IQ2_XS, 20-token and 2,185-token prompts, 256 new tokens). Decode with `--pcie-frac 0.55` against the probed 0.18 on IQ2_XS: 62.6 vs 61.0 tok/s on the 20-token prompt, 60.3 vs 60.1 on the 2,185-token prompt (medians of 3 interleaved pairs). Small here because only 4 to 10% of routed entries come from the mirror on IQ2_XS; a quant with more of its experts in the mirror depends on the share more. ### Strata version, GPU, OS 0.1.41 (main fb58e0d), SYCL engine (AOT, bmg-g31), Arc Pro B70 32 GB, Ubuntu 26.04 VM (Proxmox passthrough), xe driver, oneAPI 2026.1.1, NEO 26.05.37020.3 ### Engine log The two probe lines are above. A fix is ready as a pull request (three lines in `probe_pcie_h2d_gbps()`).
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156197734 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
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#696
No description provided.