【报错处理】ib_write_bw执行遇到Couldn‘t listen to port 18515原因与解决办法?

文章讲述了在使用RDMA时,端口18515被占用导致通信问题。通过netstat检查和ib_write_bw命令,发现端口被占用后,提供了删除占用程序或切换到其他端口的方法,以及端口指定的详细说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

要点

要点:

  • ib默认使用18515端口

相关命令:

netstat -tuln | grep 18515
ib_write_bw --help |grep port

# server
ib_write_bw --ib-dev=mlx5_1 --port=88990
# client
ib_write_bw --ib-dev=mlx5_0 1.1.1.1 --port=8899
### InfiniBand Write Bandwidth Test Tool `ib_write_bw` Usage The `ib_write_bw` utility, part of the perftest package[^1], serves as an essential tool for measuring the bandwidth performance of InfiniBand write operations between two nodes. #### Command Syntax and Options To use this tool effectively: ```bash ib_write_bw <server> [<options>] ``` Common options include: - `-a`: Use all available QPs (Queue Pairs). - `-d <dev_name>`: Specify which HCA device to use. - `-F`: Enable fast message mode. - `-m <size>`: Set maximum transfer size in bytes. - `-n <count>`: Define number of iterations. - `-s <size>`: Start with specified buffer size. - `-t <sec>`: Run time limit in seconds. For detailed information on additional parameters, refer directly to the manual page or help option provided by the command itself. #### Example Usage Scenario A typical invocation might look like this when testing against a server named `infiniband-server`, specifying particular hardware characteristics: ```bash ib_write_bw infiniband-server -d mlx5_0 -m 262144 -n 10000 ``` This example sets up tests over device `mlx5_0`, uses messages sized at 262 KB, and runs through ten thousand iterations. #### Performance Data Interpretation Performance metrics generated from running these benchmarks typically report throughput values measured either in megabytes per second (MB/s) or gigabits per second (Gb/s). These figures provide insight into how efficiently data can be transferred across an InfiniBand network under varying conditions defined during setup. For precise interpretation of results obtained via `ib_write_bw`, consider factors such as underlying fabric configuration, concurrent traffic levels, and application-specific requirements that may influence observed outcomes. --related questions-- 1. What are some common troubleshooting steps if `ib_write_bw` reports lower-than-expected performance? 2. How does changing the queue pair count affect the output of `ib_write_bw`? 3. Can you explain what impact different InfiniBand transport modes have on write bandwidth measurements? 4. Is there any difference in using `ib_write_bw` versus other tools within the same suite for assessing RDMA capabilities?
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值