feat: add URMA transport support - #3428
Open
zchuango wants to merge 3 commits into
Open
Conversation
feat: add URMA transport support
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.
What problem does this PR solve?
About discussion:
Issue Number: Related to #3401
Problem Summary:
brpc does not currently provide a remote-memory transport based on the UMDK
URMA API.
This PR adds URMA (Unified Remote Memory Access) as an optional transport in
the existing
Transportframework. TCP is used for connection establishmentand URMA capability/resource negotiation. After both peers successfully
negotiate URMA support, the data path switches to URMA. When URMA is
unavailable or negotiation does not succeed, the connection falls back to TCP.
The initial implementation supports the
baidu_stdprotocol only and isdisabled by default.
What is changed and the side effects?
Changed:
SOCKET_MODE_URMAandUrmaTransport, and integrate them with theexisting transport, socket, and message-processing framework.
UrmaEndpointfor URMA resource management, SEND/RECV processing,completion handling, and credit-based flow control.
and v3 protobuf handshake formats, with TCP fallback.
memory registration.
is available.
a link-time URMA mock for build and test environments without
liburmaorURMA hardware.
urma_performanceexample.Side effects:
Performance effects:
default behavior remain unchanged.
default configuration is 65,536 buffers of 8 KiB each (512 MiB in total).
actively poll the JFC.
configuration. This PR does not claim a specific hardware performance
improvement.
Breaking backward compatibility:
SOCKET_MODE_URMAand the URMA memory-registration APIs are additive.Existing socket modes and their default behavior remain unchanged.
Check List: