§ 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

  1. · 9 min readBackporting 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.
  2. · 13 min readThunderbolt 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.
  3. · 14 min readA 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).
  4. · 21 min readRDMA 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.
  5. · 8 min readThe 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.

MetricValueUnitPostDate
LatencyPosts disagree
Ping over USB4, averageMac Studio ↔ MacBook Pro, IP0.254msBackporting Apple USB4 into an Asahi kernel, and what broke on the way
Ping over USB4, mean (min 0.055)Mac Studio ↔ Strix Halo, IP0.314msThunderbolt RDMA: 8.4 microseconds, almost none of it the cable
Ping across the cableMac Studio ↔ Strix Halo, IP0.23msThe tail stall: rescuing a stranded Thunderbolt ACK, 3945µs → 208µs
RDMA one-way floor, 2-64 Bib_send_lat, Mac Studio ↔ MacBook Pro8.4-9.9µsThunderbolt RDMA: 8.4 microseconds, almost none of it the cable
64 B floor, UC pingpongMac Studio ↔ Strix Halo57.64µsA Thunderbolt packet switch with no incarnation counter, and the five bugs it hid
Round trip, typical / floorMac Studio ↔ Strix Halo18.29 / 11.74µsRDMA 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 Halo29.9 / 26.3µsThe tail stall: rescuing a stranded Thunderbolt ACK, 3945µs → 208µs
Busy-poll completion-queue floorpolls the queue directly, no kernel path1.99-3.12µsThe 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 range11.0 - 11.9Gbit/sBackporting Apple USB4 into an Asahi kernel, and what broke on the way
UC SEND, one queue pair, levelMac Studio → MacBook Pronear 3.9Gbit/sThunderbolt RDMA: 8.4 microseconds, almost none of it the cable
1M UC pingpong, 4 KB681.33Mbit/sA Thunderbolt packet switch with no incarnation counter, and the five bugs it hid
16 MiB byte-verified echo1.049Gbit/sA 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/s1.28 (11.0 Gbit/s)GiB/sRDMA over a Thunderbolt cable: five driver bugs, a governor worth 1.87x, and the wall that is left
TCP over the same cable, A → B16.2Gbit/sRDMA 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 record995.93 MiB/s = 8.36Gbit/sThe tail stall: rescuing a stranded Thunderbolt ACK, 3945µs → 208µs
ib_write_bw, 256 KiB peak938 MiB/s ≈ 7.87Gbit/sThe 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 × 20Gb/sThunderbolt RDMA: 8.4 microseconds, almost none of it the cable
Mac Studio ↔ Strix Halo20 Gb/s x2 lanes—A Thunderbolt packet switch with no incarnation counter, and the five bugs it hid
Mac Studio ↔ Strix Haloone lane per direction20 each wayGb/sRDMA 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 run18,334 / 9,383framesA Thunderbolt packet switch with no incarnation counter, and the five bugs it hid
Rescued frames, one end / the other1,288 / 9,383framesRDMA 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 schedutil1.87xbandwidthRDMA 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 patch3945 / 208µs/iterThe 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/s3.51t/sRDMA 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 series2.20t/sRaising 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.

GlossaryThe Apple GPU on LinuxAll reading paths

A wide horizon at dusk: layered hills in muted plum and ochre above a lake that holds the last light, a family of crested cranes at the water's edge, an acacia in silhouette and a single bright star above the ridge.