Test runbook (RDMA bring-up)

ConnectX-3/-4 RDMA bring-up runbook.

Goal for the first physical test: **load voltron.ko and establish an RDMA RC connection between two nodes (or loopback on one), exchanging a HELLO message.** This proves the in-kernel verbs data path before we layer syscall forwarding.

10. Prerequisites on each test machine

21. RDMA device (Mellanox ConnectX-3 / ConnectX-4)

Load drivers & confirm the device

# CX-3:
sudo modprobe mlx4_ib        # pulls mlx4_core + mlx4_en
# CX-4:
sudo modprobe mlx5_ib        # pulls mlx5_core

rdma link show               # expect e.g. mlx5_0/1 or mlx4_0/1 state ACTIVE
ibv_devices                  # lists the HCA
ibstat                       # link state / rate (optional)

ConnectX-3 only: ensure the port is in Ethernet (RoCE) mode

CX-3 ports can be InfiniBand or Ethernet; RoCE needs Ethernet.

ibv_devinfo | grep -i link_layer      # want: Ethernet (not InfiniBand)
# if it shows InfiniBand, set port type to eth and reload mlx4_core:
#   echo eth > /sys/bus/pci/devices/<PCI_BDF>/mlx4_port1
# or persist via module param:  options mlx4_core port_type_array=2,2

ConnectX-4 is Ethernet/RoCE v2 out of the box — no action.

Assign IPs and verify RoCE v2 GIDs

sudo ip addr add 10.0.0.1/24 dev <mlx-netdev>   # node A (use .2 on node B)
sudo ip link set <mlx-netdev> up

# find the RoCE v2 GID bound to that IP (rdma_cm selects it via routing):
ibv_devinfo -v | grep -iE 'GID|link_layer'      # or: show_gids (rdma-core)

Use these IPs as the node addr in the steps below. rdma_cm (RoCE v2) will resolve the right GID from the source IP route automatically.

Fabric: back-to-back or through a lossless (PFC/ECN) switch. For a 2-node back-to-back cable no switch config is needed.
Fallback only if hardware is unavailable: SoftRoCE (modprobe rdma_rxe; rdma link add rxe0 type rxe netdev <dev>).

32. Load the module

sudo insmod voltron.ko
dmesg | tail
#  voltron: rdma transport ready
#  voltron: loaded v0.0.1 (phase 0: sysfs + node table + cgroup policy)
ls /sys/kernel/voltron/                  # version default_mode cluster/ policy/
ls /sys/kernel/voltron/cluster/          # add_node del_node local_node_id rdma_listen nodes/

43a. Loopback test (single machine)

Node talks to itself over rxe/RoCE on 127-style or its own IP.

# start listener on port 18515
echo 18515 | sudo tee /sys/kernel/voltron/cluster/rdma_listen

# register "self" as a peer (id 1), using this host's RDMA-capable IP
echo "1 192.168.1.10 x" | sudo tee /sys/kernel/voltron/cluster/add_node

# connect to it on the listener port
echo 18515 | sudo tee /sys/kernel/voltron/cluster/nodes/1/connect
dmesg | tail         # expect: node 1: connected ... / incoming connection established

# send a HELLO
echo "hello from node 1" | sudo tee /sys/kernel/voltron/cluster/nodes/1/send
dmesg | tail         # expect: node X recv (18 bytes): hello from node 1
#                      and:    node 1 send complete

53b. Two-node test

On node B (10.0.0.2) — the listener / deputy side:

sudo insmod voltron.ko
echo 18515 | sudo tee /sys/kernel/voltron/cluster/rdma_listen

On node A (10.0.0.1) — the initiator:

sudo insmod voltron.ko
echo "2 10.0.0.2 x" | sudo tee /sys/kernel/voltron/cluster/add_node
echo 18515          | sudo tee /sys/kernel/voltron/cluster/nodes/2/connect
echo "hi B"         | sudo tee /sys/kernel/voltron/cluster/nodes/2/send

Expected: on A dmesg shows node 2: connection established (client) and send complete; on B dmesg shows incoming connection established (server) and recv (… bytes): hi B.

64. voltron-ctld (optional, drives the node table instead of manual echoes)

cd userspace/voltron-ctld && make
sudo ./voltron-ctld -c voltron-ctld.conf     # pushes local_node_id + peers to sysfs
# (manual connect/send still via sysfs for this bring-up)

75. Cleanup

sudo rmmod voltron
# remove SoftRoCE link if used:
sudo rdma link delete rxe0

8Troubleshooting

9Current limitations (expected)