test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Liu, Yong" <yong.liu@intel.com>
To: "Yao, Lei A" <lei.a.yao@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Yao, Lei A" <lei.a.yao@intel.com>
Subject: Re: [dts] [PATCH V2] test: add vhost/virtio pvp performance test based	on qemu
Date: Wed, 21 Dec 2016 08:43:29 +0000	[thread overview]
Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62D2C5A1@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <1482308869-9080-1-git-send-email-lei.a.yao@intel.com>

Hi Lei, remaining two comments.

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lei,yao
> Sent: Wednesday, December 21, 2016 4:28 PM
> To: dts@dpdk.org
> Cc: Yao, Lei A
> Subject: [dts] [PATCH V2] test: add vhost/virtio pvp performance test
> based on qemu
> 
> From: lei yao <lei.a.yao@intel.com>
> 
> The test case include 3 part:
> 1. virtio 0.95 performance test
> virtio0.95 is the default version for qemu. Vector, normal, mergeable path
> will be tested on this version
> 2. Test vector performance on virtio 1.0.
> 
> Signed-off-by: lei yao <lei.a.yao@intel.com>
> ---
>  tests/TestSuite_vhost_qemu_pvp_performance.py | 311
> ++++++++++++++++++++++++++
>  1 file changed, 311 insertions(+)
>  create mode 100644 tests/TestSuite_vhost_qemu_pvp_performance.py
> 
> diff --git a/tests/TestSuite_vhost_qemu_pvp_performance.py
> b/tests/TestSuite_vhost_qemu_pvp_performance.py
> new file mode 100644
> index 0000000..32f5c56
> --- /dev/null
> +++ b/tests/TestSuite_vhost_qemu_pvp_performance.py
> +
> +        self.number_of_ports = 1
> +        self.header_row = ["FrameSize(B)", "Throughput(Mpps)",
> "LineRate(%)", "Cycle"]
> +        self.memory_channel = 4
> +        # Specify the path of Qemu binary for different Qemu versions,
> user can modify this as necessary
> +        self.qemu_path = ["/home/lei/qemu_install/qemu_2.5/bin/qemu-
> system-x86_64",
> +                          "/home/lei/qemu_install/qemu_2.6/bin/qemu-
> system-x86_64",
> +                          "/home/lei/qemu_install/qemu_2.7/bin/qemu-
> system-x86_64"]

Please remove hard code path, its' better to use configuration file.

> +
> +    def set_up(self):
> +        #
> +        # Run before each test case.
> +        #
> +        # Launch vhost sample using default params
> +        #
> +        self.dut.send_expect("rm -rf ./vhost.out", "#")
> +        self.dut.send_expect("rm -rf ./vhost-net*", "#")
> +        self.dut.send_expect("killall -s INT vhost-switch", "#")
> +        self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
> +


Please not direct killall qemu, maybe someone are using them for other usage. You can simple trust framework stop function.
If there's still has issue in kill qemu process, let's fix it in framework.

      reply	other threads:[~2016-12-21  8:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-21  8:27 lei,yao
2016-12-21  8:43 ` Liu, Yong [this message]

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=86228AFD5BCD8E4EBFD2B90117B5E81E62D2C5A1@SHSMSX103.ccr.corp.intel.com \
    --to=yong.liu@intel.com \
    --cc=dts@dpdk.org \
    --cc=lei.a.yao@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).