HPMC User Guide v 1.00
© 2026 Bassem W. Jamaleddine
HPMC calculators that are fabric capable can be interconnected together to take advange of RDMA via DAPL to execute programs and distribute the processing on neighboring HPMC's.
When the HPMC is equipped with a switching card device named qib0, it is capable to communicate with a neighboring HPMC that is equipped with a similar card via the switch.
To find out if your HPMC is RDMA capable and it is running properly, you need to verify that "IB/RoCE v1" is up. The following steps show how to determine if your HPMC is "IB/RoCE v1" capable.
Make sure opensm is running:
# systemctl status opensm
# mkdir /sys/kernel/config/rdma_cm/qib0
# tree /sys/kernel/config/rdma_cm/qib0
# cat /sys/kernel/config/rdma_cm/qib0/ports/1/default_roce_mode
# mkdir /sys/kernel/config/rdma_cm/qib0
# tree /sys/kernel/config/rdma_cm/qib0
/sys/kernel/config/rdma_cm/qib0
└── ports
└── 1
└── default_roce_mode
2 directories, 1 file
# cat /sys/kernel/config/rdma_cm/qib0/ports/1/default_roce_mode
IB/RoCE v1
# tree /sys/kernel/config/rdma_cm/qib0
/sys/kernel/config/rdma_cm/qib0
└── ports
└── 1
└── default_roce_mode
2 directories, 1 file
# cat /sys/kernel/config/rdma_cm/qib0/ports/1/default_roce_mode
IB/RoCE v1
The device qib0 is configured on the network as ib0. Any of the following commands can be used to query ib0:
# ip link show ib0
# ifconfig ib0
# ibv_devinfo -v qib0
# ip link show ib0
5: ib0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2044 qdisc pfifo_fast state UP mode DEFAULT group default qlen 256
link/infiniband 80:00:00:03:fe:80:00:00:00:00:00:00:00:11:75:00:00:6e:ef:26 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
# ifconfig ib0
ib0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2044
inet 172.16.0.132 netmask 255.255.0.0 broadcast 172.16.255.255
inet6 fe80::211:7500:6e:ef26 prefixlen 64 scopeid 0x20<link>
Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8).
infiniband 80:00:00:03:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 txqueuelen 256 (InfiniBand)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# ibv_devinfo -v qib0
hca_id: qib0
transport: InfiniBand (0)
fw_ver: 0.0.0
node_guid: 0011:7500:006e:ef26
sys_image_guid: 0011:7500:006e:ef26
vendor_id: 0x1175
...
This section is not included in the SAMPLE PREVIEW.
■ Testing Connectivity with ping
Testing the connectivity with pingpong between hpmc9 and hpmc7 that are interconnected by infiniband.
This section is not included in the SAMPLE PREVIEW.
■ Testing Connectivity with Iterations Using pingpong
Testing the connectivity with pingpong between hpmc9 and hpmc7 that are interconnected by infiniband. The pingpong is part of the standard libibverbs-utils package. It communicates directly with the HCA hardware in user space using RDMA Send/Receive verbs, completely bypassing IPoIB and the Linux kernel. The -d qib0 selects the InfiniBand device qib0 (the QLogic/Intel TrueScale QDR/DDR HCA driver). The -g 0 sets the GID (Global Identifier) index to 0, which is required for global routing or RoCE, and needed on qib or modern OFED stacks to explicitly bind a valid GID table entry during Queue Pair initialization.16:19 root@HPMC9: /mm03fs/MPI # ibv_rc_pingpong -d qib0 -g 0 -i 1
16:19 root@HPMC9: /mm03fs/MPI # ibv_rc_pingpong -d qib0 -g 0 -i 1 local address: LID 0x0002, QPN 0x00001b, PSN 0xadb290, GID fe80::11:7500:6e:ef26 remote address: LID 0x0005, QPN 0x00001b, PSN 0x0c5add, GID fe80::11:7500:6e:f940 8192000 bytes in 0.04 seconds = 1464.59 Mbit/sec 1000 iters in 0.04 seconds = 44.75 usec/iterThe following command runs the client side of the native InfiniBand verbs ping-pong test, connecting to the server at 192.168.0.131 for the initial TCP handshake and then exchanging raw RDMA messages directly over qib0 port 1.
15:58 root@HPMC7: ~ # ibv_rc_pingpong -g 0 -d qib0 -i 1 192.168.0.131
15:58 root@HPMC7: ~ # ibv_rc_pingpong -g 0 -d qib0 -i 1 192.168.0.131 local address: LID 0x0005, QPN 0x00001b, PSN 0x0c5add, GID fe80::11:7500:6e:f940 remote address: LID 0x0002, QPN 0x00001b, PSN 0xadb290, GID fe80::11:7500:6e:ef26 8192000 bytes in 0.04 seconds = 1478.27 Mbit/sec 1000 iters in 0.04 seconds = 44.33 usec/iter
■ RDMA WRITE_BW
Both hpmc9 and hpmc7 are interconnected by infiniband. Use the command ib_write_bw to measure network write bandwidth. Run the command on the server first as a passive receiver. Here the -R (rdma_cm) tell the connection handshake and the benchmark traffic to use native RDMA CM (librdmacm), eliminating the separate TCP control socket.
16:27 root@HPMC9: /mm03fs/MPI # ib_write_bw -R
16:27 root@HPMC9: /mm03fs/MPI # ib_write_bw -R
************************************
* Waiting for client to connect... *
************************************
---------------------------------------------------------------------------------------
RDMA_Write BW Test
Dual-port : OFF Device : qib0
Number of qps : 1 Transport type : IB
Connection type : RC Using SRQ : OFF
CQ Moderation : 100
Mtu : 2048[B]
Link type : IB
Max inline data : 0[B]
rdma_cm QPs : ON
Data ex. method : rdma_cm
---------------------------------------------------------------------------------------
Waiting for client rdma_cm QP to connect
Please run the same command with the IB/RoCE interface IP
---------------------------------------------------------------------------------------
local address: LID 0x02 QPN 0x001f PSN 0x3c0bc5
remote address: LID 0x05 QPN 0x001f PSN 0x280903
---------------------------------------------------------------------------------------
#bytes #iterations BW peak[MB/sec] BW average[MB/sec] MsgRate[Mpps]
65536 5000 628.34 618.89 0.009902
---------------------------------------------------------------------------------------
Above we run the command on the server first as a passive receiver. Now, we run the ib_write_bw on the client pointing to the server's address hpmc9ib0. The command runs the client side of an RDMA Write bandwidth test using RDMA Connection Manager (rdma_cm) against hpmc9ib0, measuring sustained throughput (default 5,000 iterations of 64 KB messages) along with host CPU utilization. We specified hpmc9ib0 with -R so that we target the IPoIB hostname hpmc9ib0 that satisfies rdma_cm's requirement to resolve
This section is not included in the SAMPLE PREVIEW.
■ RDMA WRITE CPU_UTIL
Both hpmc9 and hpmc7 are interconnected by infiniband. We want to measure sustained unidirectional RDMA Write bandwidth directly between user-space memory buffers, completely bypassing IPoIB and the Linux kernel. First, we launch the server side of a raw RDMA Write bandwidth test, measuring sustained peak throughput and host CPU utilization over a 10-second duration using RC (Reliable Connected) Queue Pairs. The -D 10 is to run the test in duration mode for 10 seconds instead of a fixed iteration count. The --cpu_util is to measure the host CPU utilization percentage during the transfer, this to reveal on QLogic qib0 adapters, which offload minimal protocol processing to hardware and rely on the host CPU.
00:58 root@HPMC9: ~ # ib_write_bw -F -c RC --cpu_util -D 10
This section is not included in the SAMPLE PREVIEW.
■ RDMA WRITE LATENCY
Both hpmc9 and hpmc7 are interconnected by infiniband. Let's launch the server side of a raw RDMA Write latency sweep, measuring one-way hardware latency across every message size from 2 bytes up to 8 MB over qib0 port 1. In the following command the -d qib0 binds specifically to our QLogic HCA device qib0, and the -a us to sweep through all power-of-two payload sizes (2, 4, 8, ... 8,388,608 bytes) in a single run rather than testing just a single default 2-byte size.
# 01:23 root@HPMC9: # ib_write_lat -a -d qib0 -i 1 --report_gbits -F -n 1000
This section is not included in the SAMPLE PREVIEW.
■ Measuring Performance with iperf3 Over Infiniband
Both hpmc9 and hpmc7 are interconnected by infiniband. We want to measure performace between the two nodes for sender and receiver using iperf3. iperf3 is a standard TCP/UDP testing tool that tests the IPoIB interface. Since it does not use the InfiniBand RDMA verbs, then it cannot be used to measure the raw InfiniBand performance.However, iperf3 can be used to measure the maximum kernel-space TCP/IP throughput the CPU can push through the IPoIB driver (ib_ipoib). This reflects single-core CPU speed, kernel socket buffer limits, and whether ib0 is set to Connected Mode (connected) vs. Datagram Mode (datagram). In the following command, the -s runs iperf3 in server mode, listening for incoming benchmark traffic from an iperf3 client. The -B pmc9ib0 binds the server socket specifically to the IP address resolving to hpmc9ib0 (clearly named to represent the InfiniBand interface ib0 on node hpmc9). This ensures traffic routes over the InfiniBand fabric rather than eth0 Ethernet interface. The -i 5 sets the reporting interval to 5 seconds, printing interim bandwidth, transfer volume, and (if UDP) jitter/packet loss metrics every 5 seconds.
This section is not included in the SAMPLE PREVIEW.
■ Measuring Performance with iperf3 Over Ethernet
Here we measure performace between the nodes by binding to the ethernet. The following tests our standard Ethernet switch and NIC performance, completely bypassing the InfiniBand HCA, cables, and IB switch. Notice how the transfer and bandwith have dropped significantly.
01:30 root@HPMC9: ~ # iperf3 -i 5 -s -B hpmc9
This section is not included in the SAMPLE PREVIEW.