Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to iPerf 3.9 #6

Closed
ndfred opened this issue May 2, 2019 · 7 comments
Closed

Update to iPerf 3.9 #6

ndfred opened this issue May 2, 2019 · 7 comments
Assignees

Comments

@ndfred
Copy link
Owner

ndfred commented May 2, 2019

This will give us bidirectional tests, but requires changes since it changes the API

@ndfred ndfred self-assigned this May 2, 2019
@ndfred ndfred changed the title Update to iPerf master Update to iPerf 3.7 Oct 13, 2019
@ndfred
Copy link
Owner Author

ndfred commented Oct 13, 2019

Build issues:

ndfred added a commit that referenced this issue Oct 13, 2019
@ndfred
Copy link
Owner Author

ndfred commented Oct 13, 2019

Tests look fine, but the progress bar doesn't work anymore
PGO errors while building too

@ndfred
Copy link
Owner Author

ndfred commented Oct 13, 2019

Xcode logs when adding NSLog(@"Elapsed: %.2f (duration: %.2f, test timer: %d, test usec timer: %d, now: %ld)", test_elapsed, test_duration, test->timer->time.secs, test->timer->time.usecs, now.tv_sec); to the test progress update code, looks like the test timer doesn't move:

2019-10-14 00:05:07.173638+0100 iperf[1740:35628] Elapsed: 1571005094.00 (duration: 10.00, test timer: 2823, test usec timer: 21962, now: 1571007907)
2019-10-14 00:05:08.173552+0100 iperf[1740:35628] Elapsed: 1571005095.00 (duration: 10.00, test timer: 2823, test usec timer: 21962, now: 1571007908)
2019-10-14 00:05:09.173770+0100 iperf[1740:35628] Elapsed: 1571005096.00 (duration: 10.00, test timer: 2823, test usec timer: 21962, now: 1571007909)
2019-10-14 00:05:10.173667+0100 iperf[1740:35628] Elapsed: 1571005097.00 (duration: 10.00, test timer: 2823, test usec timer: 21962, now: 1571007910)
2019-10-14 00:05:11.173638+0100 iperf[1740:35628] Elapsed: 1571005098.00 (duration: 10.00, test timer: 2823, test usec timer: 21962, now: 1571007911)
2019-10-14 00:05:12.173548+0100 iperf[1740:35628] Elapsed: 1571005099.00 (duration: 10.00, test timer: 2823, test usec timer: 21962, now: 1571007912)
2019-10-14 00:05:13.173599+0100 iperf[1740:35628] Elapsed: 1571005100.00 (duration: 10.00, test timer: 2823, test usec timer: 21962, now: 1571007913)
2019-10-14 00:05:14.173582+0100 iperf[1740:35628] Elapsed: 1571005101.00 (duration: 10.00, test timer: 2823, test usec timer: 21962, now: 1571007914)
2019-10-14 00:05:15.173709+0100 iperf[1740:35628] Elapsed: 1571005102.00 (duration: 10.00, test timer: 2823, test usec timer: 21962, now: 1571007915)

It looks like stats_timer does move but the reference is not the current time. Time to actually dig into esnet/iperf@cde81d76 and understand what is going on.

@ndfred ndfred changed the title Update to iPerf 3.7 Update to iPerf 3.8.1 Jun 29, 2020
@ndfred
Copy link
Owner Author

ndfred commented Jun 29, 2020

a8e2ca6 updates iPerf3 to version 3.8.1, early simulator tests are looking good. There is an off-by-one error when updating the progress bar, it shows 100% progress before the end of the test.

@ndfred ndfred changed the title Update to iPerf 3.8.1 Update to iPerf 3.9 Sep 9, 2020
@ndfred
Copy link
Owner Author

ndfred commented Sep 9, 2020

1424d72 updates to iPerf3 3.9, same issues as with 3.8.1

@ndfred
Copy link
Owner Author

ndfred commented Nov 14, 2020

Added more logging to understand why the UI completes before the end, it looks like we flag 100% progress before the end of the test, and start at 20% when we should start at 10% (this is a 10 seconds test):

2020-11-14 09:35:27.966407+0000 iperf[35377:816483] Starting the test
Connecting to host 192.168.1.11, port 5201
Reverse mode, remote host 192.168.1.11 is sending
[  7] local 192.168.1.60 port 59083 connected to 192.168.1.11 port 5201
[  9] local 192.168.1.60 port 59084 connected to 192.168.1.11 port 5201
[ 11] local 192.168.1.60 port 59085 connected to 192.168.1.11 port 5201
[ 13] local 192.168.1.60 port 59086 connected to 192.168.1.11 port 5201
[ 15] local 192.168.1.60 port 59087 connected to 192.168.1.11 port 5201
2020-11-14 09:35:29.052409+0000 iperf[35377:816483] Bandwidth on 5 streams: 290.93 Mbits/s (retransmits: 0, lost: 0.00%, jitter: 0, interval: 1.00s)
2020-11-14 09:35:29.052672+0000 iperf[35377:816483] Test duration: 10.00s, elapsed: 2.00, progress: 0.20
2020-11-14 09:35:29.052873+0000 iperf[35377:816483] Bandwidth: 290.93, progress: 0.20
2020-11-14 09:35:30.052418+0000 iperf[35377:816483] Bandwidth on 5 streams: 290.38 Mbits/s (retransmits: 0, lost: 0.00%, jitter: 0, interval: 1.00s)
2020-11-14 09:35:30.052710+0000 iperf[35377:816483] Test duration: 10.00s, elapsed: 3.00, progress: 0.30
2020-11-14 09:35:30.052869+0000 iperf[35377:816483] Bandwidth: 290.38, progress: 0.30
2020-11-14 09:35:31.052409+0000 iperf[35377:816483] Bandwidth on 5 streams: 307.67 Mbits/s (retransmits: 0, lost: 0.00%, jitter: 0, interval: 1.00s)
2020-11-14 09:35:31.052688+0000 iperf[35377:816483] Test duration: 10.00s, elapsed: 4.00, progress: 0.40
2020-11-14 09:35:31.052831+0000 iperf[35377:816483] Bandwidth: 307.67, progress: 0.40
2020-11-14 09:35:32.052361+0000 iperf[35377:816483] Bandwidth on 5 streams: 307.55 Mbits/s (retransmits: 0, lost: 0.00%, jitter: 0, interval: 1.00s)
2020-11-14 09:35:32.052617+0000 iperf[35377:816483] Test duration: 10.00s, elapsed: 5.00, progress: 0.50
2020-11-14 09:35:32.052760+0000 iperf[35377:816483] Bandwidth: 307.55, progress: 0.50
2020-11-14 09:35:33.052369+0000 iperf[35377:816483] Bandwidth on 5 streams: 307.89 Mbits/s (retransmits: 0, lost: 0.00%, jitter: 0, interval: 1.00s)
2020-11-14 09:35:33.052609+0000 iperf[35377:816483] Test duration: 10.00s, elapsed: 6.00, progress: 0.60
2020-11-14 09:35:33.052754+0000 iperf[35377:816483] Bandwidth: 307.89, progress: 0.60
2020-11-14 09:35:34.052522+0000 iperf[35377:816483] Bandwidth on 5 streams: 305.95 Mbits/s (retransmits: 0, lost: 0.00%, jitter: 0, interval: 1.00s)
2020-11-14 09:35:34.052758+0000 iperf[35377:816483] Test duration: 10.00s, elapsed: 7.00, progress: 0.70
2020-11-14 09:35:34.052948+0000 iperf[35377:816483] Bandwidth: 305.95, progress: 0.70
2020-11-14 09:35:35.052387+0000 iperf[35377:816483] Bandwidth on 5 streams: 305.86 Mbits/s (retransmits: 0, lost: 0.00%, jitter: 0, interval: 1.00s)
2020-11-14 09:35:35.052660+0000 iperf[35377:816483] Test duration: 10.00s, elapsed: 8.00, progress: 0.80
2020-11-14 09:35:35.052827+0000 iperf[35377:816483] Bandwidth: 305.86, progress: 0.80
2020-11-14 09:35:36.052366+0000 iperf[35377:816483] Bandwidth on 5 streams: 292.81 Mbits/s (retransmits: 0, lost: 0.00%, jitter: 0, interval: 1.00s)
2020-11-14 09:35:36.052612+0000 iperf[35377:816483] Test duration: 10.00s, elapsed: 9.00, progress: 0.90
2020-11-14 09:35:36.052771+0000 iperf[35377:816483] Bandwidth: 292.81, progress: 0.90
2020-11-14 09:35:37.052361+0000 iperf[35377:816483] Bandwidth on 5 streams: 302.44 Mbits/s (retransmits: 0, lost: 0.00%, jitter: 0, interval: 1.00s)
2020-11-14 09:35:37.052610+0000 iperf[35377:816483] Test duration: 10.00s, elapsed: 10.00, progress: 1.00
2020-11-14 09:35:37.052789+0000 iperf[35377:816483] Bandwidth: 302.44, progress: 1.00

iperf Done.
2020-11-14 09:35:38.266851+0000 iperf[35377:816483] Bandwidth on 5 streams: 304.15 Mbits/s (retransmits: 0, lost: 0.00%, jitter: 0, interval: 1.00s)
2020-11-14 09:35:38.267064+0000 iperf[35377:816483] Bandwidth: 304.15, progress: 1.00
2020-11-14 09:35:38.270419+0000 iperf[35377:816483] Not running

@ndfred
Copy link
Owner Author

ndfred commented Nov 14, 2020

This is done now!

@ndfred ndfred closed this as completed Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant