feat(transfer_engine_bench): Add multi-GPU support #675
Merged
alogfans merged 4 commits intokvcache-ai:mainfrom Jul 28, 2025
Merged
feat(transfer_engine_bench): Add multi-GPU support #675alogfans merged 4 commits intokvcache-ai:mainfrom
alogfans merged 4 commits intokvcache-ai:mainfrom
Conversation
… allocation logic - Added support for using all available GPUs when gpu_id=-1 - Improved memory allocation logic with dynamic buffer_num - Enhanced logging for GPU memory allocation - Refactored buffer naming convention Signed-off-by: staryxchen <staryxchen@tencent.com>
Signed-off-by: staryxchen <staryxchen@tencent.com>
Signed-off-by: staryxchen <staryxchen@tencent.com>
wanyue-wy
pushed a commit
to wanyue-wy/Mooncake
that referenced
this pull request
Dec 14, 2025
* feat(transfer_engine_bench): add multi-GPU support and improve memory allocation logic - Added support for using all available GPUs when gpu_id=-1 - Improved memory allocation logic with dynamic buffer_num - Enhanced logging for GPU memory allocation - Refactored buffer naming convention Signed-off-by: staryxchen <staryxchen@tencent.com> * replace thread array with vector Signed-off-by: staryxchen <staryxchen@tencent.com> * move DRAM log messages to initialization blocks Signed-off-by: staryxchen <staryxchen@tencent.com> * fix typo Signed-off-by: staryxchen <staryxchen@tencent.com> --------- Signed-off-by: staryxchen <staryxchen@tencent.com>
JasonZhang517
pushed a commit
to JasonZhang517/Mooncake
that referenced
this pull request
Feb 9, 2026
* feat(transfer_engine_bench): add multi-GPU support and improve memory allocation logic - Added support for using all available GPUs when gpu_id=-1 - Improved memory allocation logic with dynamic buffer_num - Enhanced logging for GPU memory allocation - Refactored buffer naming convention Signed-off-by: staryxchen <staryxchen@tencent.com> * replace thread array with vector Signed-off-by: staryxchen <staryxchen@tencent.com> * move DRAM log messages to initialization blocks Signed-off-by: staryxchen <staryxchen@tencent.com> * fix typo Signed-off-by: staryxchen <staryxchen@tencent.com> --------- Signed-off-by: staryxchen <staryxchen@tencent.com>
16 tasks
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.
Summary
This PR enhances the mooncake transfer engine benchmark to support multi-GPU configurations and improves memory allocation logic for better performance demonstration.
Change
Usage
Testing Result
The changes maintain full backward compatibility with existing single-GPU configurations while enabling multi-GPU scenarios for enhanced performance testing. I have test the performance with the below command:
And the result show that When allocating memory from eight H20 GPUs simultaneously (which is the purpose of this PR), the Mooncake Transfer Engine can fully utilize the bandwidth of eight 400Gbps RDMA NIC
