[openib-general] kernel VM monitor for memory registration caching

Gleb Natapov glebn at voltaire.com
Mon Aug 1 07:50:27 PDT 2005


On Mon, Aug 01, 2005 at 07:43:33AM -0700, Roland Dreier wrote:
>     Gleb> Why? Is that what you had in mind?
> 
> Yes, if I'm understanding your suggestion correctly, it is exactly
> what I suggested in http://article.gmane.org/gmane.linux.drivers.openib/13223
> 
Yes, they are indeed the same :)

>     Gleb> This was right for vapi modules since after mlock() vma
>     Gleb> boundaries was aligned with registration boundaries, but
>     Gleb> this is not the case for OpenIB (correct me if I am wrong
>     Gleb> here). Part of the vma can be pinned and thus be in memory
>     Gleb> but other parts may be swapped out.
> 
> But the pages that aren't pinned are not part of any registered
> region, right?  So there's no reason to invalidate any registration
> because of nopage activitiy.

Correct. We invalidate nothing in nopage handler, but if pagefault
happens in part of vma that is not registered we should call original
nopage() handler for the nonregistered page.

--
			Gleb.



More information about the general mailing list