-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prov/efa: always use p2p for system memory #10392
Conversation
I am concerned that deaa841 may also be impacted by this issue. You checked
to determine if we can do p2p for the receive buffer. If receive buffer is unregistered and on host, we should allow rdma read as well. I think instead of adding such iface check everywhere, we should investigate whether we can just make |
f579494
to
c6e3f7d
Compare
@@ -250,15 +250,15 @@ int efa_rdm_pke_get_available_copy_methods(struct efa_rdm_ep *ep, | |||
bool *restrict gdrcopy_available) | |||
{ | |||
int ret; | |||
bool p2p_available; | |||
bool mr_p2p_available; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to add a assert(efa_mr)
here
prov/efa/src/rdm/efa_rdm_ep.h
Outdated
/* | ||
* always send from host buffers if we have a descriptor | ||
* always send from host buffers no matter efa_mr is registered or not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is not correct. We are not always sending from host buffers if efa_mr is NULL. For eager send, we will do a copy from host buffer to registered bounce buffer.
We can just change it to
P2p is always available for host memory (Unregistered buffer will be regarded as host memory as EFA provider requires FI_MR_HMEM)
P2P is always available for host memory. Unregistered buffer will be regarded as host memory as EFA provider requires FI_MR_HMEM. Signed-off-by: Jessie Yang <[email protected]>
Rename to mr_p2p_available to indicate that we check the mr is not NULL. Signed-off-by: Jessie Yang <[email protected]>
c6e3f7d
to
57e6ec6
Compare
Need to backport |
I'm a little dubious of this change and can see it easily becoming a future bug. If the null I see that we've walked through every caller of |
I don't think it can become a bug, |
For system memory, it should use p2p even with unregistered buffer. Otherwise it will affect performance.