perftest icon indicating copy to clipboard operation
perftest copied to clipboard

ib_send_bw test stuck

Open amitgeron opened this issue 3 years ago • 2 comments

When running the following, for example: ib_send_bw -b -e -q 16

I think that the root cause is wrong usage of notifications - the cq isn't emptied when the application is woken up. The argument passed to ibv_poll_cq is user_param->rx_depth, but we might have more completions than that, since we use multiple QPs.

There are two options I can think of for a fix:

  1. Use a larger completion buffer when calling ibv_poll_cq (user_param->rx_depth * number_of_qps)
  2. As done in run_iter_be_server - loop over ibv_poll_cq as long as there are completions in the cq

amitgeron avatar Feb 02 '22 14:02 amitgeron

Hi, The issue is not reproducing on my setup. can you please provide more information about your setup and chip , driver, etc? Thanks

sshaulnv avatar Jul 13 '22 12:07 sshaulnv

Hi, you may see the setup information in the linked PR https://github.com/linux-rdma/perftest/pull/138 Don't know if it matters, but perftest is configured to use old post_send method.

amitgeron avatar Jul 13 '22 12:07 amitgeron

Hi amitgeron, Thanks for your collaboration! as you said there is a linked PR for this issue that is waiting for code fix, So I'll close this issue

HassanKhadour avatar Nov 10 '22 11:11 HassanKhadour