<div dir="ltr">Thanks Toke. Let me look into this. Is there packet loss during your tests? Can you share the output of the client and server per the error scenario?<br><br>With iperf 2 there is no TCP test exchange rather UDP test information is derived from packets in flight. The server determines a UDP test is finished by detecting a negative sequence number in the payload. In theory, this should separate UDP tests. The server detects a new UDP stream is by receiving a packet from a new source socket. If the packet carrying the negative sequence number is lost then summing across "tests" would be expected (even though not desired) per the current design and implementation. We intentionally left this as is as we didn't want to change the startup behavior nor require the network support TCP connections in order to run a UDP test.<br><br>Since we know UDP is unreliable, we do control both client and server over ssh pipes, and perform summing in flight per the interval reporting. Operating system signals are used to kill the server. The iperf sum and final reports are ignored. Unfortunately, I can't publish this package with iperf 2 for both technical and licensing reasons. There is some <a href="https://sourceforge.net/p/iperf2/code/ci/master/tree/flows/flows.py">skeleton code in Python 3.5 with asyncio</a> that may be of use. A next step here is to add support for <a href="http://pandas.pydata.org/index.html">pandas</a>, and possibly some <a href="https://en.wikipedia.org/wiki/Control_chart">control chart</a> techniques (both single and <a href="http://www.itl.nist.gov/div898/handbook/pmc/section3/pmc34.htm">multivariate</a>) for both regressions and outlier detection.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 12, 2017 at 1:32 AM, Toke Høiland-Jørgensen <span dir="ltr"><<a href="mailto:toke@toke.dk" target="_blank">toke@toke.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Jesper Dangaard Brouer <<a href="mailto:brouer@redhat.com">brouer@redhat.com</a>> writes:<br>
<br>
> If I use the --realtime option, I did run into issues where the server<br>
> thread would busypoll 100% after e.g. a client stopped a test<br>
> prematurely. And I had to kill it with -9.<br>
<br>
</span>Sort of related (but not specific to the new features), I've had to<br>
add a restart of the iperf server to my test scripts. If I run more than<br>
one (UDP) test against the same server instance, it would report back<br>
the average throughput over all tests, including any idle period<br>
in-between. Which is obviously not terribly useful... :)<br>
<span class="HOEnZb"><font color="#888888"><br>
-Toke<br>
</font></span></blockquote></div><br></div>