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

1-hour run limitation and stats interval in JSON output #166

Closed
fefone opened this issue May 7, 2014 · 5 comments
Closed

1-hour run limitation and stats interval in JSON output #166

fefone opened this issue May 7, 2014 · 5 comments

Comments

@fefone
Copy link

fefone commented May 7, 2014

Hi,
I am trying to run an iperf3 test between several (up to 70 once properly working) hosts in a full-meshed fashion. I want it to run for a day, but at this stage the max running time is 1 hour. Unfortunately due to the server limitation of max one simultaneous iperf3 instance/run per port I am not able to get the result I need for a complete daily test. Is there a way to change this limit? I'm afraid I'm not into programming.

Another question is about the stats output (jitter for example) in a JSON file: it is printed only at the end of the run and not as frequent as the interval. Is there a way to change this behaviour? As above I don't have any programming skills.

Thanks so much.
Regards
Federico

@bmah888 bmah888 self-assigned this May 9, 2014
@bmah888 bmah888 added this to the 3.0.x milestone May 9, 2014
@bmah888
Copy link
Contributor

bmah888 commented May 9, 2014

The maximum running time limit is set by the constant MAX_TIME in src/iperf.h. Changing that would change the maximum value that can be specified on the command-line. @bltierney and I discussed this, and we think the maximum should definitely be higher, because there are some good use cases for running tests longer than an hour, although we're not sure exactly how much higher. Maybe we might go to 1 day (86400).

The JSON can only be displayed at the end of the run because, as the JSON results are currently structured, it's not possible to display a partial result.

Marking this for 3.0.x for increasing the MAX_TIME parameter.

bmah888 added a commit that referenced this issue May 9, 2014
Fixes #166.

(cherry picked from commit c8a98bd)
Signed-off-by: Bruce A. Mah <bmah@es.net>
@bmah888 bmah888 closed this as completed in c8a98bd May 9, 2014
@fefone
Copy link
Author

fefone commented May 11, 2014

Hi Bruce,

Thanks. About the JSON output: I understand it is written all at the end, but my question was about another subject, but I solved this. In fact one of my colleagues noticed that server and client outputs are different: the one from server has jitter printed according to the interval, while the one from client has it only at the end and calculated over the whole run. So we solved using the server's output, but perhaps you want to check the reason of this difference.

Regards
Federico

@bmah888
Copy link
Contributor

bmah888 commented May 12, 2014

Jitter statistics are currently only available on the server because that's where they're generated. There's an outstanding issue (#160) for the client and server to exchange more data at the end of the test so each has a more complete set of results.

@Yakkity
Copy link

Yakkity commented Nov 2, 2016

Can I politely ask why set an upper limit on test duration at all?

@bmah888
Copy link
Contributor

bmah888 commented Nov 17, 2016

@Yakkity: We wanted to avoid the danger of having high-bitrate streams run essentially forever. Someone who has a real need for this should be able to modify the code (it's trivial).

vladimiroltean added a commit to vladimiroltean/lbt that referenced this issue Nov 3, 2017
* Want longer? esnet/iperf#166

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
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

3 participants