Questo contenuto non è disponibile nella lingua selezionata.
Chapter 2. Configuring the rdma service
With the Remote Direct Memory Access (RDMA) protocol, you can transfer data between the RDMA enabled systems over the network by using the main memory. The RDMA protocol provides low latency and high throughput. To manage supported network protocols and communication standards, you need to configure the rdma service. This configuration includes high speed network protocols such as RoCE and iWARP, and communication standards such as Soft-RoCE and Soft-iWARP. When Red Hat Enterprise Linux detects InfiniBand, iWARP, or RoCE devices and their configuration files residing at the /etc/rdma/modules/* directory, the udev device manager instructs systemd to start the rdma service. Configuration of modules in the /etc/rdma/modules/rdma.conf file remains persistent after reboot. You need to restart the rdma-load-modules@rdma.service configuration service to apply changes.
Procedure
Install the
rdma-coreandopensmpackages:dnf install rdma-core opensm
# dnf install rdma-core opensmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the
opensmservice:systemctl enable opensm
# systemctl enable opensmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Start the
opensmservice:systemctl start opensm
# systemctl start opensmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
/etc/rdma/modules/rdma.conffile and uncomment the modules that you want to enable:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart the service to make the changes effective:
systemctl restart <rdma-load-modules@rdma.service>
# systemctl restart <rdma-load-modules@rdma.service>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Install the
libibverbs-utilsandinfiniband-diagspackages:dnf install libibverbs-utils infiniband-diags
# dnf install libibverbs-utils infiniband-diagsCopy to Clipboard Copied! Toggle word wrap Toggle overflow List the available InfiniBand devices:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Display the information of the
mlx4_1device:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Display the status of the
mlx4_1device:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
ibpingutility pings an InfiniBand address and runs as a client/server by configuring the parameters.Start server mode
-Son port number-Pwith-CInfiniBand channel adapter (CA) name on the host:ibping -S -C mlx4_1 -P 1
# ibping -S -C mlx4_1 -P 1Copy to Clipboard Copied! Toggle word wrap Toggle overflow Start client mode, send some packets
-con port number-Pby using-CInfiniBand channel adapter (CA) name with-LLocal Identifier (LID) on the host:ibping -c 50 -C mlx4_0 -P 1 -L 2
# ibping -c 50 -C mlx4_0 -P 1 -L 2Copy to Clipboard Copied! Toggle word wrap Toggle overflow