Skip to content

Message size Best practice ( 1 send tagged + 1 get vs 2 send tagged) #6528

Answered by petro-rudenko
Blopeur asked this question in Q&A
Discussion options

You must be logged in to vote

From our experience with SparkUCX project - the best performance is when you can exchange (address + rkey) beforehand and use one-sided RDMA API at critical data path, because it doesn't require active progress on the other side. Of course, it won't work with TCP. So if you can't support initial metadata exchange - tagged or active messages API would work better, because:

  1. The same code would work for both TCP and RDMA transport
  2. UCX would decide internally what to do the best (for tiny messages it'll use short send, for medium bcopy and for large the same RDMA with rkey exchange by ucx).

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@shamisp
Comment options

@Blopeur
Comment options

@Blopeur
Comment options

@petro-rudenko
Comment options

@Blopeur
Comment options

Answer selected by Blopeur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants