All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Leon Romanovsky <leon@kernel.org>
Cc: Doug Ledford <dledford@redhat.com>,
	Leon Romanovsky <leonro@nvidia.com>, <linux-rdma@vger.kernel.org>,
	Yishai Hadas <yishaih@nvidia.com>,
	Christoph Hellwig <hch@infradead.org>
Subject: Re: [PATCH rdma-next v3 0/4] Improve ODP by using HMM API
Date: Thu, 1 Oct 2020 17:01:42 -0300	[thread overview]
Message-ID: <20201001200142.GA1185894@nvidia.com> (raw)
In-Reply-To: <20200930163828.1336747-1-leon@kernel.org>

On Wed, Sep 30, 2020 at 07:38:24PM +0300, Leon Romanovsky wrote:

> This series improves ODP performance by moving to use the HMM API as of below.
> 
> The get_user_pages_remote() functionality was replaced by HMM:
> - No need anymore to allocate and free memory to hold its output per call.
> - No need anymore to use the put_page() to unpin the pages.
> - The logic to detect contiguous pages is done based on the returned order
>   from HMM, no need to run per page, and evaluate.
> 
> Moving to use the HMM enables to reduce page faults in the system by using the
> snapshot mode. This mode allows existing pages in the CPU to become presented
> to the device without faulting.
> 
> This non-faulting mode may be used explicitly by an application with some new
> option of advice MR (i.e. PREFETCH_NO_FAULT) and is used upon ODP MR
> registration internally as part of initiating the device page table.
> 
> To achieve the above, internal changes in the ODP data structures were done
> and some flows were cleaned-up/adapted accordingly.
>
> Thanks
> 
> Yishai Hadas (4):
>   IB/core: Improve ODP to use hmm_range_fault()
>   IB/core: Enable ODP sync without faulting
>   RDMA/mlx5: Extend advice MR to support non faulting mode
>   RDMA/mlx5: Sync device with CPU pages upon ODP MR registration

Applied to for-next, thanks

Jason

      parent reply	other threads:[~2020-10-01 20:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-30 16:38 [PATCH rdma-next v3 0/4] Improve ODP by using HMM API Leon Romanovsky
2020-09-30 16:38 ` [PATCH rdma-next v3 1/4] IB/core: Improve ODP to use hmm_range_fault() Leon Romanovsky
2020-09-30 16:38 ` [PATCH rdma-next v3 2/4] IB/core: Enable ODP sync without faulting Leon Romanovsky
2020-09-30 16:38 ` [PATCH rdma-next v3 3/4] RDMA/mlx5: Extend advice MR to support non faulting mode Leon Romanovsky
2020-09-30 16:38 ` [PATCH rdma-next v3 4/4] RDMA/mlx5: Sync device with CPU pages upon ODP MR registration Leon Romanovsky
2020-10-01 20:01 ` Jason Gunthorpe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201001200142.GA1185894@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=dledford@redhat.com \
    --cc=hch@infradead.org \
    --cc=leon@kernel.org \
    --cc=leonro@nvidia.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=yishaih@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.