-
Notifications
You must be signed in to change notification settings - Fork 398
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: set ep_attr->max_msg_size according to hints #9388
Conversation
2f072fb
to
b8feb5a
Compare
b8feb5a
to
62d744a
Compare
bot:aws:retest |
is it a regression? I don't know if we ever set it correctly, does that mean we never support zero-copy receive? |
It is a regression. I haven't bisected git history yet but zcpy recv worked on 1.18.x last time I checked. |
how was max_msg_size parsed in v1.18.x? |
and also remind me how this impact zero copy receive? |
I take that back. It has always been there, but it didn't cause problem because the only zcpy use case is doing odd stuff around The application modifies fi_info object after calling fi_getinfo, which I think is illegal.
I found this bug while trying to add a fabtest to cover the code path. |
I am not sure max_msg_size is used in this way. Look at I think it is an attribute that provider returns to the application in info that indicates the max msg size and the application must comply with that. It's not something that application should customize. |
Right, modifying info after fi_getinfo is illegal. |
Hmmmmmmm let me poke the awesome @shefty : It's indeed ambiguous from the doc whether |
It's not something the app can change. The app can request a specific value when calling fi_getinfo, and if the provider can't support that size, it can fail the request. But the expectation is that this value maps directly to the transport limitation. |
@shefty Thanks for chiming in. Cool in this case I think the application in question is abusing/misusing the attribute for EFA provider. |
Reopen this PR, as further talking with @shefty shows that provider can choose to use a value of |
ep_attr->max_msg_size is currently set to UINT64_MAX. As a result the application cannot enable zero-copy recv. Signed-off-by: Wenduo Wang <[email protected]>
62d744a
to
af89113
Compare
Rebased branch and running AWS CI |
ep_attr->max_msg_size is currently set to UINT64_MAX. As a result the application cannot enable zero-copy recv.