ch4/posix: using polling loop for recv and send queue#7646
Open
yfguo wants to merge 1 commit intopmodels:mainfrom
Open
ch4/posix: using polling loop for recv and send queue#7646yfguo wants to merge 1 commit intopmodels:mainfrom
yfguo wants to merge 1 commit intopmodels:mainfrom
Conversation
4626de4 to
fdeff50
Compare
raffenet
reviewed
Oct 29, 2025
Contributor
Author
fdeff50 to
37c5480
Compare
Contributor
Author
|
I also changed the default of the CVARs to 1. This way, the multi-polling becomes a opt-in feature. |
Trying do multiple polling for the recv and send queue to improve the message latency. This helps the for multiple incoming messages or deferred sends use cases. Two CVARs are add to control the maximum number of loops in one progress call If any of the queue is empty, POSIX will skip the rest iterations.
37c5480 to
0f36b33
Compare
Contributor
Author
|
The usefulness of the patch need more investigation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Trying do multiple polling for the recv and send queue to improve the message latency. This helps the for multiple incoming messages or deferred sends use cases. Two CVARs are add to control the maximum number of loops in one progress call If any of the queue is empty, POSIX will skip the rest iterations. The CVARs are default to 1 which disables the multi-polling.
I got some unexpected result. I was testing with test/mpi/bench/p2p_bw and it was improving the throught with send/recv loops set to 8.

But, when I try OSU_BW, the results are inverted. I need to understand why this is the case.
Pull Request Description
Author Checklist
Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
Commits are self-contained and do not do two things at once.
Commit message is of the form:
module: short descriptionCommit message explains what's in the commit.
Whitespace checker. Warnings test. Additional tests via comments.
For non-Argonne authors, check contribution agreement.
If necessary, request an explicit comment from your companies PR approval manager.