Skip to content
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: Skip rx pkt refill under certain threshold #10594

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shijin-aws
Copy link
Contributor

@shijin-aws shijin-aws commented Dec 2, 2024

Libfabric currently refill the rx pkt pool in every cq read when there are >0 pkts to post, which makes it have chance to post ibv_recv 1-by-1 if there is only 1 pkt to post per cq read. Such 1-by-1 post is less performant than having a batch post once.

This patch improves this strategy by introducing a threshold for the refilling. When the number of internal rx pkts to post is lower than this threshold, the refill will be skipped.

Also introduced FI_EFA_INTERNAL_RX_REFILL_THRESHOLD that allows tuning this parameter.

Libfabric currently refill the rx pkt pool in every cq read when there are >0 pkts to post,
which makes it have chance to post ibv_recv 1-by-1 if there is only 1 pkt to post per cq read.
Such 1-by-1 post is less performant than having a batch post once.

This patch improves this strategy by introducing a threshold for the refilling. When
When the number of internal rx pkts to post is lower than this threshold, the refill will be skipped.

Also introduced FI_EFA_INTERNAL_RX_REFILL_THRESHOLD that allows tuning this parameter.

Signed-off-by: Shi Jin <[email protected]>
@shijin-aws
Copy link
Contributor Author

bot:aws:retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant