
This adds options to check for "unreasonable" RSS growth, receipt of a minimum number of samples and having run a minimum number of roundtrips. Signed-off-by: Erik Boasson <eb@ilities.com>
23 lines
650 B
Bash
Executable file
23 lines
650 B
Bash
Executable file
exitcode=0
|
|
# RSS/samples/roundtrip numbers are based on experimentation on Travis
|
|
bin/ddsperf -L -D10 -n10 -Qminmatch:2 -Qrss:10% -Qrss:0.5 -Qsamples:300000 -Qroundtrips:3000 sub ping & ddsperf_pids=$!
|
|
bin/ddsperf -L -D10 -n10 -Qminmatch:2 -Qrss:10% -Qrss:0.5 pub & ddsperf_pids="$ddsperf_pids $!"
|
|
sleep 11
|
|
for pid in $ddsperf_pids ; do
|
|
if kill -0 $pid 2>/dev/null ; then
|
|
echo "killing process $pid"
|
|
kill -9 $pid
|
|
exitcode=2
|
|
fi
|
|
wait $pid
|
|
x=$?
|
|
if [[ $x -gt $exitcode ]] ; then
|
|
exitcode=$x
|
|
fi
|
|
done
|
|
if [[ $exitcode -gt 0 ]] ; then
|
|
echo "** FAILED **"
|
|
else
|
|
echo "** OK **"
|
|
fi
|
|
exit $exitcode
|