§ series · 5 posts
RDMA over a Thunderbolt cable.
A Mac Studio running Linux gets a working USB4 port, then an RDMA device built on a Thunderbolt cable, first to a MacBook Pro and then to an AMD Strix Halo desktop. The series measures the link's latency and bandwidth, traces the driver bugs that froze it, and ends with a model too large for either machine running across both.
Read in this order
The posts
- Backporting Apple USB4 into an Asahi kernel, and what broke on the wayApple's USB4 controller backported into an Asahi 7.1.13 kernel: 11.9 Gbit/s TCP and 0.254 ms ping between two Macs on one cable.
- Thunderbolt RDMA: 8.4 microseconds, almost none of it the cableAn RDMA one-way floor of 8.4 µs, flat from 2 to 64 bytes; throughput levels off near 3.9 Gbit/s because of a 1024-frame receive ring.
- A Thunderbolt packet switch with no incarnation counter, and the five bugs it hidFive layered driver bugs sat behind a permanent freeze; a 1M-iteration pingpong now completes (96.19 s, 681.33 Mbit/s).
- RDMA over a Thunderbolt cable: five driver bugs, a governor worth 1.87x, and the wall that is leftA CPU governor worth 1.87x, 1.28 GiB/s on one queue pair, and a 284B model running across both machines at 3.51 t/s.
- The tail stall: rescuing a stranded Thunderbolt ACK, 3945µs → 208µsA stranded final-frame ACK fixed: an 8097-byte pingpong goes from 3945 to 208 µs per iteration; busy-poll floor 1.99-3.12 µs.
One table
The scoreboard
The headline numbers from every post in the series, exactly as each post prints them. Where posts report the same quantity differently, each figure keeps its own row and the group is marked.
| Metric | Value | Unit | Post | Date |
|---|---|---|---|---|
| LatencyPosts disagree | ||||
| Ping over USB4, averageMac Studio ↔ MacBook Pro, IP | 0.254 | ms | Backporting Apple USB4 into an Asahi kernel, and what broke on the way | |
| Ping over USB4, mean (min 0.055)Mac Studio ↔ Strix Halo, IP | 0.314 | ms | Thunderbolt RDMA: 8.4 microseconds, almost none of it the cable | |
| Ping across the cableMac Studio ↔ Strix Halo, IP | 0.23 | ms | The tail stall: rescuing a stranded Thunderbolt ACK, 3945µs → 208µs | |
| RDMA one-way floor, 2-64 Bib_send_lat, Mac Studio ↔ MacBook Pro | 8.4-9.9 | µs | Thunderbolt RDMA: 8.4 microseconds, almost none of it the cable | |
| 64 B floor, UC pingpongMac Studio ↔ Strix Halo | 57.64 | µs | A Thunderbolt packet switch with no incarnation counter, and the five bugs it hid | |
| Round trip, typical / floorMac Studio ↔ Strix Halo | 18.29 / 11.74 | µs | RDMA over a Thunderbolt cable: five driver bugs, a governor worth 1.87x, and the wall that is left | |
| 2-byte round trip, before / after governor fixMac Studio ↔ Strix Halo | 29.9 / 26.3 | µs | The tail stall: rescuing a stranded Thunderbolt ACK, 3945µs → 208µs | |
| Busy-poll completion-queue floorpolls the queue directly, no kernel path | 1.99-3.12 | µs | The tail stall: rescuing a stranded Thunderbolt ACK, 3945µs → 208µs | |
These are not one trend. The 8.4 µs figure is one-way between two Macs; the later figures are round trips between the Mac Studio and the Strix Halo, taken with different tools. The posts do not reconcile the 57.64 µs floor (09-11) with the 18.29 µs typical round trip a day later or the 26.3 µs 2-byte round trip on 09-26. The busy-poll floor (09-26, the latest) skips the kernel path the other figures include; that post puts the kernel path's p50 at ~20 µs. | ||||
| ThroughputPosts disagree | ||||
| TCP over USB4, 1 streamMac ↔ Mac, observed range | 11.0 - 11.9 | Gbit/s | Backporting Apple USB4 into an Asahi kernel, and what broke on the way | |
| UC SEND, one queue pair, levelMac Studio → MacBook Pro | near 3.9 | Gbit/s | Thunderbolt RDMA: 8.4 microseconds, almost none of it the cable | |
| 1M UC pingpong, 4 KB | 681.33 | Mbit/s | A Thunderbolt packet switch with no incarnation counter, and the five bugs it hid | |
| 16 MiB byte-verified echo | 1.049 | Gbit/s | A Thunderbolt packet switch with no incarnation counter, and the five bugs it hid | |
| One queue pair, after the governor fixrange 1.22-1.37 GiB/s | 1.28 (11.0 Gbit/s) | GiB/s | RDMA over a Thunderbolt cable: five driver bugs, a governor worth 1.87x, and the wall that is left | |
| TCP over the same cable, A → B | 16.2 | Gbit/s | RDMA over a Thunderbolt cable: five driver bugs, a governor worth 1.87x, and the wall that is left | |
| ib_write_bw record, 2026-09-15quoted as the previous record | 995.93 MiB/s = 8.36 | Gbit/s | The tail stall: rescuing a stranded Thunderbolt ACK, 3945µs → 208µs | |
| ib_write_bw, 256 KiB peak | 938 MiB/s ≈ 7.87 | Gbit/s | The tail stall: rescuing a stranded Thunderbolt ACK, 3945µs → 208µs | |
The 09-26 post calls 8.36 Gbit/s (ib_write_bw, 2026-09-15) the record, which is below the 1.28 GiB/s (11.0 Gbit/s) on one queue pair reported on 09-12. The 09-12 post lists ib_send_bw and ib_write_bw among its tools but does not name the verb behind its headline figure, and neither post says how the two relate. 7.87 Gbit/s (09-26) is the latest RDMA figure. The two TCP rows are different machine pairs. | ||||
| Link as trainedPosts disagree | ||||
| Mac Studio ↔ MacBook Pro"link_speed=20Gb/s width=0x2" | 2 × 20 | Gb/s | Thunderbolt RDMA: 8.4 microseconds, almost none of it the cable | |
| Mac Studio ↔ Strix Halo | 20 Gb/s x2 lanes | — | A Thunderbolt packet switch with no incarnation counter, and the five bugs it hid | |
| Mac Studio ↔ Strix Haloone lane per direction | 20 each way | Gb/s | RDMA over a Thunderbolt cable: five driver bugs, a governor worth 1.87x, and the wall that is left | |
The 09-11 and 09-12 posts describe the same Mac Studio ↔ Strix Halo cable differently: two 20 Gb/s lanes against one lane per direction. The 09-12 post says AMD USB4 controllers do not negotiate dual-lane operation across domains; the 09-11 post does not discuss it. | ||||
| Recovered frames, first run with the supplemental pollPosts disagree | ||||
| Rescued frames, host C / host Aone 1M-iteration run | 18,334 / 9,383 | frames | A Thunderbolt packet switch with no incarnation counter, and the five bugs it hid | |
| Rescued frames, one end / the other | 1,288 / 9,383 | frames | RDMA over a Thunderbolt cable: five driver bugs, a governor worth 1.87x, and the wall that is left | |
Both posts describe the first run after the supplemental receive poll was enabled. They agree on 9,383 for one end and on a rate of roughly one frame in 280, and give different counts for the other end (18,334 against 1,288). Neither says why. | ||||
| Fixes | ||||
| CPU governor reverted to schedutil | 1.87x | bandwidth | RDMA over a Thunderbolt cable: five driver bugs, a governor worth 1.87x, and the wall that is left | |
| 8097 B pingpong, before / after tail-stall patch | 3945 / 208 | µs/iter | The tail stall: rescuing a stranded Thunderbolt ACK, 3945µs → 208µs | |
| The 284B model (90.18 GiB, Q2_K) | ||||
| On the Mac alone, stock driver"BO creation failed" | fails to load | — | RDMA over a Thunderbolt cable: five driver bugs, a governor worth 1.87x, and the wall that is left | |
| Split across both machines over the cable, decodepp128 17.88 t/s | 3.51 | t/s | RDMA over a Thunderbolt cable: five driver bugs, a governor worth 1.87x, and the wall that is left | |
| On the Mac alone, memory cap raisedApple GPU series | 2.20 | t/s | Raising the Honeykrisp memory cap from 63 to 151 GiB, and the first 284B model on a silent Mac Studio | |
The 09-12 post says the model does not run on the Mac alone. The next day's post in the Apple GPU series raised the driver's memory cap and ran it on the Mac alone at 2.20 t/s. Each statement holds for the driver its post used. The 09-12 post also reports that the split run ended with a corrupted heap and an unexplained reset of the Mac. | ||||
