Skip to content

UCP/FT: TX/RX tokens based protocols - #11751

Closed
evgeny-leksikov wants to merge 37 commits into
openucx:masterfrom
evgeny-leksikov:ucp_ft_on_tokens_01
Closed

evgeny-leksikov wants to merge 37 commits into
openucx:masterfrom
evgeny-leksikov:ucp_ft_on_tokens_01

Conversation

@evgeny-leksikov

Copy link
Copy Markdown
Contributor

rebase and refactoring of #11582

JeynmannZ added 30 commits June 27, 2026 19:07
Arm RC mlx5 endpoints before peer failure so error handling leaves outstanding sends available for extraction.

Suppress user completions while releasing CQ resources, and let endpoint destruction hand the failed QP to asynchronous garbage collection.
Verify that extraction reports posted operations in order and preserves the metadata needed by failover replay.
Use the failover-specific _ft suffix for the completion-backed PUT bcopy entry point and transport operation. Remove the redundant capability bit since availability follows QUERY_TOKEN support.
Organize extracted operation metadata by protocol parameter group, align field-mask ordering with the structure layout, and distinguish AM flags from flush parameters. Also align internal operation initializers touched by outstanding extraction support.
Exchange failed-lane state with the peer, extract outstanding transport operations, and coordinate endpoint reconfiguration before replay.

Introduce the failover endpoint lifecycle and baseline fault-tolerance coverage for AM zcopy recovery.
Convert owned UCT operation descriptors into internal replay requests and route them through normal UCP protocol selection.

Support extracted zcopy, bcopy, and short operations without exposing replay state outside failover recovery.
Move extracted and pending operations into one ordered replay queue before destroying failed lanes.

Keep requests active after successful ownership transfer, and fall back to regular discard when extraction cannot complete.
Advertise replay support for AM eager and PUT short/bcopy protocols when their candidate lanes are compatible with hardware PSN failover.

Preserve protocol-specific replay metadata for single- and multi-fragment operations.
Exercise AM and PUT single- and multi-fragment protocols with a saturated send queue so failover replays both undelivered and unposted operations.

Validate every received message and the final PUT payload after recovery.
Use the common RMA operation state and completion callbacks for completion-backed PUT bcopy replay. Consolidate failure cleanup and remove failover-specific RMA state.
Consume the refined outstanding-operation field masks and data layout, validate the operation field, and read AM flags from the AM parameter group.
JeynmannZ and others added 7 commits July 27, 2026 21:19
Merge failover PUT bcopy with the normal protocol
and replay extracted operations under one event-level
recovery frame before pending requests resume.
…gtets_opt

# Conflicts:
#	src/tools/perf/lib/libperf.c
#	src/ucp/core/ucp_ep.c
#	src/uct/api/v2/uct_v2.h
#	src/uct/base/uct_iface.c
#	src/uct/base/uct_iface.h
#	src/uct/cuda/cuda_copy/cuda_copy_iface.c
#	src/uct/cuda/cuda_ipc/cuda_ipc_iface.c
#	src/uct/cuda/gdr_copy/gdr_copy_iface.c
#	src/uct/gaudi/gaudi_gdr/gaudi_gdr_iface.c
#	src/uct/ib/efa/srd/srd_iface.c
#	src/uct/ib/mlx5/dc/dc_mlx5.c
#	src/uct/ib/mlx5/gdaki/gdaki.c
#	src/uct/ib/mlx5/gga/gga_mlx5.c
#	src/uct/ib/mlx5/ib_mlx5_ext.c
#	src/uct/ib/mlx5/ib_mlx5_ext.h
#	src/uct/ib/mlx5/rc/rc_mlx5.h
#	src/uct/ib/mlx5/rc/rc_mlx5_ep.c
#	src/uct/ib/mlx5/rc/rc_mlx5_iface.c
#	src/uct/ib/mlx5/ud/ud_mlx5.c
#	src/uct/ib/rc/base/rc_ep.c
#	src/uct/ib/rc/verbs/rc_verbs_iface.c
#	src/uct/ib/rdmacm/rdmacm_cm.c
#	src/uct/ib/ud/verbs/ud_verbs.c
#	src/uct/rocm/copy/rocm_copy_iface.c
#	src/uct/rocm/ipc/rocm_ipc_iface.c
#	src/uct/sm/mm/base/mm_iface.c
#	src/uct/sm/scopy/cma/cma_iface.c
#	src/uct/sm/scopy/knem/knem_iface.c
#	src/uct/sm/self/self.c
#	src/uct/tcp/tcp_iface.c
#	src/uct/tcp/tcp_sockcm.c
#	src/uct/ugni/smsg/ugni_smsg_iface.c
#	src/uct/ze/copy/ze_copy_iface.c
#	test/gtest/ucp/test_ucp_fault_tolerance.cc
@evgeny-leksikov

Copy link
Copy Markdown
Contributor Author

replaced with #11810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants