[GH-ISSUE #4480] [Engine] warn at start-up when the PCIe probe is far below the link (pinned buffers on the far NUMA node) #2004

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

Originally created by @coryjett on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4480

Area

Engine

What do you want to do?

Get a warning at start-up when the PCIe probe measures far below what the link should give, most often because the
pinned host buffers landed on the far NUMA node of a two-socket machine. Today the engine prints the number
(strata generate: PCIe probe: 4.2 GB/s host->device ...) and carries on, and that start stays slow for its whole
life.

Measured on a Dell T630 (2x Xeon E5-2620 v3, two NUMA nodes, RTX 3090 on PCIe 3.0 x16 on socket 0, IQ3_S, engine
0.1.48). The same config was started 8 times, alternating no numactl and numactl --preferred=0, one speed run per
start:

Start PCIe probe GB/s Short prompt tok/s (thinking off / on) 32K read tok/s Decode after
plain 1 11.7 93.2 / 69.6 1,794 59.0
plain 2 4.2 74.1 / 57.4 1,130 53.2
plain 3 11.8 101.5 / 72.7 1,851 69.4
plain 4 4.9 72.3 / 56.3 1,121 52.2
--preferred=0 x4 9.2-11.4 88.5-90.5 / 72.6-78.0 1,796-1,862 57.3-66.0

Two of four plain starts probed at ~4-5 GB/s and read prompts ~38% slower, with ~20% slower short-prompt decode.
--preferred=0 (memory policy only; the pool keeps its workers on both sockets) was fast on 4 of 4. With two
cards, one per socket, --interleave=all is better (a start without numactl still probed 4.1 GB/s), but a slow
start there cost much less (32K read 2,184 vs 2,055-2,326 tok/s across the other starts).

Suggested: when the probe is well under the link's nominal rate (PCIe gen x width from the driver, or a fixed
fraction such as 60%) on a machine with more than one NUMA node, print one line naming the likely cause and the fix,
e.g. "pinned buffers may be on the far NUMA node; start under numactl --preferred=<GPU's node> (one GPU) or
--interleave=all (one GPU per socket)". Optionally expose the measured GB/s in /props or /metrics so a monitor or
strata bench can show it (#4481 covers recording it in reports).

What do you do today instead?

Start the server under numactl --interleave=all (two cards) or --preferred=0 (one card), found by comparing
probe lines across restarts by hand.

Originally created by @coryjett on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4480 ### Area Engine ### What do you want to do? Get a warning at start-up when the PCIe probe measures far below what the link should give, most often because the pinned host buffers landed on the far NUMA node of a two-socket machine. Today the engine prints the number (`strata generate: PCIe probe: 4.2 GB/s host->device ...`) and carries on, and that start stays slow for its whole life. Measured on a Dell T630 (2x Xeon E5-2620 v3, two NUMA nodes, RTX 3090 on PCIe 3.0 x16 on socket 0, IQ3_S, engine 0.1.48). The same config was started 8 times, alternating no numactl and `numactl --preferred=0`, one speed run per start: | Start | PCIe probe GB/s | Short prompt tok/s (thinking off / on) | 32K read tok/s | Decode after | |---|---|---|---|---| | plain 1 | 11.7 | 93.2 / 69.6 | 1,794 | 59.0 | | plain 2 | **4.2** | 74.1 / 57.4 | **1,130** | 53.2 | | plain 3 | 11.8 | 101.5 / 72.7 | 1,851 | 69.4 | | plain 4 | **4.9** | 72.3 / 56.3 | **1,121** | 52.2 | | `--preferred=0` x4 | 9.2-11.4 | 88.5-90.5 / 72.6-78.0 | 1,796-1,862 | 57.3-66.0 | Two of four plain starts probed at ~4-5 GB/s and read prompts ~38% slower, with ~20% slower short-prompt decode. `--preferred=0` (memory policy only; the pool keeps its workers on both sockets) was fast on 4 of 4. With two cards, one per socket, `--interleave=all` is better (a start without numactl still probed 4.1 GB/s), but a slow start there cost much less (32K read 2,184 vs 2,055-2,326 tok/s across the other starts). Suggested: when the probe is well under the link's nominal rate (PCIe gen x width from the driver, or a fixed fraction such as 60%) on a machine with more than one NUMA node, print one line naming the likely cause and the fix, e.g. "pinned buffers may be on the far NUMA node; start under numactl --preferred=<GPU's node> (one GPU) or --interleave=all (one GPU per socket)". Optionally expose the measured GB/s in /props or /metrics so a monitor or `strata bench` can show it (#4481 covers recording it in reports). ### What do you do today instead? Start the server under `numactl --interleave=all` (two cards) or `--preferred=0` (one card), found by comparing probe lines across restarts by hand.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660491315 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#2004
No description provided.