test suite reviews and discussions
 help / color / mirror / Atom feed
From: "lei,yao" <lei.a.yao@intel.com>
To: dts@dpdk.org
Cc: lei yao <lei.a.yao@intel.com>
Subject: [dts] [PATCH V1] test_plans: add test plan for vhost/virtio loopback performance test
Date: Wed, 21 Dec 2016 09:24:45 +0800	[thread overview]
Message-ID: <1482283485-8497-1-git-send-email-lei.a.yao@intel.com> (raw)

From: lei yao <lei.a.yao@intel.com>

Signed-off-by: lei yao <lei.a.yao@intel.com>
---
 ..._loopback_performance_virtio_user_test_plan.rst | 129 +++++++++++++++++++++
 1 file changed, 129 insertions(+)
 create mode 100644 test_plans/vhost_loopback_performance_virtio_user_test_plan.rst

diff --git a/test_plans/vhost_loopback_performance_virtio_user_test_plan.rst b/test_plans/vhost_loopback_performance_virtio_user_test_plan.rst
new file mode 100644
index 0000000..e94dd17
--- /dev/null
+++ b/test_plans/vhost_loopback_performance_virtio_user_test_plan.rst
@@ -0,0 +1,129 @@
+.. Copyright (c) <2016>, Intel Corporation
+   All rights reserved.
+
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+
+   - Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+
+   - Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in
+     the documentation and/or other materials provided with the
+     distribution.
+
+   - Neither the name of Intel Corporation nor the names of its
+     contributors may be used to endorse or promote products derived
+     from this software without specific prior written permission.
+
+   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+   OF THE POSSIBILITY OF SUCH DAMAGE.
+
+===============================================
+DPDK Vhost loopback performance for virtio_user
+===============================================
+
+This test plan will cover the loopback performance test cases based virtio_user
+
+Test Case 1: DPDK loopback performance on mergeable path
+========================================================
+
+Flow: 
+Vhost --> Virtio--> Vhost
+
+1. First build the dpdk, don't bind any port to igb_uio
+
+2. Start up vhost user side using testpmd::
+    ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3000 -n 4 --socket-mem 1024,1024  \
+	--file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i
+
+3. Start up virtio_user side using testpmd:
+    ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc000 -n 4 \
+	--socket-mem 1024,1024 --no-pci --file-prefix=virtio \
+	--vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net -- \
+	-i --disable-hw-vlan-filter
+
+4. At Vhost side, set it to mac fwd mode
+    testpmd>set fwd mac retry
+	testpmd>start tx_first 32 
+
+5. At Virtio side, set it to mac fwd mode
+    testpmd>set fwd mac retry
+	testpmd>start tx_first 32 
+	
+6. At the Virtio side, check the throughput
+    testpmd>show port stats all
+	
+Test Case 2: DPDK loopback performance on normal path
+=====================================================
+Flow: 
+Vhost --> Virtio--> Vhost
+
+1. First disbale the mergebale by modify the file /drivers/net/virtio/virtio_ethdev.h
+        1u << VIRTIO_NET_F_CTRL_VLAN     |     \
+    -   1u << VIRTIO_NET_F_MRG_RXBUF     |     \
+        1ULL << VIRTIO_F_VERSION_1
+
+2. Build the dpdk, don't bind any port to igb_uioStart up vhost user side using testpmd::
+    ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3000 -n 4 --socket-mem 1024,1024  \
+	--file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i
+
+3. Start up virtio_user side using testpmd, using txflaf=0xf00:
+    ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc000 -n 4 \
+	--socket-mem 1024,1024 --no-pci --file-prefix=virtio \
+	--vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net -- \
+	-i --txqflags=0xf00 --disable-hw-vlan-filter
+
+4. At Vhost side, set it to mac fwd mode
+    testpmd>set fwd mac retry
+	testpmd>start tx_first 32 
+
+5. At Virtio side, set it to mac fwd mode
+    testpmd>set fwd mac retry
+	testpmd>start tx_first 32 
+	
+6. At the Virtio side, check the throughput
+    testpmd>show port stats all
+	
+Test Case 3: DPDK loopback performance on vecotr path
+=====================================================
+Flow: 
+Vhost --> Virtio--> Vhost
+
+1. First disbale the mergebale by modify the file /drivers/net/virtio/virtio_ethdev.h
+        1u << VIRTIO_NET_F_CTRL_VLAN     |     \
+    -   1u << VIRTIO_NET_F_MRG_RXBUF     |     \
+        1ULL << VIRTIO_F_VERSION_1
+
+2. Build the dpdk, don't bind any port to igb_uioStart up vhost user side using testpmd::
+    ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3000 -n 4 --socket-mem 1024,1024  \
+	--file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i
+
+3. Start up virtio_user side using testpmd, using txflaf=0xf01:
+    ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc000 -n 4 \
+	--socket-mem 1024,1024 --no-pci --file-prefix=virtio \
+	--vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net -- \
+	-i --txqflags=0xf01 --disable-hw-vlan-filter
+
+4. At Vhost side, set it to mac fwd mode
+    testpmd>set fwd mac retry
+	testpmd>start tx_first 32 
+
+5. At Virtio side, set it to mac fwd mode
+    testpmd>set fwd mac retry
+	testpmd>start tx_first 32 
+	
+6. At the Virtio side, check the throughput
+    testpmd>show port stats all
+	
-- 
2.7.4

             reply	other threads:[~2016-12-21  1:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-21  1:24 lei,yao [this message]
2016-12-21  2:26 ` Liu, Yong
2016-12-21  3:13   ` Yao, Lei A

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=1482283485-8497-1-git-send-email-lei.a.yao@intel.com \
    --to=lei.a.yao@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).