This parameter controls which sizes will be tested by TCP_RR or TCP_CRR test.
By default 1K, 5K, 7K, 10K and 12K is tested. To override this you can run the test
with nperf_sizes="1K,1K" to test only size of 1K.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
recipes/regression_tests/phase3/short_lived_connections.py | 3 ++-
recipes/regression_tests/phase3/short_lived_connections.xml | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/recipes/regression_tests/phase3/short_lived_connections.py
b/recipes/regression_tests/phase3/short_lived_connections.py
index efdd40f..ecb7194 100644
--- a/recipes/regression_tests/phase3/short_lived_connections.py
+++ b/recipes/regression_tests/phase3/short_lived_connections.py
@@ -38,6 +38,7 @@ nperf_num_parallel = int(ctl.get_alias("nperf_num_parallel"))
nperf_debug = ctl.get_alias("nperf_debug")
nperf_max_dev = ctl.get_alias("nperf_max_dev")
nperf_tests = ctl.get_alias("nperf_tests")
+nperf_sizes = ctl.get_alias("nperf_sizes")
pr_user_comment = ctl.get_alias("perfrepo_comment")
official_result = bool_it(ctl.get_alias("official_result"))
adaptive_coalescing_off = bool_it(ctl.get_alias("adaptive_coalescing_off"))
@@ -117,7 +118,7 @@ ctl.wait(15)
srv_proc = m1.run(netperf_srv, bg=True)
ctl.wait(2)
-for size in ["1K,1K", "5K,5K", "7K,7K",
"10K,10K", "12K,12K"]:
+for size in nperf_sizes.split():
if 'TCP_RR' in nperf_tests.split():
netperf_cli_tcp_rr.update_options({"testoptions": "-r %s" %
size})
netperf_cli_tcp_crr.update_options({"testoptions": "-r %s" %
size})
diff --git a/recipes/regression_tests/phase3/short_lived_connections.xml
b/recipes/regression_tests/phase3/short_lived_connections.xml
index 0016d6e..799ec79 100644
--- a/recipes/regression_tests/phase3/short_lived_connections.xml
+++ b/recipes/regression_tests/phase3/short_lived_connections.xml
@@ -10,6 +10,7 @@
<alias name="nperf_debug" value="0"/>
<alias name="nperf_max_dev" value="20%"/>
<alias name="nperf_tests" value="TCP_RR TCP_CRR"/>
+ <alias name="nperf_sizes" value="1K,1K 5K,5K 7K,7K 10K,10K
12K,12K"/>
<alias name="mapping_file"
value="short_lived_connections.mapping" />
<alias name="net" value="192.168.101" />
<alias name="driver" value="ixgbe" />
--
2.14.4
Show replies by date