### Run inside a stock PyTorch container with USB4 RDMA provider Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Load the kernel module on the host, then run this Docker command to start a PyTorch container with InfiniBand device access and memlock limits. Inside the container, install the USB4 RDMA provider .deb package (choose .jammy for Ubuntu 22.04, .noble for 24.04) and verify the device with ibv_devices. ```sh docker run --rm -it \ --device=/dev/infiniband \ --cap-add=IPC_LOCK --ulimit memlock=-1 \ pytorch/pytorch:latest bash # inside the container — pick .jammy for ubuntu 22.04, .noble for 24.04: apt install -y ibverbs-utils \ https://github.com/hellas-ai/thunderbolt-ibverbs/releases/latest/download/usb4-rdma-provider_0.3.0.jammy_amd64.deb ibv_devices # device node GUID # ------ ---------------- # usb4_rdma0 ... ``` -------------------------------- ### Build and install DKMS module with make targets Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Clone the repository and run dkms-add, dkms-build, and dkms-install. These targets read module name/version from dkms.conf and default to the running kernel; use KVER= to target another installed kernel with matching headers. ```sh git clone https://github.com/hellas-ai/thunderbolt-ibverbs.git cd thunderbolt-ibverbs sudo make dkms-add sudo make dkms-build sudo make dkms-install ``` -------------------------------- ### Run perftest bandwidth benchmark Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Runs ib_write_bw with the reported RDMA device. Peer A starts first, then peer B connects to peer A's address. ```sh # peer A ib_write_bw -d usb4_rdma0 # peer B ib_write_bw -d usb4_rdma0 ``` -------------------------------- ### Install build requirements on Debian/Ubuntu Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Install matching kernel headers and module build tools for Debian or Ubuntu. Required before building the DKMS module. ```sh sudo apt install build-essential dkms git kmod "linux-headers-$(uname -r)" rdma-core perftest ``` -------------------------------- ### Install build requirements on Fedora Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Install matching kernel headers and module build tools for Fedora. Required before building the DKMS module. ```sh sudo dnf install dkms gcc git kernel-devel kernel-headers kmod make rdma-core perftest ``` -------------------------------- ### Run tbv_vllm_smoke.sh for two-node vLLM transport smoke test Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Use this packaged bench helper for a repeatable two-node vLLM transport smoke test. It starts Ray, runs a tiny TP=2 vLLM workload, captures /sys/kernel/debug/thunderbolt_ibverbs/summary before/after, and fails if the TP run completes without moving RDMA counters. ```sh tbv_vllm_smoke.sh \ --hosts 192.168.23.136,192.168.23.192 \ --iface eno1 \ --transport native \ --hca usb4_rdma5 \ --wrapper /path/to/vllm-env \ --require-rdma auto ``` -------------------------------- ### Install build requirements on Arch Linux Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Install matching kernel headers and module build tools for Arch Linux. Required before building the DKMS module. ```sh sudo pacman -S --needed base-devel dkms git kmod linux-headers rdma-core perftest ``` -------------------------------- ### Install DKMS and provider packages on Debian/Ubuntu, Fedora, and Arch Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Install the DKMS source package and userspace libibverbs provider from GitHub Releases. Debian/Ubuntu requires Linux 6.14+; DKMS builds the kernel module against the running kernel and rebuilds after kernel upgrades. ```sh # Debian or Ubuntu (needs Linux 6.14+) sudo apt install \ ./thunderbolt-ibverbs-dkms__all.deb \ ./usb4-rdma-provider__amd64.deb # Fedora sudo dnf install \ ./thunderbolt-ibverbs-dkms--1.noarch.rpm \ ./usb4-rdma-provider--1.x86_64.rpm # Arch sudo pacman -U \ ./thunderbolt-ibverbs-dkms--1-any.pkg.tar.zst \ ./usb4-rdma-provider--1-x86_64.pkg.tar.zst ``` -------------------------------- ### Run tbv-perftest with separate SSH and RDMA addresses Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/README.md Use when SSH and RDMA use different addresses. The runner SSHs --server/--client but passes --*-data-addr to the perftest client so address exchange selects the Thunderbolt GID. Example uses goblin rdma_en2 at 192.168.0.1 and mbp rdma_en3 at 192.168.0.2. ```sh # Example: goblin rdma_en2 at 192.168.0.1, mbp rdma_en3 at 192.168.0.2. nix run .#tbv-perftest -- \ --server goblin \ --client 192.168.23.240 \ --server-dev rdma_en2 \ --client-dev rdma_en3 \ --server-data-addr 192.168.0.1 \ --client-data-addr 192.168.0.2 \ --only 'bw.uc.ib_send_bw.size65536.qps1' \ --only 'lat.uc.ib_send_lat.size4096' \ --directions both \ --no-rail-check \ --tag apple-uc-smoke \ --csv "$out/apple-uc-smoke.csv" \ --jsonl "$out/apple-uc-smoke.jsonl" ``` -------------------------------- ### Run ad-hoc benchmark subsets with --only filters Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/README.md Runs filtered benchmark subsets using one or more --only fnmatch patterns. Includes examples for smoke tests, read-outstanding sweeps, four-rail native expectations, and RXE over LAN bridge or thunderbolt_net. ```sh # Smoke-equivalent: a couple of small BW + a couple of LAT cases nix run .#tbv-perftest -- --hosts strix-1,strix-2 \ --only 'bw.*size4096.qps1' --only 'lat.*size64' --only 'lat.*size4096' \ --tag smoke --csv "$out/smoke.csv" --jsonl "$out/smoke.jsonl" ``` ```sh # Read-outstanding sweep only nix run .#tbv-perftest -- --hosts strix-1,strix-2 \ --only 'readouts.*' --timeout 120 --expect-rails 1 \ --tag read-outs --csv "$out/read-outs.csv" --jsonl "$out/read-outs.jsonl" ``` ```sh # Four-rail native expectations nix run .#tbv-perftest -- --hosts strix-1,strix-2 \ --expect-rails 4 --expect-speed 20Gb/s \ --tag native4rail --csv "$out/native4rail.csv" --jsonl "$out/native4rail.jsonl" ``` ```sh # RXE over the LAN bridge nix run .#tbv-perftest -- --hosts strix-1,strix-2 \ --dev rxe_eth0 --backend '' --expect-rails 0 --expect-speed any \ --tag rxe-ethernet --csv "$out/rxe-ethernet.csv" --jsonl "$out/rxe-ethernet.jsonl" ``` ```sh # RXE over thunderbolt_net nix run .#tbv-perftest -- --hosts strix-1,strix-2 \ --dev rxe_tb0 --backend '' --expect-rails 0 --expect-speed any \ --tag rxe-tbnet --csv "$out/rxe-tbnet.csv" --jsonl "$out/rxe-tbnet.jsonl" ``` -------------------------------- ### Build module package with Nix Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Builds the thunderbolt-ibverbs module package from the flake. ```sh nix build github:hellas-ai/thunderbolt-ibverbs#thunderbolt-ibverbs ``` -------------------------------- ### Persistent configuration options Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Place known-good options in /etc/modprobe.d/thunderbolt-ibverbs.conf to make them persistent. ```text profile=linux_perf|mac_compat|mixed tbnet=auto|allow|prefer_rdma|block lanes=auto|N|MIN-MAX register_verbs=0|1 native_wr_striping=0|1 native_fragment_striping=0|1 zcopy_min_bytes= qp_timeout_ms= nhi_interrupt_throttle_ns= ``` -------------------------------- ### Build other flake outputs Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Builds rdma-core-usb4, perftest, and bench-tools outputs. Comments describe each output. ```sh nix build github:hellas-ai/thunderbolt-ibverbs#rdma-core-usb4 # libibverbs + usb4_rdma provider nix build github:hellas-ai/thunderbolt-ibverbs#perftest # ib_write_bw/ib_send_bw/... linked against rdma-core-usb4 nix build github:hellas-ai/thunderbolt-ibverbs#bench-tools # u4_pingpong, uc_oneway, rc_write_*, tbv_perftest_runner, etc. ``` -------------------------------- ### NixOS module configuration Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Adds the flake input and imports the NixOS module to enable thunderbolt-ibverbs. ```nix { inputs.thunderbolt-ibverbs.url = "github:hellas-ai/thunderbolt-ibverbs"; outputs = { nixpkgs, thunderbolt-ibverbs, ... }: { nixosConfigurations.host = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ thunderbolt-ibverbs.nixosModules.default { hardware.thunderbolt-ibverbs.enable = true; } ]; }; }; } ``` -------------------------------- ### Build Nix Thunderbolt kernel and module Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Builds the custom Linux Thunderbolt kernel and the corresponding module package from the flake. ```sh nix build .#linux-thunderbolt nix build .#thunderbolt-ibverbs-linux-thunderbolt ``` -------------------------------- ### Directory layout for strix-noiommu-mbp-1x40g Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/results/strix-noiommu-mbp-1x40g/perftest.md Shows the expected file structure for this hardware profile. CSV symlinks dangle until a sweep populates result/ per the recreate commands. ```text strix-noiommu-mbp-1x40g/ ├── perftest.md this file ├── perftest-tbverbs-strix1.csv -> result/ strix-1 ↔ mac, thunderbolt_ibverbs ├── perftest-tbverbs-strix2.csv -> result/ strix-2 ↔ mac, thunderbolt_ibverbs └── result/ (gitignored; populated by `nix run`) ``` -------------------------------- ### Arch (AUR): PKGBUILD source and prepare() Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/packaging/rdma-core-patches/README.md Adds the patches to the PKGBUILD source array and applies them in prepare(). ```bash source=( "git+https://github.com/linux-rdma/rdma-core.git#tag=v62.0" "0001-providers-usb4_rdma-add-USB4-soft-RDMA-provider.patch" "0002-CMakeLists.txt-build-the-usb4_rdma-provider.patch" ) prepare() { cd "$srcdir/rdma-core" patch -p1 < ../0001-providers-usb4_rdma-add-USB4-soft-RDMA-provider.patch patch -p1 < ../0002-CMakeLists.txt-build-the-usb4_rdma-provider.patch } ``` -------------------------------- ### Run tbv-perftest with SSH config Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Runs the generated benchmark runner with an SSH config and host/data address arguments. ```sh nix run .#tbv-perftest -- \ --ssh-config /tmp/tbv_ssh_config \ --hosts goblin,mbp-tb \ --data-addrs goblin=192.168.0.1,mbp-tb=192.168.0.2 ``` -------------------------------- ### Default overlay composition Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Downstream flakes can compose the package set through the default overlay. ```nix { nixpkgs.overlays = [ thunderbolt-ibverbs.overlays.default ]; } ``` -------------------------------- ### Load module with native Linux transport enabled Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Loads the thunderbolt_ibverbs module with the native Linux transport enabled. Requires Thunderbolt/USB4 hosts connected on both Linux peers. ```sh sudo modprobe thunderbolt_ibverbs \ profile=linux_perf \ bind_services=1 \ allocate_rings=1 \ start_rings=1 \ negotiate_native=1 \ enable_tunnels=1 \ register_verbs=1 ``` -------------------------------- ### Run full benchmark suite with tbv-perftest Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/README.md Runs the complete benchmark suite across specified hosts in both directions, saving results to CSV and JSONL files. Use --list or --dry-run to inspect generated cases before running. ```sh out=/tmp/tbv-full mkdir -p "$out" nix run .#tbv-perftest -- \ --hosts strix-1,strix-2 \ --directions both \ --tag full \ --csv "$out/full.csv" \ --jsonl "$out/full.jsonl" ``` -------------------------------- ### NixOS module configuration Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md NixOS configuration to use the custom kernel package set and enable the thunderbolt-ibverbs module. ```nix { pkgs, inputs, ... }: let system = pkgs.stdenv.hostPlatform.system; tbv = inputs.thunderbolt-ibverbs.packages.${system}; in { boot.kernelPackages = pkgs.linuxPackagesFor tbv.linux-thunderbolt; hardware.thunderbolt-ibverbs.enable = true; } ``` -------------------------------- ### Load module with explicit RoCE netdev Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Loads the module with an explicit RoCE netdev for GID metadata when userspace requires it. Pass the netdev name (e.g., thunderbolt0) via roce_netdev. ```sh sudo modprobe thunderbolt_ibverbs \ profile=linux_perf \ bind_services=1 allocate_rings=1 start_rings=1 \ negotiate_native=1 enable_tunnels=1 register_verbs=1 \ roce_netdev=thunderbolt0 ``` -------------------------------- ### Recreate perftest for UC-compatible cases on 8845HS-MBP Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/results/8845HS-mbp-1x40g/perftest.md Run the tbv-perftest benchmark against the Mac over Thunderbolt, filtering to UC-compatible cases because Apple's RDMA is UC-only. Requires MBP_IP to be set or resolved from the 'mbp' host; uses --no-rail-check to bypass the default four-rail assertion. ```sh out=bench/results/8845HS-mbp-1x40g/result mkdir -p "$out" # Mac is on wifi DHCP and renames between sessions; resolve at # recreate time, or set MBP_IP= in the environment. MBP_IP=$(getent hosts mbp 2>/dev/null | awk '{print $1}') MBP_IP=${MBP_IP:?set MBP_IP to your mac LAN ip} nix run .#tbv-perftest -- \ --hosts 8845HS,"$MBP_IP" \ --no-rail-check \ --base-port 19700 \ --tag perftest-tbverbs-8845HS \ --csv "$out/perftest-tbverbs-8845HS.csv" \ --jsonl "$out/perftest-tbverbs-8845HS.jsonl" \ --server-dev usb4_rdma4 \ --client-dev rdma_en3 \ --only '*.uc.*' --only 'odd.uc.*' --only 'odd.ud.*' ``` -------------------------------- ### Check device registration Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Verifies that the device registered by checking kernel messages and listing RDMA devices. ```sh dmesg | grep thunderbolt_ibverbs ibv_devices rdma link ``` -------------------------------- ### Declare usb4_rdma provider Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/userspace/usb4_rdma/CMakeLists.txt Registers the usb4_rdma provider with rdma-core, compiling usb4_rdma.c. ```cmake rdma_provider(usb4_rdma usb4_rdma.c ) ``` -------------------------------- ### Recreate rxe_tbnet perftest (RXE over thunderbolt_net) Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/results/strix-2p-noiommu-2x40g/perftest.md Swaps thunderbolt_ibverbs for thunderbolt_net, configures IP addresses and MTU on thunderbolt0/1, adds RXE links, then runs the perftest sweep. Requires module swap because both drivers cannot own TB services simultaneously. ```sh for h in strix-1 strix-2; do ssh root@$h 'rdma link del rxe_eth0 2>/dev/null; modprobe -r thunderbolt_ibverbs; modprobe thunderbolt_net' done ssh root@strix-1 'ip addr add 10.42.0.1/24 dev thunderbolt0; ip addr add 10.43.0.1/24 dev thunderbolt1; ip link set thunderbolt0 up mtu 65520; ip link set thunderbolt1 up mtu 65520' ssh root@strix-2 'ip addr add 10.42.0.2/24 dev thunderbolt0; ip addr add 10.43.0.2/24 dev thunderbolt1; ip link set thunderbolt0 up mtu 65520; ip link set thunderbolt1 up mtu 65520' for h in strix-1 strix-2; do ssh root@$h 'rdma link add rxe_tb0 type rxe netdev thunderbolt0; rdma link add rxe_tb1 type rxe netdev thunderbolt1' done out=bench/results/strix-2p-noiommu-2x40g/result mkdir -p "$out" nix run .#tbv-perftest -- \ --hosts strix-1,strix-2 \ --dev rxe_tb0 --backend '' \ --no-rail-check \ --base-port 19200 \ --tag perftest-rxe_tbnet \ --csv "$out/perftest-rxe_tbnet.csv" \ --jsonl "$out/perftest-rxe_tbnet.jsonl" ``` -------------------------------- ### uc_oneway --check output at matrix point (1000×4096 B, qps=1) Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/results/8845HS-mbp-1x40g/perftest.md Wall-clock truth measured with `uc_oneway --check` at the same matrix point (1000 × 4096 B, qps=1). Shows forward and reverse rates and elapsed times, both passing the check. ```text FORWARD mac → 8845HS: 1000/1000 messages, --check PASS, rate 6.45 Gb/s, elapsed 0.005 s REVERSE 8845HS → mac: 1000/1000 messages, --check PASS, rate 1.76 Gb/s, elapsed 0.019 s ``` -------------------------------- ### Recreate tbverbs native four-rail perftest Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/results/strix-2p-noiommu-2x40g/perftest.md Runs the native thunderbolt_ibverbs perftest sweep on two Strix Halo hosts with four rails expected. Requires the result directory to exist and the `tbv-perftest` flake app. ```sh out=bench/results/strix-2p-noiommu-2x40g/result mkdir -p "$out" nix run .#tbv-perftest -- \ --hosts strix-1,strix-2 \ --expect-rails 4 --expect-speed 20Gb/s \ --base-port 19000 \ --tag perftest-tbverbs \ --csv "$out/perftest-tbverbs.csv" \ --jsonl "$out/perftest-tbverbs.jsonl" ``` -------------------------------- ### Debian/Ubuntu: apply patches and build rdma-core Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/packaging/rdma-core-patches/README.md Commands to fetch the rdma-core source, add the patches to debian/patches, and build the packages. ```sh apt-get source rdma-core cd rdma-core-* cp .../packaging/rdma-core-patches/000*.patch debian/patches/ ls debian/patches/000*.patch >> debian/patches/series dpkg-buildpackage -b -uc -us sudo dpkg -i ../librdmacm1_*.deb ../libibverbs1_*.deb ../ibverbs-providers_*.deb ``` -------------------------------- ### Build module without DKMS against running kernel Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md One-off build for the currently running kernel. Requires make and root for modules_install and depmod. ```sh make KVER="$(uname -r)" sudo make KVER="$(uname -r)" modules_install sudo depmod -a ``` -------------------------------- ### Recreate rxe_eth perftest (RXE over br0.lan) Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/results/strix-2p-noiommu-2x40g/perftest.md Sets up RXE on br0.lan on both hosts and runs the perftest sweep with the rxe_eth0 device. Uses `--no-rail-check` and a different base port (19100). ```sh ssh root@strix-1 'modprobe rdma_rxe; rdma link del rxe_eth0 2>/dev/null; rdma link add rxe_eth0 type rxe netdev br0.lan' ssh root@strix-2 'modprobe rdma_rxe; rdma link del rxe_eth0 2>/dev/null; rdma link add rxe_eth0 type rxe netdev br0.lan' out=bench/results/strix-2p-noiommu-2x40g/result mkdir -p "$out" nix run .#tbv-perftest -- \ --hosts strix-1,strix-2 \ --dev rxe_eth0 --backend '' \ --no-rail-check \ --base-port 19100 \ --tag perftest-rxe_eth \ --csv "$out/perftest-rxe_eth.csv" \ --jsonl "$out/perftest-rxe_eth.jsonl" ``` -------------------------------- ### Configure MLX distributed config for Thunderbolt Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/README.md Run from the first Mac before perftest. Uses LAN/Wi-Fi/Ethernet SSH names, not Thunderbolt data addresses. Creates the IPv4-mapped GID at index 1 that JACCL and Apple's provider expect. ```sh # Run from the first Mac. Use LAN/Wi-Fi/Ethernet SSH names here, not the # Thunderbolt data addresses. mlx.distributed_config \ --hosts localhost, \ --over thunderbolt \ --backend jaccl \ --auto-setup \ --output-hostfile /tmp/mlx_hosts_auto.json ``` -------------------------------- ### Set pre-v55 rdma-core compatibility defines Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/userspace/usb4_rdma/CMakeLists.txt Adds USB4_RDMA_OLD_GET_CONTEXT and USB4_RDMA_OLD_REG_DMABUF_MR definitions when building against rdma-core older than v55, matching the provider source's fallback forms. ```cmake if(PACKAGE_VERSION VERSION_LESS "55") add_definitions(-DUSB4_RDMA_OLD_GET_CONTEXT=1) add_definitions(-DUSB4_RDMA_OLD_REG_DMABUF_MR=1) endif() ``` -------------------------------- ### Recreate perftest for strix-1 and strix-2 Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/results/strix-noiommu-mbp-1x40g/perftest.md Shell commands to run the perftest sweep for each strix host paired with the mac. Uses --no-rail-check because the default rail-count assertion expects four rails; one cable yields 2 rails to the mac. ```sh out=bench/results/strix-noiommu-mbp-1x40g/result mkdir -p "$out" # strix-1 ↔ mac nix run .#tbv-perftest -- \ --hosts strix-1, \ --no-rail-check \ --base-port 19400 \ --tag perftest-tbverbs-strix1 \ --csv "$out/perftest-tbverbs-strix1.csv" \ --jsonl "$out/perftest-tbverbs-strix1.jsonl" # strix-2 ↔ mac nix run .#tbv-perftest -- \ --hosts strix-2, \ --no-rail-check \ --base-port 19500 \ --tag perftest-tbverbs-strix2 \ --csv "$out/perftest-tbverbs-strix2.csv" \ --jsonl "$out/perftest-tbverbs-strix2.jsonl" ``` -------------------------------- ### Unload module Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Unloads the thunderbolt_ibverbs module before changing static load parameters. ```sh sudo modprobe -r thunderbolt_ibverbs ``` -------------------------------- ### Fedora/RHEL: rdma-core.spec patch declarations Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/packaging/rdma-core-patches/README.md Adds the patches to the spec file and uses %autosetup to apply them. ```spec Patch1000: 0001-providers-usb4_rdma-add-USB4-soft-RDMA-provider.patch Patch1001: 0002-CMakeLists.txt-build-the-usb4_rdma-provider.patch ... %prep %autosetup -n rdma-core-%{version} -p1 ``` -------------------------------- ### Summarize perftest CSVs Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/bench/results/strix-2p-noiommu-2x40g/perftest.md Runs the summarization script over all perftest CSV files in the result directory. Use after recreating any backend locally so the committed symlink resolves. ```sh python3 bench/summarize_perftest.py bench/results/strix-2p-noiommu-2x40g/perftest-*.csv ``` -------------------------------- ### Patch file list Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/packaging/rdma-core-patches/README.md Lists the two patch files that add the usb4_rdma provider and build integration. ```text 0001-providers-usb4_rdma-add-USB4-soft-RDMA-provider.patch Adds providers/usb4_rdma/ (the provider source files) 0002-CMakeLists.txt-build-the-usb4_rdma-provider.patch Adds `add_subdirectory(providers/usb4_rdma)` to the top-level CMakeLists.txt so the provider is built and installed. ``` -------------------------------- ### Configure kernelPatchesFor in NixOS configuration Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/kernel-workflow/patches/README.md Use this Nix expression in a NixOS configuration to apply the portable kernel patch stack. It rejects kernels older than 7.2. ```nix boot.kernelPatches = thunderbolt-ibverbs.lib.kernelPatchesFor config.boot.kernelPackages.kernel.version; ``` -------------------------------- ### Regenerate patches script Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/packaging/rdma-core-patches/README.md Runs the regeneration script to refresh the patches from the provider source. ```sh ./packaging/regen-rdma-core-patches.sh ``` -------------------------------- ### Remove DKMS module with make dkms-remove Source: https://github.com/hellas-ai/thunderbolt-ibverbs/blob/main/README.md Removes the version declared in the current checkout from all kernels. ```sh sudo make dkms-remove ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.