From: Lijuan Tu <lijuan.tu@intel.com>
To: "zhao,meijuan" <meijuanx.zhao@intel.com>, dts@dpdk.org
Subject: Re: [dts] [PATCH V1] tests/vm power: change guest vm power mgr option
Date: Sat, 28 Jul 2018 01:08:21 +0800 [thread overview]
Message-ID: <d2da2a48-aead-1828-aa42-69860372a975@intel.com> (raw)
In-Reply-To: <1532668129-101014-1-git-send-email-meijuanx.zhao@intel.com>
Applied, thanks
On 2018年07月27日 13:08, zhao,meijuan wrote:
> host core number is three at least,guest option have vm-name
> and vcpu-list at least, you can refer to dpdk 59287933
>
> Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
> ---
> tests/TestSuite_vm_power_manager.py | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/tests/TestSuite_vm_power_manager.py b/tests/TestSuite_vm_power_manager.py
> index 5e273f4..1e72b19 100644
> --- a/tests/TestSuite_vm_power_manager.py
> +++ b/tests/TestSuite_vm_power_manager.py
> @@ -90,9 +90,8 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
> "examples/vm_power_manager/guest_cli")
> self.verify("Error" not in out, "Compilation error")
> self.verify("No such" not in out, "Compilation error")
> -
> self.vm_power_dir = "./examples/vm_power_manager/"
> - mgr_cmd = self.vm_power_dir + "build/vm_power_mgr -c 0x3 -n 4"
> + mgr_cmd = self.vm_power_dir + "build/vm_power_mgr -c 0x7 -n 4"
> out = self.dut.send_expect(mgr_cmd, "vmpower>", 120)
> self.dut.send_expect("add_vm %s" % self.vm_name, "vmpower>")
> self.dut.send_expect("add_channels %s all" % self.vm_name, "vmpower>")
> @@ -115,7 +114,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
> """
> # check Channels and vcpus
> guest_cmd = self.vm_power_dir + \
> - "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- -i"
> + "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" %s self.vm_name
> out = self.vm_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
> self.vm_dut.send_expect("quit", "# ")
>
> @@ -134,7 +133,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
> Check host cpu frequency can scale down in VM
> """
> guest_cmd = self.vm_power_dir + \
> - "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- -i"
> + "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" %s self.vm_name
> out = self.vm_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
>
> for vcpu in range(self.core_num):
> @@ -164,7 +163,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
> Check host cpu frequency can scale up in VM
> """
> guest_cmd = self.vm_power_dir + \
> - "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- -i"
> + "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" %s self.vm_name
> out = self.vm_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
>
> for vcpu in range(self.core_num):
> @@ -191,7 +190,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
> Check host cpu frequency can scale to max in VM
> """
> guest_cmd = self.vm_power_dir + \
> - "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- -i"
> + "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" %s self.vm_name
> out = self.vm_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
>
> max_freq_path = "cat /sys/devices/system/cpu/cpu%s/cpufreq/" + \
> @@ -214,7 +213,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
> Check host cpu frequency can scale to min in VM
> """
> guest_cmd = self.vm_power_dir + \
> - "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- -i"
> + "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" %s self.vm_name
> out = self.vm_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
>
> min_freq_path = "cat /sys/devices/system/cpu/cpu%s/cpufreq/" + \
> @@ -279,7 +278,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
> self.verify("No such" not in out, "Compilation error")
>
> guest_cmd = self.vm_power_dir + \
> - "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- -i"
> + "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" %s self.vm_name
> out = vm2_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
> vm2_dut.send_expect("quit", "# ")
> vm2.stop()
next prev parent reply other threads:[~2018-07-27 8:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-27 5:08 zhao,meijuan
2018-07-27 17:08 ` Lijuan Tu [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-07-27 1:25 zhao,meijuan
2018-07-27 3:01 ` Tu, Lijuan
2018-07-24 1:44 zhao,meijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d2da2a48-aead-1828-aa42-69860372a975@intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=meijuanx.zhao@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).