[Bug]: EFA: ibv_open_device() eventually fails when running in loop #306
Labels
bug
Report errors or unexpected behavior
Linux EFA driver
triage
Determine the priority and severity
Preliminary Actions
Driver Type
Linux kernel driver for Elastic Fabric Adapter (EFA)
Driver Tag/Commit
2.8.0g
Custom Code
No
OS Platform and Distribution
5.15.0-1055-aws #60~20.04.1-Ubuntu SMP
$ cat /sys/class/infiniband/rdmap79s0/device/driver/module/version
2.8.0g
$ cat /sys/class/infiniband/rdmap79s0/device/device
0xefa1
Bug description
The program below eventually fails after few loops with
ENOMEM
. It can be reproduced at will by restarting the program. When removingibv_create_comp_channel()
, the failure does not seem to reproduce anymore.Is the cq creation with comp_channel supported on EFA?
Reproduction steps
Source for
ibv.c
is at the end of the description:$ gcc ./ibv.c -libverbs && ./a.out Using rdmap79s0: ................................................................ ................................................................ ................................................................ ................................................................ ibv_open_device(rdmap79s0) failed: Cannot allocate memory (12)
Expected Behavior
If cq with completion channel is not supported: maybe ibv failure
If cq with completion channel is supported: no failure, even when running in loop
Actual Behavior
The call
ibv_open_device(rdmap79s0)
eventually fails withENOMEM
.Additional Data
No response
Relevant log output
Contact Details
No response
The text was updated successfully, but these errors were encountered: