Currently we use '-b' parameter of netperf to test parallel traffic, client would send many requests at start of _RR tests, but it's not real parallelism, we want to use demo mode to improve the stabilization. This patch removes '-b' parameter and uses multiple threads for TCP_RR testing.
Signed-off-by: Amos Kong <[email protected]> --- tests/netperf.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/netperf.py b/tests/netperf.py index 4a49e92..cde8a39 100644 --- a/tests/netperf.py +++ b/tests/netperf.py @@ -162,8 +162,9 @@ def run_netperf(test, params, env): clients_n = 1 # Get the sessions that needed when run netperf parallel # The default client connect is the first one. - if params.get("sessions"): - for i in re.split("\s+", params.get('sessions')): + if params.get("sessions") or params.get("sessions_rr"): + sessions_str = params.get('sessions') + " " + params.get("sessions_rr") + for i in sessions_str.split(): clients_n = max(clients_n, int(i.strip())) for i in range(clients_n): if client in params.get("vms"): @@ -305,8 +306,8 @@ def start_test(server, server_ctl, host, clients, resultsdir, l=60, for i in sizes_test: for j in sessions_test: if (protocol == "TCP_RR"): - ret = launch_client(1, server, server_ctl, host, clients, l, - "-t %s -v 0 -P -0 -- -r %s,%s -b %s" % (protocol, i, i, j), + ret = launch_client(j, server, server_ctl, host, clients, l, + "-t %s -v 0 -P -0 -- -r %s,%s" % (protocol, i, i), netserver_port, params, server_cyg) thu = parse_file("/tmp/netperf.%s" % ret['pid'], 0) elif (protocol == "TCP_MAERTS"): -- 1.7.1 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
