From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E97E9A0564; Fri, 28 Feb 2020 14:15:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DEA2A1BFCE; Fri, 28 Feb 2020 14:15:20 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 2E0171BFC7 for ; Fri, 28 Feb 2020 14:15:18 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2020 05:15:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,496,1574150400"; d="scan'208";a="439231522" Received: from dpdk-yinan-purley.sh.intel.com ([10.67.117.227]) by fmsmga006.fm.intel.com with ESMTP; 28 Feb 2020 05:15:16 -0800 From: Yinan To: dts@dpdk.org Cc: Wang Yinan Date: Fri, 28 Feb 2020 06:09:38 +0000 Message-Id: <20200228060947.26001-3-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200228060947.26001-1-yinan.wang@intel.com> References: <20200228060947.26001-1-yinan.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH 02/11 v1] test_plans: add packed ring cases for loopback_multi_queues 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: Wang Yinan Signed-off-by: Wang Yinan --- .../loopback_multi_queues_test_plan.rst | 473 ++++++++++++++---- 1 file changed, 372 insertions(+), 101 deletions(-) diff --git a/test_plans/loopback_multi_queues_test_plan.rst b/test_plans/loopback_multi_queues_test_plan.rst index 2021c3e..75cfd8d 100644 --- a/test_plans/loopback_multi_queues_test_plan.rst +++ b/test_plans/loopback_multi_queues_test_plan.rst @@ -30,37 +30,33 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -===================================================== -vhost/virtio-user loopback with multi-queue test plan -===================================================== +====================================================== +vhost/virtio-user loopback with multi-queues test plan +====================================================== -Description -=========== +This test plan test vhost/virtio-user loopback multi-queues with split virtqueue and packed virtqueue different rx/tx paths, includes split virtqueue in-order mergeable, in-order non-mergeable, mergeable, non-mergeable, vector_rx path test, and packed virtqueue in-order mergeable, in-order non-mergeable, mergeable, non-mergeable path. And virtio-user support 8 queues in maximum, check performance could be linear growth when enable 8 queues and 8 cores, notice cores should in same socket. -Benchmark vhost/virtio-user loopback multi-queues test with 8 rx/tx paths, virtio-user support 8 queues in maximum. -Includes mergeable, normal, vector_rx, inorder mergeable, -inorder no-mergeable, virtio 1.1 mergeable, virtio 1.1 inorder, virtio 1.1 normal path. +Test Case 1: loopback with virtio 1.1 mergeable path using 1 queue and 8 queues +=============================================================================== -Test Case 1: loopback 2 queues test with virtio 1.1 mergeable path -================================================================== 1. Launch testpmd by below command:: rm -rf vhost-net* - ./testpmd -c 0xe -n 4 --socket-mem 1024,1024 --no-pci \ - --vdev 'eth_vhost0,iface=vhost-net,queues=2' -- \ - -i --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 + ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ + -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac 2. Launch virtio-user by below command:: - ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ + ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ - --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,packed_vq=1,mrg_rxbuf=1,in_order=0 \ - -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 - >set fwd mac - >start + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=0 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start -3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: +3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 1518]:: testpmd>set txpkts [frame_size] testpmd>start tx_first 32 @@ -69,29 +65,56 @@ Test Case 1: loopback 2 queues test with virtio 1.1 mergeable path testpmd>show port stats all -5. Check each queue's RX/TX packet numbers:: +5. Check each RX/TX queue has packets, then quit testpmd:: testpmd>stop + testpmd>quit + +6. Launch testpmd by below command:: + + rm -rf vhost-net* + ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ + -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +7. Launch virtio-user by below command:: + + ./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,packed_vq=1,mrg_rxbuf=1,in_order=0 \ + -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start -Test Case 2: loopback 2 queues test with virtio 1.1 normal path -=============================================================== +8. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: + + testpmd>show port stats all + +Test Case 2: loopback with virtio 1.1 non-mergeable path using 1 queue and 8 queues +=================================================================================== 1. Launch testpmd by below command:: rm -rf vhost-net* - ./testpmd -c 0xe -n 4 --socket-mem 1024,1024 --no-pci \ - --vdev 'eth_vhost0,iface=vhost-net,queues=2' -- \ - -i --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 + ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ + -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac 2. Launch virtio-user by below command:: - ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ + ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ - --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=0 \ - -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 - >set fwd mac - >start + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=0 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start 3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: @@ -102,29 +125,56 @@ Test Case 2: loopback 2 queues test with virtio 1.1 normal path testpmd>show port stats all -5. Check each queue's RX/TX packet numbers:: +5. Check each RX/TX queue has packets, then quit testpmd:: testpmd>stop + testpmd>quit + +6. Launch testpmd by below command:: -Test Case 3: loopback 2 queues test with virtio 1.1 inorder path -================================================================ + rm -rf vhost-net* + ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ + -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +7. Launch virtio-user by below command:: + + ./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,packed_vq=1,mrg_rxbuf=0,in_order=0 \ + -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start + +8. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: + + testpmd>show port stats all + +Test Case 3: loopback with virtio 1.0 inorder mergeable path using 1 queue and 8 queues +======================================================================================= 1. Launch testpmd by below command:: rm -rf vhost-net* - ./testpmd -c 0xe -n 4 --socket-mem 1024,1024 --no-pci \ - --vdev 'eth_vhost0,iface=vhost-net,queues=2' -- \ - -i --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 + ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ + -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac 2. Launch virtio-user by below command:: - ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ + ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ - --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=1 \ - -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 - >set fwd mac - >start + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,mrg_rxbuf=1,in_order=1 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start 3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: @@ -135,29 +185,56 @@ Test Case 3: loopback 2 queues test with virtio 1.1 inorder path testpmd>show port stats all -5. Check each queue's RX/TX packet numbers:: +5. Check each RX/TX queue has packets, then quit testpmd:: testpmd>stop + testpmd>quit + +6. Launch testpmd by below command:: + + rm -rf vhost-net* + ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ + -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +7. Launch virtio-user by below command:: + + ./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,mrg_rxbuf=1,in_order=1 \ + -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start -Test Case 4: loopback 2 queues test with inorder mergeable path -=============================================================== +8. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: + + testpmd>show port stats all + +Test Case 4: loopback with virtio 1.0 inorder non-mergeable path using 1 queue and 8 queues +=========================================================================================== 1. Launch testpmd by below command:: rm -rf vhost-net* - ./testpmd -c 0xe -n 4 --socket-mem 1024,1024 --no-pci \ - --vdev 'eth_vhost0,iface=vhost-net,queues=2' -- \ - -i --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 + ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ + -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac 2. Launch virtio-user by below command:: - ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ + ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ - --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,in_order=1,mrg_rxbuf=1 \ - -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 - >set fwd mac - >start + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,mrg_rxbuf=0,in_order=1 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start 3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: @@ -168,29 +245,56 @@ Test Case 4: loopback 2 queues test with inorder mergeable path testpmd>show port stats all -5. Check each queue's RX/TX packet numbers:: +5. Check each RX/TX queue has packets, then quit testpmd:: testpmd>stop + testpmd>quit + +6. Launch testpmd by below command:: + + rm -rf vhost-net* + ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ + -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +7. Launch virtio-user by below command:: + + ./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,mrg_rxbuf=0,in_order=1 \ + -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start + +8. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: -Test Case 5: loopback 2 queues test with inorder no-mergeable path -================================================================== + testpmd>show port stats all + +Test Case 5: loopback with virtio 1.0 mergeable path using 1 queue and 8 queues +=============================================================================== 1. Launch testpmd by below command:: rm -rf vhost-net* - ./testpmd -c 0xe -n 4 --socket-mem 1024,1024 --no-pci \ - --vdev 'eth_vhost0,iface=vhost-net,queues=2' -- \ - -i --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 + ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ + -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac 2. Launch virtio-user by below command:: - ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ + ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ - --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,in_order=1,mrg_rxbuf=0 \ - -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 - >set fwd mac - >start + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,mrg_rxbuf=1,in_order=0 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start 3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: @@ -201,29 +305,56 @@ Test Case 5: loopback 2 queues test with inorder no-mergeable path testpmd>show port stats all -5. Check each queue's RX/TX packet numbers:: +5. Check each RX/TX queue has packets, then quit testpmd:: testpmd>stop + testpmd>quit + +6. Launch testpmd by below command:: + + rm -rf vhost-net* + ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ + -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +7. Launch virtio-user by below command:: + + ./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,mrg_rxbuf=1,in_order=0 \ + -- -i --enable-hw-vlan-strip --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start + +8. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 -Test Case 6: loopback 8 queues test with mergeable path -======================================================= +9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: + + testpmd>show port stats all + +Test Case 6: loopback with virtio 1.0 non-mergeable path using 1 queue and 8 queues +=================================================================================== 1. Launch testpmd by below command:: rm -rf vhost-net* - ./testpmd -l 2-6 -n 4 --socket-mem 1024,1024 --no-pci \ - --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ - -i --nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ + -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac 2. Launch virtio-user by below command:: - ./testpmd -n 4 -l 7-11 --socket-mem 1024,1024 \ + ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ - --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,in_order=0,mrg_rxbuf=1 \ - -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=4--rxq=8 --txq=8 --txd=1024 --rxd=1024 - >set fwd mac - >start + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,mrg_rxbuf=0,in_order=0 \ + -- -i --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start 3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: @@ -234,30 +365,56 @@ Test Case 6: loopback 8 queues test with mergeable path testpmd>show port stats all -5. Check each queue's RX/TX packet numbers:: +5. Check each RX/TX queue has packets, then quit testpmd:: testpmd>stop + testpmd>quit + +6. Launch testpmd by below command:: + rm -rf vhost-net* + ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ + -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +7. Launch virtio-user by below command:: + + ./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,mrg_rxbuf=0,in_order=0 \ + -- -i --enable-hw-vlan-strip --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start + +8. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 -Test Case 7: loopback 8 queues test with normal path -==================================================== +9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: -1. Launch vhost by below command:: + testpmd>show port stats all + +Test Case 7: loopback with virtio 1.0 vector_rx path using 1 queue and 8 queues +=============================================================================== + +1. Launch testpmd by below command:: rm -rf vhost-net* - ./testpmd -n 4 -l 2-6 --socket-mem 1024,1024 --legacy-mem --no-pci \ - --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=8' -- \ - -i --nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024 - >set fwd mac + ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ + -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac 2. Launch virtio-user by below command:: - ./testpmd -n 4 -l 7-11 --socket-mem 1024,1024 \ + ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ - --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,in_order=0,mrg_rxbuf=0 \ - -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024 - >set fwd mac - >start + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,mrg_rxbuf=0,in_order=0 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start 3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: @@ -268,29 +425,116 @@ Test Case 7: loopback 8 queues test with normal path testpmd>show port stats all -5. Check each queue's RX/TX packet numbers:: +5. Check each RX/TX queue has packets, then quit testpmd:: testpmd>stop + testpmd>quit -Test Case 8: loopback 8 queues test with vector_rx path -======================================================= +6. Launch testpmd by below command:: -1. Launch vhost by below command:: + rm -rf vhost-net* + ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ + -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +7. Launch virtio-user by below command:: + + ./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,mrg_rxbuf=0,in_order=0 \ + -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start + +8. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: + + testpmd>show port stats all + +Test Case 8: loopback with virtio 1.1 inorder mergeable path using 1 queue and 8 queues +======================================================================================= + +1. Launch testpmd by below command:: rm -rf vhost-net* - ./testpmd -n 4 -l 2-6 --socket-mem 1024,1024 --legacy-mem --no-pci \ - --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=8' -- \ - -i --nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024 - >set fwd mac + ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ + -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac 2. Launch virtio-user by below command:: - ./testpmd -n 4 -l 7-11 --socket-mem 1024,1024 \ + ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ - --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,in_order=0,mrg_rxbuf=0 \ - -- -i --tx-offloads=0x0 --rss-ip --nb-cores=4 --rxq=8 --txq=8 --txd=1024 --rxd=1024 - >set fwd mac - >start + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=1 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start + +3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +4. Get throughput 10 times and calculate the average throughput:: + + testpmd>show port stats all + +5. Check each RX/TX queue has packets, then quit testpmd:: + + testpmd>stop + testpmd>quit + +6. Launch testpmd by below command:: + + rm -rf vhost-net* + ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ + -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +7. Launch virtio-user by below command:: + + ./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,packed_vq=1,mrg_rxbuf=1,in_order=0 \ + -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start + +8. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: + + testpmd>show port stats all + +Test Case 9: loopback with virtio 1.1 inorder non-mergeable path using 1 queue and 8 queues +=========================================================================================== + +1. Launch testpmd by below command:: + + rm -rf vhost-net* + ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ + -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +2. Launch virtio-user by below command:: + + ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start 3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: @@ -301,6 +545,33 @@ Test Case 8: loopback 8 queues test with vector_rx path testpmd>show port stats all -5. Check each queue's RX/TX packet numbers:: +5. Check each RX/TX queue has packets, then quit testpmd:: testpmd>stop + testpmd>quit + +6. Launch testpmd by below command:: + + rm -rf vhost-net* + ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ + -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +7. Launch virtio-user by below command:: + + ./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,packed_vq=1,mrg_rxbuf=0,in_order=0 \ + -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + testpmd>start + +8. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: + + testpmd>show port stats all \ No newline at end of file -- 2.17.1