[ofa-general] mmap() and ibv_reg_mr() and RDMA

Roland Dreier rdreier at cisco.com
Tue May 22 13:46:04 PDT 2007


 > I want to do RDMA-write on mmap'ed memory.
 > but it fails to register the memory region.
 > 
 > is there something special, to use ibv_reg_mr() on memory which I got
 > from mmap()?
 > it works fine with plain allocated memory (with memalign()).
 > memory is page-aligned in both cases.

How exactly are you mmap()ing the memory?  memalign(), malloc() etc
are implemented with mmap() internally, so obviously memory
registration of some mmap()ed memory is fine.

 - R.



More information about the general mailing list