Re: [PATCH for-next v2 0/2] RDMA/rxe: Prefetching pages with explicit ODP

From: Zhu Yanjun
Date: Sat May 03 2025 - 13:09:28 EST


在 2025/5/3 15:42, Daisuke Matsuda 写道:
There is ibv_advise_mr(3) that can be used by applications to optimize
memory access. This series enables the feature on rxe driver, which has
already been available in mlx5.

There is a tiny change on the rdma-core util.
cf. https://github.com/linux-rdma/rdma-core/pull/1605

Hi, Daisuke

Thanks a lot for your efforts to this patch series. It is very nice. With this patch series, we can make prefetch for ODP MRs of RXE.

I read through this patch series. And it seems fine with me.^_^

IIRC, you have added ODP testcases in rdma-core. To verify this prefetch work well for ODP MRs, can you add this synchronous/asynchronous prefetch to the ODP testcases in rdma-core?

Thus, we can verify this patch series. And in the future, we can use these testcases to confirm this prefetch feature work well.

To now, it seems that no tool can verify this prefetch feature.

Thanks a lot.
Zhu Yanjun


Daisuke Matsuda (2):
RDMA/rxe: Implement synchronous prefetch for ODP MRs
RDMA/rxe: Enable asynchronous prefetch for ODP MRs

drivers/infiniband/sw/rxe/rxe.c | 7 ++
drivers/infiniband/sw/rxe/rxe_loc.h | 10 ++
drivers/infiniband/sw/rxe/rxe_odp.c | 165 ++++++++++++++++++++++++++++
3 files changed, 182 insertions(+)