From 58c678fe9a942b4caf2fb736f2067be2eda162f5 Mon Sep 17 00:00:00 2001 From: Alexey Novikov Date: Thu, 23 Oct 2025 18:13:27 +0000 Subject: [PATCH] fabtests/benchmark_shared: bandwidth_rma: force sync after each warmup iteration Modify bandwidth_rma() to synchronize after every warmup iteration instead of only at window boundaries. This ensures proper warmup of the server->client connection path for unidirectinal mode The writedata test asymmetry (client sends many writes, server replies with single send per window) means only the client->server path gets warmed up during normal iterations. Forcing sync during warmup ensures both directions are properly established before timing begins. Signed-off-by: Alexey Novikov --- fabtests/benchmarks/benchmark_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabtests/benchmarks/benchmark_shared.c b/fabtests/benchmarks/benchmark_shared.c index bace77c01d1..efde320b466 100644 --- a/fabtests/benchmarks/benchmark_shared.c +++ b/fabtests/benchmarks/benchmark_shared.c @@ -767,7 +767,7 @@ int bandwidth_rma(enum ft_rma_opcodes rma_op, struct fi_rma_iov *remote) if (ret) return ret; - if (++j == opts.window_size) { + if (++j == opts.window_size || i < opts.warmup_iterations) { ret = bw_rma_comp(rma_op, j); if (ret) return ret;