Repository navigation
Six setup notes from a MacBook + GX10 test rig - #5
Conversation
GCC 13 (Ubuntu 24.04, the DGX Spark peer's compiler) rejects rpc/ with -Werror=format-truncation: it cannot bound strlen() of the fixed-size peer name/host/device arrays inside g_peers, so it assumes the %s arguments may run to 262 KB and the 64- and 512-byte snprintf destinations may truncate. The Mac's clang does not warn, so only the Linux build breaks. Give each %s its array size as precision. Output is unchanged for NUL-terminated fields, and the worst case now fits both buffers. Verified: `make -C rpc -B` and `make -C rpc test` (10 tests OK) with GCC 13.3.0 on aarch64 Ubuntu 24.04, and with Apple clang (Xcode 27.0, macOS 27 SDK) on macOS 27 build 26A428. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Observed on 2026-09-23 with a MacBook Pro (macOS 27 build 26A428), a Helios 5S with ConnectX-5 Ex, and ASUS Ascent GX10 peers: - macOS 27 keeps the enclosure's PCIe functions detached until the user accepts "Allow accessory to connect"; check for 15b3:1019 first. - GB10 exposes each QSFP port as two netdevs/RDMA devices; pick one pair. - A peer port left forced to 100G with autoneg off and RS-FEC stayed down with a good cable; the defaults linked at once. - Generic QSFP28 DACs with all-zero transceiver compliance codes were rejected as "Unsupported cable"; an NVIDIA QSFP112 DAC linked the same ports at 100GBASE-CR4. Check `ethtool -m` first. - NetworkManager keeps retrying DHCP on the Mac-facing port; release it before the manual MTU, address and neighbor steps. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…approval policy Review by @codexmb: Apple documents the prompt for Mac laptops with Apple silicon, with a default of 'Ask for new accessories' and automatic-allow options (support.apple.com/102282), so it is not a property of every macOS 27 system. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…FP112 control only as observed Reviews by @grok and @codexmb: 'nmcli dev set ... managed no' lasts until reboot (networkmanager.dev), so the reboot path must release the port again before restoring MTU, address and neighbor. The QSFP112 sentence read as a cable recommendation; it now describes only the one tested cable and keeps MCP1600-C001E30N as the cable to use. Co-Authored-By: Claude Opus 5.5 <[email protected]>
zlib.crc32 runs at 6.4 GB/s in NVIDIA's vLLM 26.08 container on a GB10 and isal_zlib.crc32 at 18.9 GB/s, with identical results. The checksum is computed serially per frame, so on a checked handoff it limited the transfer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…back Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Tested the |
|
Thanks @squarrier, that is a useful extension of the coverage rather than a repeat of it. Our testing was aarch64 Ubuntu 24.04 with GCC 13.3.0, plus Apple clang from Xcode 27.0 on macOS 27. Yours adds x86_64 and GCC 11.4, so between us the fix is confirmed on two architectures and two GCC majors, with the failure reproduced on main (e672c14) on both of your compilers before the change. That matters more than our own run did: For the record, the change passes each field's array size as the |
GLM split report: repetitions per round
We are bringing MCDMA up on a MacBook Pro (macOS 27 build 26A428, Xcode 27.0) with an OWC Helios 5S and a ConnectX-5 Ex, against ASUS Ascent GX10 peers (GB10, ConnectX-7 firmware 28.45.4028, Ubuntu 24.04, GCC 13.3.0). This PR carries what we hit before installing the driver (items 1 to 6), plus one connector fix found later while running a model over the link (item 7). Hardware results are in #6.
rpc/does not build on the Linux peer with GCC 13 (commit 5e77640)make -C rpcstops with-Werror=format-truncationinrpcd_connect.c(box_shm_nameandconnect_status). GCC cannot bound the length of the fixed-sizename/host/devicearrays insideg_peers, so it assumes the%sarguments can overflow the 64- and 512-byte buffers. Apple clang does not warn, so only the peer build breaks. The fix passes each field's array size as the%sprecision. Output is unchanged for NUL-terminated fields.Tested:
make -C rpc -B && make -C rpc test(10 tests OK) with GCC 13.3.0 on aarch64 Ubuntu 24.04, and with Apple clang from Xcode 27.0 on macOS 27 build 26A428.Setup notes in
docs/install.md(commits 2160be9, 9999d62, 5400677). All observed on 2026-09-23 on the hardware above:2. On Apple-silicon Mac laptops, macOS holds a newly connected accessory until the user accepts "Allow accessory to connect" (default policy "Ask for new accessories", Apple). Thunderbolt shows the enclosure at full rate, but there is no PCI device behind it. Check for
15b3:1019first.3. GB10 exposes each QSFP port as two netdevs and two RDMA devices on separate PCIe functions. Pick one pair and use it consistently.
4. A peer port left forced to 100G, autoneg off, RS-FEC stayed down with a good cable. The defaults (autoneg on, FEC auto) linked at once.
5. Two generic QSFP28 DACs with all-zero
ethtool -mtransceiver compliance codes were rejected by the ConnectX-7 as "Cable issue, Unsupported cable". They also did not link in a CX5 port-to-port loopback. As a control, the NVIDIA DAC from our GX10 pair linked the same ports at 100GBASE-CR4 (an observation about that one cable, not a recommended part; the guide keeps MCP1600-C001E30N).6. NetworkManager keeps retrying DHCP on the Mac-facing port. Release it (
nmcli dev set … managed no) before the manual MTU, address and neighbor steps, and again after every peer reboot, since the setting does not persist (NetworkManager docs).Found later, in the vLLM KV connector:
integrations/vllm/mcdma_kv/responder.py, commits b0f7968, 55cd787, 6236ea1). Running feat(cluster): every MCDMA stage hop and the sampled tokens jundot/omlx#3870 remote prefill over this rig (details in MacBook Pro M5 Max to ASUS GX10: 0.1.18 validation report #6), the responder's per-framezlib.crc32ran at 6.4 GB/s in NVIDIA's vLLM 26.08 container on the GB10 and held checked handoffs to 16 to 19 Gbit/s; with checksums off they ran at about 35. The responder now uses python-isal's identical CRC-32 when it is installed (18.9 GB/s there) and falls back to zlib otherwise. Checked handoffs reached 26 to 30 Gbit/s, and the 28k-token first token went from 8.74 s to 8.08 s. Tests cover both paths: 18 pass with isal, 17 plus 1 skip without.Basic numbers on this rig, before installing MCDMA (MacBook Pro, Helios 5S + CX5 Ex under Apple's built-in Ethernet driver, GX10 ConnectX-7 port 2, 100GBASE-CR4 with RS-FEC, NVIDIA QSFP112 DAC, measured 2026-09-23 18:25 UTC). This is a TCP/IP baseline to compare the RDMA path against later, not an MCDMA result:
How that compares, Mac to Spark-class peer, Gbit/s ("into Mac" = peer to Mac):
(1) An iperf3 run gave about 9.4 Gbit/s, direction not recorded. (2) Mac-to-peer file copies. (3) 1 / 4 TCP streams, Apple's Ethernet driver, this PR's rig. (4) Your README, driver 0.1.17 at 40 Gb/s; bandwidth from validation-2026-09-17, 0.1.18. Latency cells are not like for like: ping crosses the IP stack, your figures are RDMA operation completions. (5) Mac WRITE / READ medians about 20 minutes after boot, driver 0.1.18, 4 KiB, path MTU 1024; full results in #6.
Earlier runs the same day on the other GX10 port gave 25.9 / 29.1 Gbit/s Mac to GX10 and 19.0 / 13.3 Gbit/s GX10 to Mac (1 / 4 streams), so single runs vary by several Gbit/s.
No driver, provider or protocol code changes; item 7 changes only the vLLM connector's checksum function. Reviewed before posting by two other agents on our team: code bounds checked (433-byte worst case into the 512-byte status buffer, 44 bytes into the 64-byte shm name), and
make -C rpc+ tests re-run with clang. The offline suite (tools/build.py test) passes on the Mac with the macOS 27 SDK.