Repository navigation
UCT/MM: Only poll the mm_iface selected for AM_LANE - #10679
arun-chandran-edarath wants to merge 2 commits into
Conversation
|
because of the need to support assymetric situations, we cannot assume the other peers would use the same transport. so we use the adaptive progress mechanism in order to progress only on transports that received at least one active message - see ucp_worker_iface_check_events_do function. |
This change is not about stopping polling of 'devices' from two different interfaces of different types. It is about stopping polling of two FIFOs ( The All three TLS options ( I am not sure why Eventually, As a result, Inside a single node, what asymmetries cause a |
e63fb15 to
f42261f
Compare
|
@yosefe With my patch, I am seeing the following gtest fail intermittently (about 1 out of 5 runs). ./test/gtest/gtest --gtest_filter=shm_ib/test_ucp_tag_match.send_nb_recv_unexp/0 [----------] Global test environment tear-down 1 FAILED TEST The full log is attached. Can you please check? I feel it is introducing some weird timing issue. Please let me know if you need more information. |
@yosefe , thanks for the pointer; I am able to see this in the gdb bt of the test "shm_ib/test_ucp_tag_match.send_nb_recv_unexp/0" (gdb) bt |
da7b251 to
585c529
Compare
Signed-off-by: Arun Chandran <Arun.Chandran@amd.com>
Signed-off-by: Arun Chandran <Arun.Chandran@amd.com>
|
Hi @arun-chandran-edarath - we're cleaning up the UCX PR backlog and plan to close this PR in 7 days. Please let us know if you'd like to keep it open. |
|
@gleon99 I'd like to keep this open. The underlying issue still stands: the xpmem FIFO gets polled even though only the sysv FIFO (selected for AM_LANE) is used to exchange messages, so the extra polling is wasted work. To recap where this stands: sysv, posix, and xpmem all get the same wireup score, sysv wins AM_LANE on the lowest rsc_index, and xpmem ends up selected for RKEY_PTR, which leaves both FIFOs in worker->progress_q. @yosefe, could you take another look? I'd like your feedback on whether this is the right approach to avoid polling the unused xpmem FIFO. |
What
Enhancement: Avoid Polling on Multiple Memory Interface FIFOs
Currently, in intra-node scenarios, multiple memory interface FIFOs (e.g.,
sysv,xpmem) are getting polled for messages.This patch ensures that only the interface selected for
AM_LANEis polled, avoiding unnecessary polling of other FIFOs; as weuse only the FIFO selected for AM_LANE for communication
1. Wireup Stage
During the wireup stage, lanes of types
UCP_LANE_TYPE_AM,UCP_LANE_TYPE_RKEY_PTR, andUCP_LANE_TYPE_RMA_BWare constructed to reach otherucp_workerinstances (ranks).Logs:
GDB Output:
2. Polling
Both
sysvandxpmemFIFOs are being polled during mca_pml_ucx_progress()3. During MPI Execution
When the MPI application is running, ranks use only one memory interface FIFO to exchange messages.
The
xpmemFIFO is polled unnecessarily. If multiple FIFOs were used to exchange messages, it would need a mechanism to avoid out-of-order message delivery.