ofiwg / libfabric

Open Fabric Interfaces

Home Page:http://libfabric.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fabtest/fi_rma_bw: when run with -p verbs, leaks mr during run until out of memory

chien-intel opened this issue · comments

Describe the bug
fi_rma_bw -p verbs leaks MRs during the test. Use "watch -n 1 rdma resource" to monitor resource usage and see QP count go up by 1 and down by 1 but MR count does not come down and eventually program exits with this error:

transmit(): common/shared.c:1959, ret=-12 (Cannot allocate memory)

To Reproduce
Run fi_rma_bw with -p verbs

Expected behavior
MR count should go down when a QP is destroyed

Output
If applicable, add output to help explain your problem. (e.g. backtrace, debug logs)

Environment:
OS (if not Linux), provider, endpoint type, etc.

Additional context
Add any other context about the problem here.

Start fi_rma_bw as client without server . On every attempt to connect to the server we are consuming memory via rxm_prepost_recv and MR on ofi_bufpool_grow.

Resolved with PR #7991 - commit 4184fd6