gpunetio_verbs_put_bw: pipeline PUT completions with a fixed in-flight window - #14
Draft
foraxe wants to merge 2 commits into
Draft
gpunetio_verbs_put_bw: pipeline PUT completions with a fixed in-flight window#14foraxe wants to merge 2 commits into
foraxe wants to merge 2 commits into
Conversation
Author
|
Stage 1 of the performance plan in RFC #15. |
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
Remove the per-PUT completion stall in the GPU-initiated PUT bandwidth sample by keeping a small,
fixed FIFO window of PUTs outstanding per producer thread.
Motivation
The current kernel submits one PUT and immediately polls its completion. On GB200, this serializes
submission behind completion latency and leaves the SQ underfilled, especially for one-producer
experiments.
Implementation
-wfor fixed completion-window depths 1, 2, 4, and 8.-tto control the total producer thread count.exactly at the end.
producer geometry before RDMA metadata exchange. Both peers must use this control protocol.
The depth-four SM100 specialization uses 60 registers with zero stack, local memory, shared memory,
or barriers.
GB200 results
Configuration: GPU0 (
08:01:00.0),mlx5_0, RoCEv2 GID 3, direct GPU doorbell, THREAD scope,one CUDA thread, 8192 PUTs, three repetitions per final cell.
The 1 MiB depth-four result ranged from 392.892 to 392.915 Gbps. The one-thread path reaches
100.85% of the official default path's 1 MiB throughput while launching one partial warp instead
of 16 full warps.
Validation
make -j16 CUDA_ARCH=100: passed for the library and all examples.1 MiB with full validation.
-t 1versus client-t 2: both peers exited nonzero before QP connection.Scope
This patch addresses completion-depth starvation. It does not batch WQE reservation, ready-frontier
publication, doorbells, or CQEs; those are intentionally left for a separate follow-up.
Base: NVIDIA
mainatdf883ff6b5b52f793a7a7eea434485e38891c12f.