From 8a06ac007cba5cdcd303a60c5689df653821d878 Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Mon, 27 Jul 2020 11:58:14 +0200 Subject: [PATCH] Fix ddsperf default allowed RSS growth factor The default value was zero, which means only specifying -Qrss:N would require the memory usage at the end to be <= N MB, rather than the delta. Signed-off-by: Erik Boasson --- src/tools/ddsperf/ddsperf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/ddsperf/ddsperf.c b/src/tools/ddsperf/ddsperf.c index c099978..f13e5cf 100644 --- a/src/tools/ddsperf/ddsperf.c +++ b/src/tools/ddsperf/ddsperf.c @@ -165,7 +165,7 @@ static uint32_t ping_timeouts = 0; final RSS sample: final one must be <= init * (1 + rss_factor/100) + rss_term */ static bool rss_check = false; -static double rss_factor = 0; +static double rss_factor = 1; static double rss_term = 0; /* Minimum number of samples, minimum number of roundtrips to @@ -1612,7 +1612,7 @@ OPTIONS:\n\ bandwidth BW in bits/s (e.g., eth0:1e9)\n\ -D DUR run for at most DUR seconds\n\ -Q KEY:VAL set success criteria\n\ - rss:X%% max allowed increase in RSS, in %%\n\ + rss:X%% max allowed increase in RSS, in %%\n\ rss:X max allowed increase in RSS, in MB\n\ samples:N min received messages by \"sub\"\n\ roundtrips:N min roundtrips for \"pong\"\n\