# 1. get OFED
# -xvf d MLNX_OFED_LINUX-xxxx-x86_64sudo ./mlnxofedinstall --add-kernel-support# after successful
sudo /etc/init.d/openibd restart# show RNIC status
sudo hca_self_test.ofed # results should be "PASS"# other command about showing the tatus of RNIC
ibstat
ibstatus
ibv_devinfo
ibv_devices
ibnodes# change model of RNIC (ETH or Infiniband)
systemctl start mst
mst status # we will get MST devices: e.g., /dev/mst/mt4119_pciconf0 & domain:bus:dev.fn=0000:d8:00.
# show RNIC model
mlxconfig -d /dev/mst/mt4119_pciconf0 query # we get the result like this : LINK_TYPE_P1 ETH(2)# now, we change the model of RNIC, method 1
ETH model : mlxconfig -d /dev/mst/mt4119_pciconf0 set LINK_TYPE_P1=2
IB model : mlxconfig -d /dev/mst/mt4119_pciconf0 set LINK_TYPE_P1=1# method 2
ETH: mstconfig -d d8:00.0 set LINK_TYPE_P1=2
IB: mstconfig -d d8:00.0 set LINK_TYPE_P1=1
# note: we can get "d8:00.0" using command: lspci|grep Mellanoxsudo reboot # we need reboot host to enable our configuration# config IP
ifconfig -a # we need to know the RNIC name
sudo netplan generate && sudo vim /etc/netplan/00-installer-config.yaml
# add content like this
network:ethernets:ens7f1:dhcp4: noaddresses: [10.100.1.5]version: 2# reboot network to enable our configuration
netplan apply# RNIC bandwidth & latency test#install lldp
apt install lldpad -y
lldpad -d
for i in `ls /sys/class/net/ |grep 'eth|ens|eno|enp'`
doecho "enabling lldp for interfacce: $i"lldptool set-lldp -i $i adminStatus=rxtxlldptool -T -i $i -V sysName enableTx=yeslldptool -T -i $i -V portDesc enableTx=yeslldptool -T -i $i -V sysDesc enableTx=yeslldptool -T -i $i -V sysCap enableTx=yeslldptool -T -i $i -V mngAddr enableTx=yes
done
#测试RDMA网卡带宽
#server
ib_read_bw -a -c RC -F -d mlx5_1 --report_gbits
#client
ib_read_bw -a -c RC -F -d mlx5_1 --report_gbits <server ip>
#ib_read_bw,ib_write_bw,ib_send_lat分别测试读、写、send的带宽#测试RDMA网卡时延
#server
ib_read_lat -a -c RC -F -d mlx5_1
#client
ib_read_lat -a -c RC -F -d mlx5_1 <server ip>
#ib_read_lat,ib_write_lat,ib_send_lat分别测试读、写、send的时延
本文发布于:2024-02-05 03:26:22,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170722945362627.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |