Re: [ofa-general] Re: Demand paging for memory regions

Christoph Lameter
2008-02-13T01:01:30Z

On Tue, 12 Feb 2008, Jason Gunthorpe wrote:

> Well, certainly today the memfree IB devices store the page tables in
> host memory so they are already designed to hang onto packets during
> the page lookup over PCIE, adding in faulting makes this time
> larger.

You really do not need a page table to use it. What needs to be maintained
is knowledge on both side about what pages are currently shared across
RDMA. If the VM decides to reclaim a page then the notification is used to
remove the remote entry. If the remote side then tries to access the page
again then the page fault on the remote side will stall until the local
page has been brought back. RDMA can proceed after both sides again agree
on that page now being sharable.