test suite reviews and discussions
 help / color / mirror / Atom feed
From: Xiao Qimai <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: Xiao Qimai <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V2 13/17]vhost_dequeue_zero_copy: update mpps value to check perf
Date: Fri,  5 Jun 2020 17:18:20 +0800	[thread overview]
Message-ID: <1591348704-433901-14-git-send-email-qimaix.xiao@intel.com> (raw)
In-Reply-To: <1591348704-433901-1-git-send-email-qimaix.xiao@intel.com>

Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
 tests/TestSuite_vhost_dequeue_zero_copy.py | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_vhost_dequeue_zero_copy.py b/tests/TestSuite_vhost_dequeue_zero_copy.py
index 500204b..8beb1ba 100644
--- a/tests/TestSuite_vhost_dequeue_zero_copy.py
+++ b/tests/TestSuite_vhost_dequeue_zero_copy.py
@@ -82,6 +82,7 @@ class TestVhostDequeueZeroCopy(TestCase):
 
         self.base_dir = self.dut.base_dir.replace('~', '/root')
         self.vhost_user = self.dut.new_session(suite="vhost-user")
+        self.number_of_ports = 1
 
     def set_up(self):
         """
@@ -303,7 +304,9 @@ class TestVhostDequeueZeroCopy(TestCase):
             Mpps = stats[1] / 1000000.0
         # when the fwd mode is rxonly, we can not receive data, so should not verify it
         if fwd_mode != "rxonly":
-            self.verify(Mpps > 0, "can not receive packets of frame size %d" % (frame_size))
+            self.verify(Mpps > self.check_value[frame_size],
+                        "%s of frame size %d speed verify failed, expect %s, result %s" % (
+                            self.running_case, frame_size, self.check_value[frame_size], Mpps))
         throughput = Mpps * 100 / \
                     float(self.wirespeed(self.nic, frame_size, 1))
         return Mpps, throughput
@@ -335,6 +338,15 @@ class TestVhostDequeueZeroCopy(TestCase):
 
         self.vhost_user.send_expect("start", "testpmd> ", 60)
 
+    @property
+    def check_value(self):
+        check_dict = dict.fromkeys(self.frame_sizes)
+        linerate = {64: 0.07, 128: 0.10, 256: 0.20, 512: 0.18, 1024: 0.10, 1280: 0.10, 1518: 0.10}
+        for size in self.frame_sizes:
+            speed = self.wirespeed(self.nic, size, self.number_of_ports)
+            check_dict[size] = round(speed * linerate[size], 2)
+        return check_dict
+
     def send_and_verify_throughput(self, cycle="", fwd_mode=""):
         """
         start to send packets and verify it
-- 
1.8.3.1


  parent reply	other threads:[~2020-06-05  9:27 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-05  9:18 [dts] [PATCH V2 00/17] update mpps in virtio cases to check performance Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 01/17]loopback_multi_paths_port_restart: update mpps value to check perf Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 02/17]loopback_multi_queues: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 03/17]loopback_virtio_user_server_mode: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 04/17]pvp_diff_qemu_version: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 05/17]pvp_multi_paths_performance: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 06/17]pvp_multi_paths_vhost_single_core_performance: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 07/17]pvp_multi_paths_virtio_single_core_performance: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 08/17]pvp_qemu_multi_paths_port_restart: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 09/17]pvp_vhost_user_built_in_net_driver: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 10/17]pvp_virtio_user_2M_hugepages: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 11/17]pvp_virtio_user_4k_pages: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 12/17]pvp_virtio_user_multi_queues_port_restart: " Xiao Qimai
2020-06-05  9:18 ` Xiao Qimai [this message]
2020-06-05  9:18 ` [dts] [PATCH V2 14/17]vhost_multi_queue_qemu: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 15/17]virtio_pvp_regression: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 16/17]virtio_user_for_container_networking: " Xiao Qimai
2020-06-05  9:18 ` [dts] [PATCH V2 17/17]vm2vm_virtio_pmd: " Xiao Qimai
2020-06-05  9:30 ` [dts] [PATCH V2 00/17] update mpps in virtio cases to check performance Xiao, QimaiX
2020-06-08  6:34   ` Wang, Yinan
2020-06-11 12:36   ` Tu, Lijuan
2020-06-12  4:48   ` Wang, Yinan
2020-06-19  3:20 ` Tu, Lijuan

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=1591348704-433901-14-git-send-email-qimaix.xiao@intel.com \
    --to=qimaix.xiao@intel.com \
    --cc=dts@dpdk.org \
    /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).