ucx icon indicating copy to clipboard operation
ucx copied to clipboard

UCP/PROTOV2: Fix AM multi-eager protocols

Open brminich opened this issue 1 year ago • 3 comments

What

Fix UCP AM multi-eager protocols for protoV2

Why

When reporting maximal allowed AM header size to the user, we consider the minimal UCT fragment size among all enabled transports. However, we may decide to send less that transport's max fragment size, for example in case its bandwidth is lower than other lanes. (to fill which assert fails)

How ?

Need to take into account max AM user header size when calculating how much data UCP can send on a single lane. (because user header and all UCP headers must fit into the first fragment)

brminich avatar Aug 01 '23 20:08 brminich

this PR affects performance estimations - now UCP AM multi-eager protocol always assumes that maximal user header is being sent (which is not always the true). The fix needs to be reconsidered

brminich avatar Aug 08 '23 08:08 brminich

Should we revert 0e92c1d8fa749daa4c1b9ee4be6c807f4688eb75 in this PR to confirm the fix?

rakhmets avatar Dec 01 '23 13:12 rakhmets

Should we revert 0e92c1d in this PR to confirm the fix?

it's already done in the 1st commit

brminich avatar Dec 01 '23 14:12 brminich