RDMA Performance Tests
Performance testing tools are essential for verifying RDMA functionality and optimizing network performance. The perftest package provides several utilities for measuring latency and bandwidth.
Prerequisites
Section titled “Prerequisites”- Two Nodes: Must run the commands between 2 nodes at the same time.
- Clock Synchronization: Both nodes should ideally have the same CPU clock frequency.
- OFED Utilities: Ensure the
perftestpackage is installed.
Latency Tests
Section titled “Latency Tests”These tests measure the latency of RDMA operations.
Server Side
Section titled “Server Side”Run the following on the server node:
# Read latency testib_read_lat
# Write latency testib_write_lat
# Send latency testib_send_latClient Side
Section titled “Client Side”Run the following on the client node, replacing <Hostname/LID> with the server’s hostname or Local Identifier (LID):
ib_read_lat <Hostname/LID>ib_write_lat <Hostname/LID>ib_send_lat <Hostname/LID>Note: Using the LID directly can avoid potential hostname resolution overhead.
Bandwidth Tests
Section titled “Bandwidth Tests”These tests measure the bandwidth throughput of RDMA operations.
Server Side
Section titled “Server Side”Run the following on the server node:
ib_read_bwib_write_bwib_send_bwClient Side
Section titled “Client Side”Run the following on the client node:
ib_read_bw <Hostname/LID>ib_write_bw <Hostname/LID>ib_send_bw <Hostname/LID>