提交 1284885c 编写于 作者: A Amos Kong 提交者: Lucas Meneghel Rodrigues

netperf: stop tcpdump process during performance testing

This patch was wrongly dropped in original refactor.

Tcpdump brings extra latency, it causes the guest to batch
more bytes per packet. We should stop tcpdump to drop the
effect, it will be restarted at the beginning of next case.
Reported-by: NWenli Quan <wquan@redhat.com>
Signed-off-by: NAmos Kong <akong@redhat.com>
Acked-by: NWenli Quan <wquan@redhat.com>
上级 51784ddb
......@@ -207,6 +207,14 @@ def run_netperf(test, params, env):
username = params_tmp["username"]
env_setup(i, ip_dict[i], username, shell_port, password)
if "tcpdump" in env and env["tcpdump"].is_alive():
# Stop the background tcpdump process
try:
logging.debug("Stopping the background tcpdump")
env["tcpdump"].close()
except Exception:
pass
error.context("Start netperf testing", logging.info)
start_test(server_ip, server_ctl, host, clients, test.resultsdir,
l=int(params.get('l')),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册