From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 1D6D0FC00 for ; Wed, 21 Dec 2016 02:23:38 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 20 Dec 2016 17:23:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,381,1477983600"; d="scan'208";a="1074632062" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 20 Dec 2016 17:23:37 -0800 From: "lei,yao" To: dts@dpdk.org Cc: lei yao Date: Wed, 21 Dec 2016 09:24:45 +0800 Message-Id: <1482283485-8497-1-git-send-email-lei.a.yao@intel.com> X-Mailer: git-send-email 1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] test_plans: add test plan for vhost/virtio loopback performance test X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2016 01:23:39 -0000 From: lei yao Signed-off-by: lei yao --- ..._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