diff options
author | Rod Smith <rod.smith@canonical.com> | 2017-07-21 18:10:51 -0400 |
---|---|---|
committer | Rod Smith <rod.smith@canonical.com> | 2017-07-21 18:10:51 -0400 |
commit | a6caba1376fc3145d988b49cff70cee9ec81db2b (patch) | |
tree | f5e2c836ffe77719a7de946622164ec149563ba1 | |
parent | a9d07e0e686f9596501df506d3ad9ba9ef0246da (diff) |
Changes to network/iperf parallelism in response to Jeff's comments
-rwxr-xr-x | bin/network | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/network b/bin/network index db40ebee..aaee226c 100755 --- a/bin/network +++ b/bin/network @@ -96,8 +96,7 @@ class IPerfPerformanceTest(object): else: threads = self.num_threads - if threads != 1: - logging.info("Using {} threads.".format(threads)) + logging.debug("Using {} threads.".format(threads)) # If we set run_time, use that instead to build the command. if self.run_time is not None: @@ -111,8 +110,9 @@ class IPerfPerformanceTest(object): # time without timeout to catch devices that slow down, and also # not prematurely end iperf on low-bandwidth devices. self.timeout = 1080*int(self.data_size) - cmd = "timeout {} {} -c {} -n {}G -i 1 -f -m".format( - self.timeout, self.executable, self.target, self.data_size) + cmd = "timeout {} {} -c {} -n {}G -i 1 -f -m -P {}".format( + self.timeout, self.executable, self.target, self.data_size, + threads) logging.debug("Executing command {}".format(cmd)) logging.debug("Starting iperf against {}, this could take a while...". |