提交 0c064830 编写于 作者: M Maosheng Zhang

tp-qemu: fix netperf.py support powerkvm

ID: 1315548 1315167
......@@ -552,8 +552,8 @@ def launch_client(sessions, server, server_ctl, host, clients, l, nf_args,
cmd = ""
fname = "/tmp/netperf.%s.nf" % pid
if numa_enable:
output = ssh_cmd(client_s, "numactl --show|grep nodebind")
n = int(output.split()[-1])
output = ssh_cmd(client_s, "numactl --hardware")
n = re.findall(r"node (\d+) cpus:", output)[-1]
cmd += "numactl --cpunodebind=%s --membind=%s " % (n, n)
cmd += "/tmp/netperf_agent.py %d %s -D 1 -H %s -l %s %s" % (i,
client_path, server, int(l) * 1.5, nf_args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册