未验证 提交 1d5b060a 编写于 作者: Q Qianqian Zhu 提交者: GitHub

Merge pull request #1588 from xiywang/vhost_with_cgroup_pid

vhost_with_cgroup: Modify the method to get vhost pid
......@@ -53,9 +53,7 @@ def run(test, params, env):
cgroup.set_property("cpu.cfs_period_us", 100000, 0)
assign_vm_into_cgroup(vm, cgroup, 0)
vhost_pids = process.system_output("pidof vhost-%s" % vm.get_pid(),
shell=True,
ignore_status=True).decode()
vhost_pids = process.system_output("pgrep vhost", shell=True).decode()
if not vhost_pids:
test.error("Vhost process does not exist")
logging.info("Vhost have started with pid %s" % vhost_pids)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册