﻿# UCX rendezvous thresholds need the real message distribution

Evaluate rendezvous and zero-copy thresholds as separate protocol choices across message sizes, memory types and accepted application work.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/ucx-rendezvous-threshold-workload/
Language: en

## The large-message winner slows the application

A microbenchmark improves after a rendezvous threshold override, but a training phase with many smaller messages becomes slower. That is not necessarily inconsistent. A threshold changes which protocol handles different portions of the workload, with different setup, copying and synchronization costs. The useful comparison must preserve the application's message-size distribution instead of declaring the setting optimal from one large transfer or a single best throughput result.

## Separate rendezvous from zero-copy

The [HPC-X UCX guide](https://networking-docs.nvidia.com/hpcxum/225/unified-communication-x-framework-library) documents distinct controls for the rendezvous threshold and the zero-copy threshold, with automatic selection when they are not overridden. They are not interchangeable promises. A message entering rendezvous does not by itself prove a direct GPU path, and a zero-copy eligibility boundary does not describe every synchronization or matching cost. Record both effective settings and the actual memory types used by the operation.

## Inspect the selected protocol ranges

The [OpenUCX FAQ](https://openucx.readthedocs.io/en/master/faq.html) distinguishes short, buffered-copy and zero-copy primitives and documents protocol-selection introspection. Use the supported output for the installed release to associate size ranges with the chosen protocol and devices. Do not copy example ranges from documentation into a report as measured behavior of the target cluster. A configuration variable describes intent; actual protocol output and completed operations establish which part of the comparison was exercised.

## Include memory and placement conditions

GPU rendezvous depends on the relevant GPU support and supported direct-access infrastructure; host staging remains a separate possibility. Keep allocation method, registration warmth, GPU-to-NIC placement and active competing work with the test record. Comparing a warmed registered buffer against a cold allocation changes more than a threshold. Likewise, changing rank placement while tuning can shift transport and locality costs, making a previously attractive boundary unrepresentative of the application's normal execution.

## Construct a distribution-based acceptance

Within an isolated approved comparison, preserve representative message sizes and their occurrence or critical-path role. Measure useful completion with content checks, setup costs where relevant and resource pressure, not only peak byte rate. Include sizes around an observed protocol boundary to expose discontinuities. Compare automatic behavior with the justified override and retain regressions in smaller or less frequent operations. Acceptance means the stated workload criterion improves or remains acceptable without hidden correctness failures; it does not require every size to select the same protocol.

## Preserve the experiment's limits

A successful threshold for one memory type, transport and rank placement is not a portable tuning constant. Revalidate after library, hardware, allocation or workload changes. The [transport assignment guide](/journal/guide-perf-nccl-transport/) supplies the distinction between requested and selected behavior, while [collective metric definitions](/journal/guide-perf-nccl-tests-bandwidth-units/) prevent a microbenchmark column from becoming an application speedup claim. Report the tested protocol ranges and accepted work explicitly. No threshold or benchmark number in this procedure is a claim that an experiment has already been run.
