From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C3593A00C3; Thu, 21 Apr 2022 07:22:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6D2541101; Thu, 21 Apr 2022 07:22:52 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 67E134068E for ; Thu, 21 Apr 2022 07:22:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650518570; x=1682054570; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=pukM28RmbZstiCib1RNCkg4EvV/IcxNO/qODCo8n3R0=; b=Vb0V7yuxnHpiFqXsKor2TiwwjQvH2vDRSso5ufv7M29MKb9szCpfGPpH bNu5CwnQWXyZWfaDYWmwaujUSVrIl+B+wBFp0iWKYXV9wiBf1/SR4Lypk id0fCSF1pg6IfMqMOgkseWC7/pJLLmbPq1KCWn53yZ6LseC5l9icivgnp 6UoCOAcw+tiYCb7bJVJtga28flbwXxdcVVljc1CiFTEfdH+sqN2mnmlT0 RP1yWl6oGmRtWu9nABuZ7e8hWzP6Jo8jak8W5jX438gKzoeEx4Wb8iqt2 d8N9p88tbHY2M5cliciXoQU7o/QNJx1+Wd8JaUj6HR6OJcD7H9PvL/7v8 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10323"; a="244824933" X-IronPort-AV: E=Sophos;i="5.90,277,1643702400"; d="scan'208";a="244824933" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 22:22:49 -0700 X-IronPort-AV: E=Sophos;i="5.90,277,1643702400"; d="scan'208";a="702943222" Received: from unknown (HELO localhost.localdomain) ([10.239.251.222]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 22:22:47 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 3/4] test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan: add new testplan of DPDK-22.03 Date: Thu, 21 Apr 2022 13:22:41 +0800 Message-Id: <20220421052241.1553333-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 Add net testplan of DPDK-22.03 into test_plans. Signed-off-by: Wei Ling --- ...paths_performance_with_cbdma_test_plan.rst | 395 ++++++++++++++++++ 1 file changed, 395 insertions(+) create mode 100644 test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan.rst diff --git a/test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan.rst b/test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan.rst new file mode 100644 index 00000000..8931860c --- /dev/null +++ b/test_plans/vswitch_pvp_multi_paths_performance_with_cbdma_test_plan.rst @@ -0,0 +1,395 @@ +.. Copyright (c) <2022>, 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. + +======================================================== +Vswitch PVP multi-paths performance with CBDMA test plan +======================================================== + +Description +=========== + +Benchmark PVP multi-paths performance with CBDMA in vhost sample, +include 10 tx/rx paths: inorder mergeable, inorder non-mergeable, +mergeable, non-mergeable, vectorized_rx, virtio 1.1 inorder mergeable, +virtio 1.1 inorder non-mergeable, virtio 1.1 mergeable, virtio 1.1 non-mergeable, +virtio1.1 vectorized path. Give 1 core for vhost and virtio respectively. +About vswitch sample, a new option --total-num-mbufs is added from dpdk-22.03, +for the user to set larger mbuf pool to avoid launch fail. For example, dpdk-vhost +will fail to launch with a 40G i40e port without setting larger mbuf pool. +For more about vhost switch sample, please refer to the dpdk docs: +http://doc.dpdk.org/guides/sample_app_ug/vhost.html +For virtio-user vdev parameter, you can refer to the dpdk doc: +https://doc.dpdk.org/guides/nics/virtio.html#virtio-paths-selection-and-usage + +Prerequisites +============= + +Topology +-------- + +Test flow: TG-->nic-->vswitch-->virtio-user-->vswitch-->nic-->TG + +Hardware +-------- +Supportted NICs: all except columbiaville that not support VMDQ + +Software +-------- +Trex:http://trex-tgn.cisco.com/trex/release/v2.26.tar.gz + +General set up +-------------- +1. Compile DPDK and vhost example:: + + # meson + # meson configure -Dexamples=vhost + # ninja -C -j 110 + +2. Get the pci device id and DMA device id of DUT. + +For example, 0000:18:00.0 is pci device id, 0000:00:04.0 is DMA device id:: + + # ./usertools/dpdk-devbind.py -s + + Network devices using kernel driver + =================================== + 0000:18:00.0 'Device 159b' if=ens785f0 drv=ice unused=vfio-pci + + DMA devices using kernel driver + =============================== + 0000:00:04.0 'Sky Lake-E CBDMA Registers 2021' drv=ioatdma unused=vfio-pci + +Test case +========= + +Common steps +------------ +1. Bind one physical port and one CBDMA port to vfio-pci:: + + # ./usertools/dpdk-devbind.py -b vfio-pci + # ./usertools/dpdk-devbind.py -b vfio-pci + + For example:: + ./usertools/dpdk-devbind.py -b vfio-pci 0000:00:18.0 + ./usertools/dpdk-devbind.py -b vfio-pci 0000:00:04.0 + +2. Inject different size of packets to NIC by traffic generator:: + + The packet size include [64, 128, 256, 512, 1024, 1518], and the format of packet is as follows. + +-------------+-------------+-------------+-------------+ + | MAC | MAC | IPV4 | IPV4 | + | Src address | Dst address | Src address | Dst address | + |-------------|-------------|-------------|-------------| + | Any MAC | Virtio mac | Any IP | Any IP | + +-------------+-------------+-------------+-------------+ + All the packets in this test plan use the Virtio mac:00:11:22:33:44:10. + +Test Case 1: Vswitch PVP split ring inorder mergeable path performance with CBDMA +--------------------------------------------------------------------------------- +This case uses Vswitch and Traffic generator(For example, Trex) to test performance of split ring inorder mergeable path with CBDMA. + +1. Bind one physical port and one CBDMA port to vfio-pci as common step 1. + +2. Launch dpdk-vhost by below command:: + + #.//examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:00:04.0 \ + -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000 + +3. Launch virtio-user with split ring inorder mergeable path:: + + #.//app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 \ + --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=0,mrg_rxbuf=1,in_order=1 \ + -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 + +4. Send packets from virtio-user to let vswitch know the mac addr:: + + testpmd>set fwd mac + testpmd>start tx_first + testpmd>stop + testpmd>start + +5. Send packets by traffic generator as common step 2, and check the throughput with below command:: + + testpmd>show port stats all + +Test Case 2: Vswitch PVP split ring inorder non-mergeable path performance with CBDMA +------------------------------------------------------------------------------------- +This case uses Vswitch and Traffic generator(For example, Trex) to test performance of split ring inorder non-mergeable path with CBDMA. + +1. Bind one physical port and one CBDMA port to vfio-pci as common step 1. + +2. Launch dpdk-vhost by below command:: + + #.//examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:00:04.0 \ + -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000 + +3. Launch virtio-user with split ring non-mergeable path:: + + #.//app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 \ + --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=1 \ + -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 + +4. Send packets from virtio-user to let vswitch know the mac addr:: + + testpmd>set fwd mac + testpmd>start tx_first + testpmd>stop + testpmd>start + +5. Send packets by traffic generator as common step 2, and check the throughput with below command:: + + testpmd>show port stats all + +Test Case 3: Vswitch PVP split ring mergeable path performance with CBDMA +------------------------------------------------------------------------- +This case uses Vswitch and Traffic generator(For example, Trex) to test performance of split ring mergeable path with CBDMA. + +1. Bind one physical port and one CBDMA port to vfio-pci as common step 1. + +2. Launch dpdk-vhost by below command:: + + #.//examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:00:04.0 \ + -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000 + +3. Launch virtio-user with split ring mergeable path:: + + #.//app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 \ + --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=0,mrg_rxbuf=1,in_order=0 \ + -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 + +4. Send packets from virtio-user to let vswitch know the mac addr:: + + testpmd>set fwd mac + testpmd>start tx_first + testpmd>stop + testpmd>start + +5. Send packets by traffic generator as common step 2, and check the throughput with below command:: + + testpmd>show port stats all + +Test Case 4: Vswitch PVP split ring non-mergeable path performance with CBDMA +----------------------------------------------------------------------------- +This case uses Vswitch and Traffic generator(For example, Trex) to test performance of split ring non-mergeable path with CBDMA. + +1. Bind one physical port and one CBDMA port to vfio-pci as common step 1. + +2. Launch dpdk-vhost by below command:: + + #.//examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:00:04.0 \ + -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000 + +3. Launch virtio-user with split ring non-mergeable path:: + + #.//app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 \ + --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=0 \ + -- -i --enable-hw-vlan-strip --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 + +4. Send packets from virtio-user to let vswitch know the mac addr:: + + testpmd>set fwd mac + testpmd>start tx_first + testpmd>stop + testpmd>start + +5. Send packets by traffic generator as common step 2, and check the throughput with below command:: + + testpmd>show port stats all + +Test Case 5: Vswitch PVP split ring vectorized path performance with CBDMA +-------------------------------------------------------------------------- +This case uses Vswitch and Traffic generator(For example, Trex) to test performance of split ring vectorized path with CBDMA. + +1. Bind one physical port and one CBDMA port to vfio-pci as common step 1. + +2. Launch dpdk-vhost by below command:: + + #.//examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:00:04.0 \ + -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000 + +3. Launch virtio-user with split ring vectorized path:: + + #.//app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 \ + --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=1,vectorized=1 \ + -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 + +4. Send packets from virtio-user to let vswitch know the mac addr:: + + testpmd>set fwd mac + testpmd>start tx_first + testpmd>stop + testpmd>start + +5. Send packets by traffic generator as common step 2, and check the throughput with below command:: + + testpmd>show port stats all + + +Test Case 6: Vswitch PVP packed ring inorder mergeable path performance with CBDMA +---------------------------------------------------------------------------------- +This case uses Vswitch and Traffic generator(For example, Trex) to test performance of packed ring inorder mergeable path with CBDMA. + +1. Bind one physical port and one CBDMA port to vfio-pci as common step 1. + +2. Launch dpdk-vhost by below command:: + + #.//examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:00:04.0 \ + -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000 + +3. Launch virtio-user with packed ring inorder mergeable path:: + + #.//app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 \ + --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=1 \ + -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 + +4. Send packets from virtio-user to let vswitch know the mac addr:: + + testpmd>set fwd mac + testpmd>start tx_first + testpmd>stop + testpmd>start + +5. Send packets by traffic generator as common step 2, and check the throughput with below command:: + + testpmd>show port stats all + +Test Case 7: Vswitch PVP packed ring inorder non-mergeable path performance with CBDMA +-------------------------------------------------------------------------------------- +This case uses Vswitch and Traffic generator(For example, Trex) to test performance of packed ring inorder non-mergeable path with CBDMA. + +1. Bind one physical port and one CBDMA port to vfio-pci as common step 1. + +2. Launch dpdk-vhost by below command:: + + #.//examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:00:04.0 \ + -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000 + +3. Launch virtio-user with packed ring inorder non-mergeable path:: + + #.//app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 \ + --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1 \ + -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 + +4. Send packets from virtio-user to let vswitch know the mac addr:: + + testpmd>set fwd mac + testpmd>start tx_first + testpmd>stop + testpmd>start + +5. Send packets by traffic generator as common step 2, and check the throughput with below command:: + + testpmd>show port stats all + +Test Case 8: Vswitch PVP packed ring mergeable path performance with CBDMA +-------------------------------------------------------------------------- +This case uses Vswitch and Traffic generator(For example, Trex) to test performance of packed ring mergeable path with CBDMA. + +1. Bind one physical port and one CBDMA port to vfio-pci as common step 1. + +2. Launch dpdk-vhost by below command:: + + #.//examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:00:04.0 \ + -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000 + +3. Launch virtio-user with packed ring mergeable path:: + + #.//app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 \ + --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=0 \ + -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 + +4. Send packets from virtio-user to let vswitch know the mac addr:: + + testpmd>set fwd mac + testpmd>start tx_first + testpmd>stop + testpmd>start + +5. Send packets by traffic generator as common step 2, and check the throughput with below command:: + + testpmd>show port stats all + +Test Case 9: Vswitch PVP packed ring non-mergeable path performance with CBDMA +------------------------------------------------------------------------------ +This case uses Vswitch and Traffic generator(For example, Trex) to test performance of packed ring non-mergeable path with CBDMA. + +1. Bind one physical port and one CBDMA port to vfio-pci as common step 1. + +2. Launch dpdk-vhost by below command:: + + #.//examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:00:04.0 \ + -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000 + +3. Launch virtio-user with packed ring non-mergeable path:: + + #.//app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 \ + --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=0 \ + -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 + +4. Send packets from virtio-user to let vswitch know the mac addr:: + + testpmd>set fwd mac + testpmd>start tx_first + testpmd>stop + testpmd>start + +5. Send packets by traffic generator as common step 2, and check the throughput with below command:: + + testpmd>show port stats all + +Test Case 10: Vswitch PVP packed ring vectorized path performance with CBDMA +---------------------------------------------------------------------------- +This case uses Vswitch and Traffic generator(For example, Trex) to test performance of packed ring vectorized path with CBDMA. + +1. Bind one physical port and one CBDMA port to vfio-pci as common step 1. + +2. Launch dpdk-vhost by below command:: + + #.//examples/dpdk-vhost -l 2-3 -n 4 -a 0000:18:00.0 -a 0000:00:04.0 \ + -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --total-num-mbufs 600000 + +3. Launch virtio-user with packed ring vectorized path:: + + #.//app/dpdk-testpmd -l 5-6 -n 4 --no-pci --file-prefix=testpmd0 --force-max-simd-bitwidth=512 \ + --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1 \ + -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1 + +4. Send packets from virtio-user to let vswitch know the mac addr:: + + testpmd>set fwd mac + testpmd>start tx_first + testpmd>stop + testpmd>start + +5. Send packets by traffic generator as common step 2, and check the throughput with below command:: + + testpmd>show port stats all -- 2.25.1