-
Notifications
You must be signed in to change notification settings - Fork 8
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
Added margo_set_progress_when_needed #296
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #296 +/- ##
==========================================
+ Coverage 57.82% 57.89% +0.07%
==========================================
Files 70 70
Lines 10183 10198 +15
Branches 1338 1341 +3
==========================================
+ Hits 5888 5904 +16
Misses 3458 3458
+ Partials 837 836 -1 ☔ View full report in Codecov by Sentry. |
} \ | ||
} while (0) | ||
|
||
#define WAIT_FOR_PROGRESS_TO_BE_NEEDED(__mid__) \ |
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.
Maybe these macros can be disabled (i.e. no locking etc.) if margo is initialized in listening mode? In that case (on the server side, when unexpected requests could arrive at any time) we always have to call progress, but on clients you only need to call progress when there is margo activity.
It's disabled by default unless you call EDIT: if anything, we could make "true" the default is the mid is NOT listening. |
Experiments with Mofka shows that it works as intended. @carns any objection to merging it? Should I make this behavior the default for margo instances initialized with listening = false? (technically I think you could have situation where things break, e.g. the client sends an RPC with a bulk handle to the server, the server responds, and keeps the bulk handle around to make RDMA operations later, outside of the RPC, and you're using a tcp transport or any transport where RDMA is emulated and requires explicit progress). |
Oh, I see. I overlooked the logic was opt-in. Also I didn't realize that mofka clients were receiving RPCs, that's interesting. At any rate, I'm fine with this being merged, but my preference would be for it to remain opt in for now. Possibly automatically enabled later but we should take our time thinking about the use cases. |
Ok, merging. |
No description provided.