pmem / issues

Old issues repo for PMDK.
http://pmem.io
13 stars 7 forks source link

librpmem: rpmem_create failed to register memory. #868

Closed tanghaodong25 closed 6 years ago

tanghaodong25 commented 6 years ago

Hi,

We're testing librpmem with the 'pmdk/src/examples/librpmem/basic', hit error when creating pmem pool.

Testing Environment

Hardware

Software

Error log

rpmemd.log

registering memory: Unknown error -95

system log

[82047.691004] ib_umem_get: failed to get user pages, nr_pages=512, flags=1 [82047.691057] mlx5_1:mr_umem_get:766:(pid 63518): umem get failed (-95)


We digged into the code, found the error related to line 329 (pmdk/src/tools/rpmemd/rpmemd_fip.c). Can't register memory with PMEM.

 329         ret = fi_mr_reg(fip->domain, fip->addr, fip->size,
 330                         FI_REMOTE_READ | FI_REMOTE_WRITE, 0, 0, 0,
 331                         &fip->mr, NULL);
 332         if (ret) {
 333                 RPMEMD_FI_ERR(ret, "registering memory");
 334                 return -1;
zhouyuan commented 6 years ago

@lplewa is it possible to do more debug work with this "Unknown error -95"?

janekmi commented 6 years ago

I have found two issues:

tanghaodong25 commented 6 years ago

The issue was fixed, thank you all.