> Hmm, good question. So you're just running ss in a busy loop, or did you keep
> the 'sleep'? If so, that seems a bit excessive to do by default.
Yes I did keep the sleep in the loop. Here's the full loop:
```bash
command_string=$(cat <<EOF
duration="$(echo "$count*$interval" | bc) sec";
endtime=\$(date -d "\$duration" +%s%N);
while (( \$(date +%s%N) <= \$endtime )); do
ss -t -i -p -n state connected "dst $target $filter"
echo ''
date '+Time: %s.%N';
echo "---";
sleep $interval || exit 1;
done
EOF
)
```
> I'd be a bit surprised if you could get this short a polling time out of the
> shell script, actually; what interval were you able to achieve?
Each iteration of this loop takes almost the same time as with the current
implementation in flent. So this doesn't really help to set smaller
`step-size`. But the total time of all iterations will be closer to the
expected test duration set by the user.
https://github.com/tohojo/flent/blob/9378031415f9d87b2ef500d082f4720abcec52da/flent/runners.py#L1978-L1979
Here, I feel that the calculated count is a bit excessive and keeps the loop
running for much longer than the set test duration. Using end time calculations
in the loop will solve this issue
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/tohojo/flent/issues/236#issuecomment-918892985
_______________________________________________
Flent-users mailing list -- flent-users@flent.org
To unsubscribe send an email to flent-users-le...@flent.org