[openib-general] Question about pinning memory
Tziporet Koren
tziporet at mellanox.co.il
Sun Jul 24 06:13:45 PDT 2005
Answers regarding VAPI:
> > Related to the scenario above, here's my questions:
> >
> > 1. What happens if pinned memory is returned to the OS via sbrk()? Do
> > Bad Things happen, or does the kernel portion of Open IB handle this
> > gracefully?
> >
> Kernel portion of OpenIB pins physical pages. If you unmap virtual
> address range from process address space using sbrk or munmap they will
> stay pinned until deregistered.
>
> > (if anyone knows what mVAPI does here, that would also be really useful
> > to know)
VAPI behaves the same as openib in this case.
> >
> > 2. What happens if the MPI unpins memory that is already out of the
> > process? Do Bad Things happen, or does Open IB handle this gracefully?
> >
> OpenIB should handle this case. It looks up pinned physical pages using
> memory handle returned on register and unpins them. It doesn't scan user
> virtual space during dereg.
>
> > (if anyone knows what mVAPI does here, that would also be really useful
> > to know)
> >
VAPI free the pinned memory and issue a message in /var/log/messages, and
everything is working well.
Tziporet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050724/9b86d636/attachment.html>
More information about the general
mailing list