Fix GPUDirect RDMA bandwidth bottleneck in TENT backend#1463
Open
Fix GPUDirect RDMA bandwidth bottleneck in TENT backend#1463
Conversation
- Enable IBV_ACCESS_RELAXED_ORDERING flag for GPU memory registrations - Add relaxed ordering detection in TENT rdma_transport - Update LocalBufferManager to support relaxed ordering flag - Add comprehensive documentation for MC_IB_PCI_RELAXED_ORDERING - Add troubleshooting section for low GPU RDMA bandwidth issue Co-authored-by: XucSh <107600043+XucSh@users.noreply.github.com>
Document the importance of MC_IB_PCI_RELAXED_ORDERING for optimal GPU RDMA performance. Co-authored-by: XucSh <107600043+XucSh@users.noreply.github.com>
- Created detailed troubleshooting guide for GPU RDMA performance - Includes symptoms, root cause, solution, and verification steps - Added performance comparison table and examples - Documented technical background and alternative solutions Co-authored-by: XucSh <107600043+XucSh@users.noreply.github.com>
- Fix log message inconsistencies in documentation - Clarify modes 1 and 2 are functionally identical - Add input validation and warning for invalid env var values - Use strtol instead of atoi for better error detection Co-authored-by: XucSh <107600043+XucSh@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix low GPUDirect RDMA bandwidth issue
Fix GPUDirect RDMA bandwidth bottleneck in TENT backend
Jan 29, 2026
alogfans
reviewed
Jan 30, 2026
Collaborator
|
Looks interesting. |
Removed docs/source/performance/gpu-rdma-bandwidth-optimization.md as requested. Co-authored-by: XucSh <107600043+XucSh@users.noreply.github.com>
Collaborator
|
@copilot use scripts/code_format.sh to format your code |
Applied code formatting as requested using scripts/code_format.sh Co-authored-by: XucSh <107600043+XucSh@users.noreply.github.com>
Contributor
Author
Code formatted with clang-format-20 in commit f98640b. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
1 task
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.
Description
GPUDirect RDMA transfers achieved only ~15 GB/s instead of line rate (~47 GB/s) due to missing
IBV_ACCESS_RELAXED_ORDERINGflag in TENT backend memory registration. This flag enables PCIe relaxed ordering, critical for GPU memory transfer performance.Changes:
Core fix: Add
IBV_ACCESS_RELAXED_ORDERINGtogetAccessFlags()in TENT buffersLocalBufferManagerto propagate relaxed ordering flagibv_reg_mr_iova2symbolstrtol()and warning for invalid valuesConfiguration:
MC_IB_PCI_RELAXED_ORDERINGenvironment variable0(default): disabled for backward compatibility1or2: enable if driver supports (functionally identical)Documentation: Updated existing documentation files with configuration guidance and troubleshooting information
Usage:
Requirements:
ibv_reg_mr_iova2(MLNX_OFED 4.9+)Type of Change
How Has This Been Tested?
Manual code review and static analysis (CodeQL) passed. Real hardware testing recommended with GPU memory transfers over RDMA to verify 3x bandwidth improvement.
Checklist
./scripts/code_format.shbefore submitting.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.