Repository navigation
Let a send-immediate parcelport queue the parcels to a busy destination - #8182
Conversation
A connection handler that sends parcels immediately can now refuse that for a given destination, through can_send_immediate(locality const&). The parcels to that destination are then queued, and the background work (trigger_pending_work) sends all of them in one message once the destination is free again. Connection handlers without that overload behave as before. Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Up to standards ✅🟢 Issues
|
Proposed Changes
send_immediate_parcels) can now decide per destination, through an optionalcan_send_immediate(locality const&). If it refuses,put_parcel/put_parcelsqueue the parcels as for parcelports that don't send immediately.get_connection_and_send_parcelssends the queued parcels of a destination only once the connection handler accepts the destination again.trigger_pending_work(), called from the background work, then encodes all of them into one message.Any background context you want to provide?
This lets a parcelport that has only one message in flight per destination (the GASNet and OpenSHMEM parcelports of #7655 and #7519) send a parcel immediately if nothing is being sent to its destination, and send the parcels that arrive meanwhile together once it is free. In the GASNet parcelport, bursts of empty actions between two localities went from about 13 to 19 µs per action (every parcel its own message) to about 5 to 12 µs, with the single round trip unchanged (about 30 to 40 µs); TCP takes about 4 to 7 µs per action there.
Checklist