From patchwork Thu Feb 16 08:35:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 124056 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7E68941CAE; Thu, 16 Feb 2023 09:49:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7608A40FDF; Thu, 16 Feb 2023 09:49:02 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 0B21A40E0F for ; Thu, 16 Feb 2023 09:49:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676537341; x=1708073341; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ZiRzbUfHlmk5HAa6nU1CxH9W2tCEPnWTiCMt20zMX00=; b=OCKl8xks+vYKKDmqpt7s0XtDeTQRoUEVZz1bJDMh/N9LCleXcy9PfmkY 2HnwfOYfelkwaEdad+CVaCNgN1UH7ZQgB9tRRZfSAfNX501/3QcFAfD5v PhAkgPCeGJEm2newJXX3ToP8MQ7KAkcO36dAhy4bWCQ1r896mr8Odha6H AaPcoaxXaZ5v54mR7KkN/dnbiudgSb2hb4s09zcbFE3Yr/oscMLqJZ9Ra Xt3vBlL7yxHIWbzZUZ/QjkLMk1WF9tW5TRJHNZlZhRRSp0ApC1kJxBFgT bdHjS1aS7gS4W0bP3WbIvmmBBSm6sqKE5pAqXT73FyatkAlYI4T0vSDEx g==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="394087119" X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="394087119" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 00:49:00 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="779266961" X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="779266961" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 00:48:56 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V3 1/4] test_plans/index: add pvp_vhost_async_virtio_pmd_perf_dsa Date: Thu, 16 Feb 2023 16:35:31 +0800 Message-Id: <20230216083531.1026892-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 pvp_vhost_async_virtio_pmd_perf_dsa_test_plan in testplans/index.rst. Signed-off-by: Wei Ling --- test_plans/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/test_plans/index.rst b/test_plans/index.rst index ea13fc8e..03eae731 100644 --- a/test_plans/index.rst +++ b/test_plans/index.rst @@ -132,6 +132,7 @@ The following are the test plans for the DPDK DTS automated test system. pvp_multi_paths_performance_test_plan pvp_multi_paths_vhost_single_core_performance_test_plan pvp_multi_paths_virtio_single_core_performance_test_plan + pvp_vhost_async_virtio_pmd_perf_dsa_test_plan qinq_filter_test_plan qos_api_test_plan qos_meter_test_plan From patchwork Thu Feb 16 08:35:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 124057 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B20BC41CAE; Thu, 16 Feb 2023 09:49:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3C4A40F18; Thu, 16 Feb 2023 09:49:09 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id B74C740E0F for ; Thu, 16 Feb 2023 09:49:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676537347; x=1708073347; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=38oZEi8dbmZArQOQ4TGkDtysuO9Mc+qe2j4fyoVrAns=; b=QnnxDvz7axTCs0YKQTFkXCGksI+JdAdO0uObxcrsetp9xf4Fwvy821AS j5c628Lt+biRSsH0zFp8KjELjEfHJH98viG19vo3mN75YY5bmMYprYySh lZVoUfNMiiVwXzupS/N0oVy8Co/H7pTFyB2Qa05JkbSzx9b6FuO24xk4o fKwgDpffavQW2CHgK8EKh4krtIl6FjAsm7ByK1ZzkMD7TtegOI8e26QZN N+1SuGeiO2km+lxuWqsHl6Wt0IcJKrkw4IFV6eC6JN6Pr8yCJ5RQGGVac dMCwAtbQA3uB7M947W2wXbdPCrNJysSCpNTdB4AP1AcGctkal5mqZkd7p Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="394087141" X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="394087141" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 00:49:06 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="779266987" X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="779266987" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 00:49:04 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V3 2/4] test_plans/pvp_vhost_async_virtio_pmd_perf_dsa: add new testplan Date: Thu, 16 Feb 2023 16:35:40 +0800 Message-Id: <20230216083540.1026952-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 pvp_vhost_async_virtio_pmd_perf_dsa testplan to test pvp vhost/virtio-pmd async data-path performance use DSA device with dpdk and kernel driver. Signed-off-by: Wei Ling --- ...st_async_virtio_pmd_perf_dsa_test_plan.rst | 1120 +++++++++++++++++ 1 file changed, 1120 insertions(+) create mode 100644 test_plans/pvp_vhost_async_virtio_pmd_perf_dsa_test_plan.rst diff --git a/test_plans/pvp_vhost_async_virtio_pmd_perf_dsa_test_plan.rst b/test_plans/pvp_vhost_async_virtio_pmd_perf_dsa_test_plan.rst new file mode 100644 index 00000000..eca2ad08 --- /dev/null +++ b/test_plans/pvp_vhost_async_virtio_pmd_perf_dsa_test_plan.rst @@ -0,0 +1,1120 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2023 Intel Corporation + +=================================================== +PVP vhost/virtio-pmd async data-path perf test plan +=================================================== + +Description +=========== + +Benchmark pvp qemu test with vhost async data-path. + +Test flow +========= + +TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG + +Test Case 1: pvp split ring vhost async test with 1core 1queue using idxd kernel driver +--------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 2wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 2 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -n 8 -l 9-10 --file-prefix=dpdk_vhost --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'net_vhost,iface=./vhost-net,queues=1,dmas=[txq0@wq0.0;rxq0@wq0.1]' \ + --iova=va -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=2048 --rxd=2048 --forward-mode=mac -a + +3. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=n tts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +4. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +5. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x3 -n 8 -- -i --nb-cores=1 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +6. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 2: pvp split ring vhost async test with 1core 2queue using idxd kernel driver +--------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 4wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 4 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-3 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=2,dmas=[txq0@wq0.0;rxq0@wq0. 1;txq1@wq0.2;rxq1@wq0.3]' + -- -i --nb-cores=1 --txq=2 --rxq=2 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=6,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x3 -n 8 -- -i --nb-cores=1 --txq=2 --rxq=2 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 3: pvp split ring vhost async test with 2core 2queue using idxd kernel driver +--------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 4wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 4 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-4 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=2,dmas=[txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3]' \ + -- -i --nb-cores=2 --txq=2 --rxq=2 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=6,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x7 -n 8 -- -i --nb-cores=2 --txq=2 --rxq=2 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 4: pvp split ring vhost async test with 2core 4queue using idxd kernel driver +--------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 8wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 8 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-4 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=4,dmas=[txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3;txq2@wq0.4;rxq2@wq0.5;txq3@wq0.6;rxq3@wq0.7]' + -- -i --nb-cores=2 --txq=4 --rxq=4 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=4 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=10,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x7 -n 8 -- -i --nb-cores=2 --txq=4 --rxq=4 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 5: pvp split ring vhost async test with 4core 4queue using idxd kernel driver +--------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 8wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 8 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-6 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=4,dmas=[txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3;txq2@wq0.4;rxq2@wq0.5;txq3@wq0.6;rxq3@wq0.7]' \ + -- -i --nb-cores=4 --txq=4 --rxq=4 --txd=2048 --rxd=2048 --max-pkt-len=5200 --tx-offloads=0x00008000 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=4 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=10,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x1f -n 8 -- -i --nb-cores=4 --txq=4 --rxq=4 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518,2048,4096], show throughput with below command:: + + testpmd>show port stats all + +Test Case 6: pvp split ring vhost async test with 4core 8queue using idxd kernel driver +--------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 8wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 8 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-6 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8,dmas=[txq0@wq0.0;rxq0@wq0.0;txq1@wq0.1;rxq1@wq0.1;txq2@wq0.2;rxq2@wq0.2;txq3@wq0.3;rxq3@wq0.3;txq4@wq0.4;rxq4@wq0.4;txq5@wq0.5;rxq5@wq0.5;txq6@wq0.6;rxq6@wq0.6;txq7@wq0.7;rxq7@wq0.7]' + -- -i --nb-cores=4 --txq=8 --rxq=8 --txd=2048 --rxd=2048 --max-pkt-len=5200 --tx-offloads=0x00008000 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=8 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=18,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x1f -n 8 -- -i --nb-cores=4 --txq=8 --rxq=8 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518,2048,4096], show throughput with below command:: + + testpmd>show port stats all + +Test Case 7: pvp packed ring vhost async test with 1core 1queue using idxd kernel driver +---------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 2wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 2 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -n 8 -l 9-10 --file-prefix=dpdk_vhost --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'net_vhost,iface=./vhost-net,queues=1,dmas=[txq0@wq0.0;rxq0@wq0.1]' \ + --iova=va -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=2048 --rxd=2048 --forward-mode=mac -a + +3. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +4. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +5. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x3 -n 8 -- -i --nb-cores=1 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +6. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 8: pvp packed ring vhost async test with 1core 2queue using idxd kernel driver +---------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 4wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 4 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-3 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=2,dmas=[txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3]' + -- -i --nb-cores=1 --txq=2 --rxq=2 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=6,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x3 -n 8 -- -i --nb-cores=1 --txq=2 --rxq=2 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 9: pvp packed ring vhost async test with 2core 2queue using idxd kernel driver +---------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 4wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 4 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-4 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=2,dmas=[txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3]' \ + -- -i --nb-cores=2 --txq=2 --rxq=2 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=6,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x7 -n 8 -- -i --nb-cores=2 --txq=2 --rxq=2 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 10: pvp packed ring vhost async test with 2core 4queue using idxd kernel driver +----------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 8wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 8 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-4 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=4,dmas=[txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3;txq2@wq0.4;rxq2@wq0.5;txq3@wq0.6;rxq3@wq0.7]' + -- -i --nb-cores=2 --txq=4 --rxq=4 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=4 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=10,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x7 -n 8 -- -i --nb-cores=2 --txq=4 --rxq=4 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 11: pvp packed ring vhost async test with 4core 4queue using idxd kernel driver +----------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 8wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 8 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-6 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=4,dmas=[txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3;txq2@wq0.4;rxq2@wq0.5;txq3@wq0.6;rxq3@wq0.7]' \ + -- -i --nb-cores=4 --txq=4 --rxq=4 --txd=2048 --rxd=2048 --max-pkt-len=5200 --tx-offloads=0x00008000 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=4 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=10,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x1f -n 8 -- -i --nb-cores=4 --txq=4 --rxq=4 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518,2048,4096], show throughput with below command:: + + testpmd>show port stats all + +Test Case 12: pvp packed ring vhost async test with 4core 8queue using idxd kernel driver +----------------------------------------------------------------------------------------- + +1. Bind one nic port to vfio-pci and 1 dsa device to idxd, then generate 8wq by below command:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 + ./usertools/dpdk-devbind.py -b idxd 0000:6a:01.0 + ./drivers/dma/idxd/dpdk_idxd_cfg.py -q 8 0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-6 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8,dmas=[txq0@wq0.0;rxq0@wq0.0;txq1@wq0.1;rxq1@wq0.1;txq2@wq0.2;rxq2@wq0.2;txq3@wq0.3;rxq3@wq0.3;txq4@wq0.4;rxq4@wq0.4;txq5@wq0.5;rxq5@wq0.5;txq6@wq0.6;rxq6@wq0.6;txq7@wq0.7;rxq7@wq0.7]' + -- -i --nb-cores=4 --txq=8 --rxq=8 --txd=2048 --rxd=2048 --max-pkt-len=5200 --tx-offloads=0x00008000 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=8 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=18,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x1f -n 8 -- -i --nb-cores=4 --txq=8 --rxq=8 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518,2048,4096], show throughput with below command:: + + testpmd>show port stats all + +Test Case 13: pvp split ring vhost async test with 1core 1queue using vfio-pci driver +------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -n 8 -l 9-10 --file-prefix=dpdk_vhost --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=2 --socket-mem 8192 \ + --vdev 'net_vhost,iface=./vhost-net,queues=1,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q1]' \ + --iova=va -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=2048 --rxd=2048 --forward-mode=mac -a + +3. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +4. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +5. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x3 -n 8 -- -i --nb-cores=1 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +6. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 14: pvp split ring vhost async test with 1core 2queue using vfio-pci driver +------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-3 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=4 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=2,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q1;txq1@0000:6a:01.0-q2;rxq1@0000:6a:01.0-q3]' + -- -i --nb-cores=1 --txq=2 --rxq=2 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=6,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x3 -n 8 -- -i --nb-cores=1 --txq=2 --rxq=2 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 15: pvp split ring vhost async test with 2core 2queue using vfio-pci driver +------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-4 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=4 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=2,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q1;txq1@0000:6a:01.0-q2;rxq1@0000:6a:01.0-q3]' + -- -i --nb-cores=2 --txq=2 --rxq=2 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=6,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x7 -n 8 -- -i --nb-cores=2 --txq=2 --rxq=2 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 16: pvp split ring vhost async test with 2core 4queue using vfio-pci driver +------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-4 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=8 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=4,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q1;txq1@0000:6a:01.0-q2;rxq1@0000:6a:01.0-q3;txq2@0000:6a:01.0-q4;rxq2@0000:6a:01.0-q5;txq3@0000:6a:01.0-q6;rxq3@0000:6a:01.0-q7]' + -- -i --nb-cores=2 --txq=4 --rxq=4 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=4 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=10,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x7 -n 8 -- -i --nb-cores=2 --txq=4 --rxq=4 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 17: pvp split ring vhost async test with 4core 4queue using vfio-pci driver +------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-6 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=8 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=4,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q1;txq1@0000:6a:01.0-q2;rxq1@0000:6a:01.0-q3;txq2@0000:6a:01.0-q4;rxq2@0000:6a:01.0-q5;txq3@0000:6a:01.0-q6;rxq3@0000:6a:01.0-q7]' + -- -i --nb-cores=4 --txq=4 --rxq=4 --txd=2048 --rxd=2048 --max-pkt-len=5200 --tx-offloads=0x00008000 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=4 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=10,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x1f -n 8 -- -i --nb-cores=4 --txq=4 --rxq=4 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518,2048,4096], show throughput with below command:: + + testpmd>show port stats all + +Test Case 18: pvp split ring vhost async test with 4core 8queue using vfio-pci driver +------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-6 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=8 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q0;txq1@0000:6a:01.0-q1;rxq1@0000:6a:01.0-q1;txq2@0000:6a:01.0-q2;rxq2@0000:6a:01.0-q2;txq3@0000:6a:01.0-q3;rxq3@0000:6a:01.0-q3;txq4@0000:6a:01.0-q4;rxq4@0000:6a:01.0-q4;txq5@0000:6a:01.0-q5;rxq5@0000:6a:01.0-q5;txq6@0000:6a:01.0-q6;rxq6@0000:6a:01.0-q6;txq7@0000:6a:01.0-q7;rxq7@0000:6a:01.0-q7]' + -- -i --nb-cores=4 --txq=8 --rxq=8 --txd=2048 --rxd=2048 --max-pkt-len=5200 --tx-offloads=0x00008000 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=8 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=18,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x1f -n 8 -- -i --nb-cores=4 --txq=8 --rxq=8 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518,2048,4096], show throughput with below command:: + + testpmd>show port stats all + +Test Case 19: pvp packed ring vhost async test with 1core 1queue using vfio-pci driver +-------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-3 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=2 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q1]' + -- -i --nb-cores=1 --txq=1 --rxq=1 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x3 -n 8 -- -i --nb-cores=1 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 20: pvp packed ring vhost async test with 1core 2queue using vfio-pci driver +-------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-3 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=4 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=2,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q1;txq1@0000:6a:01.0-q2;rxq1@0000:6a:01.0-q3]' + -- -i --nb-cores=1 --txq=2 --rxq=2 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=6,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x3 -n 8 -- -i --nb-cores=1 --txq=2 --rxq=2 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 21: pvp packed ring vhost async test with 2core 2queue using vfio-pci driver +-------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-4 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=4 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=2,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q1;txq1@0000:6a:01.0-q2;rxq1@0000:6a:01.0-q3]' + -- -i --nb-cores=2 --txq=2 --rxq=2 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=6,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x7 -n 8 -- -i --nb-cores=2 --txq=2 --rxq=2 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 22: pvp packed ring vhost async test with 2core 4queue using vfio-pci driver +-------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-4 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=8 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=4,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q1;txq1@0000:6a:01.0-q2;rxq1@0000:6a:01.0-q3;txq2@0000:6a:01.0-q4;rxq2@0000:6a:01.0-q5;txq3@0000:6a:01.0-q6;rxq3@0000:6a:01.0-q7]' + -- -i --nb-cores=2 --txq=4 --rxq=4 --txd=2048 --rxd=2048 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=4 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=10,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x7 -n 8 -- -i --nb-cores=2 --txq=4 --rxq=4 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518], show throughput with below command:: + + testpmd>show port stats all + +Test Case 23: pvp packed ring vhost async test with 4core 4queue using vfio-pci driver +-------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00.0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-6 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=8 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=4,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q1;txq1@0000:6a:01.0-q2;rxq1@0000:6a:01.0-q3;txq2@0000:6a:01.0-q4;rxq2@0000:6a:01.0-q5;txq3@0000:6a:01.0-q6;rxq3@0000:6a:01.0-q7]' + -- -i --nb-cores=4 --txq=4 --rxq=4 --txd=2048 --rxd=2048 --max-pkt-len=5200 --tx-offloads=0x00008000 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=4 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=10,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x1f -n 8 -- -i --nb-cores=4 --txq=4 --rxq=4 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518,2048,4096], show throughput with below command:: + + testpmd>show port stats all + +Test Case 24: pvp packed ring vhost async test with 4core 8queue using vfio-pci driver +-------------------------------------------------------------------------------------- + +1. Bind one nic port and 1 dsa device to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:29:00. 0 0000:6a:01.0 + +2. Launch vhost testpmd by below command:: + + ./build/app/dpdk-testpmd -l 2-6 -n 8 --huge-dir=/dev/hugepages -a 0000:29:00.0 -a 0000:6a:01.0,max_queues=8 --socket-mem 8192 \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8,dmas=[txq0@0000:6a:01.0-q0;rxq0@0000:6a:01.0-q0;txq1@0000:6a:01.0-q1;rxq1@0000:6a:01.0-q1;txq2@0000:6a:01.0-q2;rxq2@0000:6a:01.0-q2;txq3@0000:6a:01.0-q3;rxq3@0000:6a:01.0-q3;txq4@0000:6a:01.0-q4;rxq4@0000:6a:01.0-q4;txq5@0000:6a:01.0-q5;rxq5@0000:6a:01.0-q5;txq6@0000:6a:01.0-q6;rxq6@0000:6a:01.0-q6;txq7@0000:6a:01.0-q7;rxq7@0000:6a:01.0-q7]' + -- -i --nb-cores=4 --txq=8 --rxq=8 --txd=2048 --rxd=2048 --max-pkt-len=5200 --tx-offloads=0x00008000 --forward-mode=mac -a + +2. Launch VM with mrg_rxbuf feature on:: + + taskset -c 11-18 /usr/local/qemu-7.1.0/bin/qemu-system-x86_64 -name us-vhost-vm1 -cpu host -enable-kvm \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on \ + -numa node,memdev=mem -mem-prealloc -smp cores=8,sockets=1 -drive file=/home/xingguang/osimg/ubuntu22-04.img \ + -chardev socket,id=char0,path=./vhost-net -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=ntts1 \ + -netdev user,id=ntts1,hostfwd=tcp:127.0.0.1:6002-:22 \ + -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=8 \ + -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=18,rx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso=off,host_tso4=off,guest_tso4=off,guest_ecn=off,packed=on -vnc :10 --monitor stdio + +3. Set affinity:: + + (qemu)info cpus + taskset -cp 11 xxx + ... + taskset -cp 18 xxx + +4. On VM, bind virtio net to vfio-pci and run testpmd:: + + mount -t hugetlbfs nodev /mnt/huge + modprobe vfio-pci + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + ./usertools/dpdk-devbind.py -b vfio-pci 00:04.0 + + ./build/app/dpdk-testpmd -c 0x1f -n 8 -- -i --nb-cores=4 --txq=8 --rxq=8 --txd=2048 --rxd=2048 + testpmd>set fwd csum + testpmd>start + +5. Send tcp/ip packets by packet generator with different packet sizes [64,128,256,512,1024,1280,1518,2048,4096], show throughput with below command:: + + testpmd>show port stats all From patchwork Thu Feb 16 08:35:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 124059 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 172B641CAE; Thu, 16 Feb 2023 09:49:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0DE3540EE3; Thu, 16 Feb 2023 09:49:36 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id E7D5D40E0F for ; Thu, 16 Feb 2023 09:49:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676537374; x=1708073374; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tJaB7HJe2I8/l14sVVSUXaaWy/2zXt7VXykcTZO4wYE=; b=GMlGuUq7U9pTpMNwHolI+H4AbALtf47hLU6xAeT/dONLUemDFJTHGgOB fPISDr79wIgXZ6iP/b750cqziA7Y2SVJQH7yqn04IExdwmWAECEek+sUF TlJDK6GJkbqhNAnvfjp/SRlRua9bBpS7LYP7HmCVYmFLMbvt5w1/5VXKo JsdeDCkfFRpgQ1xB2JijA+xDFS/B9uVs9ROGk7XdJ0KzBXGeu2wxmM6DO M3dHK58oSnbN7CZRCXVhkQqTrlLqPs5f/P4ZYV4oguRB0tL9lDhFiJG2h UKePV3W3pv/My1mqxHrOTL1rZH+xEGipfFkeksIFirBhFYsLFnFV6y2/L w==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="394087205" X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="394087205" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 00:49:18 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="779267014" X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="779267014" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 00:49:16 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V3 3/4] tests/pvp_vhost_async_virtio_pmd_perf_dsa: add new testsuite Date: Thu, 16 Feb 2023 16:35:52 +0800 Message-Id: <20230216083552.1027012-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 pvp_vhost_async_virtio_pmd_perf_dsa testsuite to test pvp vhost/virtio-pmd async data-path performance use DSA device with dpdk and kernel driver. Signed-off-by: Wei Ling --- ...ite_pvp_vhost_async_virtio_pmd_perf_dsa.py | 995 ++++++++++++++++++ 1 file changed, 995 insertions(+) create mode 100644 tests/TestSuite_pvp_vhost_async_virtio_pmd_perf_dsa.py diff --git a/tests/TestSuite_pvp_vhost_async_virtio_pmd_perf_dsa.py b/tests/TestSuite_pvp_vhost_async_virtio_pmd_perf_dsa.py new file mode 100644 index 00000000..9a0b04ce --- /dev/null +++ b/tests/TestSuite_pvp_vhost_async_virtio_pmd_perf_dsa.py @@ -0,0 +1,995 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2023 Intel Corporation +# + +import json +import os +from copy import deepcopy + +import framework.rst as rst +from framework.packet import Packet +from framework.pktgen import PacketGeneratorHelper +from framework.pmd_output import PmdOutput +from framework.settings import HEADER_SIZE, UPDATE_EXPECTED, load_global_setting +from framework.test_case import TestCase +from framework.virt_common import VM + +from .virtio_common import dsa_common as DC + + +class TestPVPVhostAsyncVirtioPmdPerfDsa(TestCase): + def set_up_all(self): + """ + Run at the start of each test suite. + """ + self.vhost_user = self.dut.new_session(suite="vhost-user") + self.vhost_user_pmd = PmdOutput(self.dut, self.vhost_user) + self.dut_ports = self.dut.get_ports() + self.ports_socket = self.dut.get_numa_id(self.dut_ports[0]) + self.core_list = self.dut.get_core_list(config="all", socket=self.ports_socket) + self.headers_size = HEADER_SIZE["eth"] + HEADER_SIZE["ip"] + HEADER_SIZE["tcp"] + self.virtio_mac = "00:11:22:33:44:55" + self.number_of_ports = 1 + self.testpmd_path = self.dut.apps_name["test-pmd"] + self.testpmd_name = self.testpmd_path.split("/")[-1] + self.out_path = "/tmp" + out = self.tester.send_expect("ls -d %s" % self.out_path, "# ") + if "No such file or directory" in out: + self.tester.send_expect("mkdir -p %s" % self.out_path, "# ") + self.base_dir = self.dut.base_dir.replace("~", "/root") + self.logger.info(self.base_dir) + # create an instance to set stream field setting + self.pktgen_helper = PacketGeneratorHelper() + self.save_result_flag = True + self.json_obj = {} + self.DC = DC(self) + + def set_up(self): + """ + Run before each test case. + """ + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") + self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") + self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#") + self.DC.reset_all_work_queue() + self.DC.bind_all_dsa_to_kernel() + # Prepare the result table + self.table_header = ["Frame"] + self.table_header.append("Mode/RXD-TXD") + self.table_header.append("Mpps") + self.table_header.append("% linerate") + self.result_table_create(self.table_header) + + # test parameters include: frames size, descriptor numbers + self.test_parameters = self.get_suite_cfg()["test_parameters"] + + # traffic duraion in second + self.test_duration = self.get_suite_cfg()["test_duration"] + + # initilize throughput attribution + # {'$framesize':{"$nb_desc": 'throughput'} + self.throughput = {} + + # Accepted tolerance in Mpps + self.gap = self.get_suite_cfg()["accepted_tolerance"] + self.test_result = {} + self.nb_desc = self.test_parameters[64][0] + + def start_vhost_user_testpmd(self, cores, eal_param, param, ports): + """ + start testpmd on vhost-user + """ + self.vhost_user_pmd.start_testpmd( + cores=cores, + eal_param=eal_param, + param=param, + ports=ports, + prefix="vhost-user", + fixed_prefix=True, + ) + + def start_one_vm(self, packed=False): + """ + start qemus + """ + self.vm = VM(self.dut, "vm0", "vhost_sample") + self.vm.load_config() + vm_params = {} + vm_params["driver"] = "vhost-user" + vm_params["opt_path"] = "%s/vhost-net" % self.base_dir + vm_params["opt_mac"] = "%s" % self.virtio_mac + vm_params["opt_queue"] = self.queues + packed_param = ",packed=on" if packed else "" + mq_param = ( + "mq=on,vectors=%s," % (2 + self.queues * 2) if self.queues > 1 else "" + ) + vm_params["opt_settings"] = ( + "disable-modern=false,mrg_rxbuf=on,%srx_queue_size=1024,tx_queue_size=1024,csum=off,guest_csum=off,gso= off,host_tso4=off,guest_tso4=off,guest_ecn=off%s" + % (mq_param, packed_param) + ) + self.vm.set_vm_device(**vm_params) + try: + self.vm_dut = self.vm.start(load_config=False) + if self.vm_dut is None: + raise Exception("Set up VM ENV failed") + except Exception as e: + self.logger.error("ERROR: Failure for %s" % str(e)) + + def start_vm_testpmd(self): + """ + start testpmd in VM + """ + self.vm0_pmd = PmdOutput(self.vm_dut) + param = "--nb-cores=%d --txq=%d --rxq=%d --txd=2048 --rxd=2048" % ( + self.nb_cores, + self.queues, + self.queues, + ) + cores = self.vm_dut.get_core_list(config="all")[0 : (self.nb_cores + 1)] + self.vm0_pmd.start_testpmd(cores=cores, param=param) + self.vm0_pmd.execute_cmd("set fwd csum") + self.vm0_pmd.execute_cmd("start") + + def send_and_verify(self, case_info): + """ + Send packet with packet generator and verify + """ + if "4c_4q" or "4c_8q" not in self.running_case: + frame_sizes = [64, 128, 256, 512, 1024, 1280, 1518] + else: + frame_sizes = [64, 128, 256, 512, 1024, 1280, 1518, 2048, 4096] + for frame_size in frame_sizes: + payload_size = frame_size - self.headers_size + tgen_input = [] + self.throughput[frame_size] = dict() + self.logger.info( + "Test running at parameters: " + + "framesize: {}, rxd/txd: {}".format(frame_size, self.nb_desc) + ) + rx_port = self.tester.get_local_port(self.dut_ports[0]) + tx_port = self.tester.get_local_port(self.dut_ports[0]) + fields_config = { + "ip": { + "src": {"action": "random"}, + "dst": {"action": "random"}, + }, + } + pkt = Packet() + pkt.assign_layers(["ether", "ipv4", "tcp", "raw"]) + pkt.config_layers( + [ + ("ether", {"dst": "%s" % self.virtio_mac}), + ("ipv4", {"src": "1.1.1.1", "dst": "2.2.2.2"}), + ("raw", {"payload": ["01"] * int("%d" % payload_size)}), + ] + ) + pkt.save_pcapfile( + self.tester, + "%s/pvp_virtio_pmd_perf_dsa_%s.pcap" % (self.out_path, frame_size), + ) + tgen_input.append( + ( + tx_port, + rx_port, + "%s/pvp_virtio_pmd_perf_dsa_%s.pcap" % (self.out_path, frame_size), + ) + ) + self.tester.pktgen.clear_streams() + streams = self.pktgen_helper.prepare_stream_from_tginput( + tgen_input, 100, fields_config, self.tester.pktgen + ) + _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams) + Mpps = pps / 1000000.0 + self.throughput[frame_size][self.nb_desc] = Mpps + linerate = ( + Mpps + * 100 + / float(self.wirespeed(self.nic, frame_size, self.number_of_ports)) + ) + results_row = [frame_size] + results_row.append(case_info) + results_row.append(Mpps) + results_row.append(linerate) + self.result_table_add(results_row) + + def handle_expected(self): + """ + Update expected numbers to configurate file: $DTS_CFG_FOLDER/$suite_name.cfg + """ + if load_global_setting(UPDATE_EXPECTED) == "yes": + for frame_size in self.test_parameters.keys(): + for nb_desc in self.test_parameters[frame_size]: + self.expected_throughput[frame_size][nb_desc] = round( + self.throughput[frame_size][nb_desc], 3 + ) + + def handle_results(self): + """ + results handled process: + 1, save to self.test_results + 2, create test results table + 3, save to json file for Open Lab + """ + header = self.table_header + header.append("Expected Throughput") + header.append("Throughput Difference") + for frame_size in self.test_parameters.keys(): + wirespeed = self.wirespeed(self.nic, frame_size, self.number_of_ports) + ret_datas = {} + for nb_desc in self.test_parameters[frame_size]: + ret_data = {} + ret_data[header[0]] = frame_size + ret_data[header[1]] = nb_desc + ret_data[header[2]] = "{:.3f} Mpps".format( + self.throughput[frame_size][nb_desc] + ) + ret_data[header[3]] = "{:.3f}%".format( + self.throughput[frame_size][nb_desc] * 100 / wirespeed + ) + ret_data[header[4]] = "{:.3f} Mpps".format( + self.expected_throughput[frame_size][nb_desc] + ) + ret_data[header[5]] = "{:.3f} Mpps".format( + self.throughput[frame_size][nb_desc] + - self.expected_throughput[frame_size][nb_desc] + ) + ret_datas[nb_desc] = deepcopy(ret_data) + self.test_result[frame_size] = deepcopy(ret_datas) + # Create test results table + self.result_table_create(header) + for frame_size in self.test_parameters.keys(): + for nb_desc in self.test_parameters[frame_size]: + table_row = list() + for i in range(len(header)): + table_row.append(self.test_result[frame_size][nb_desc][header[i]]) + self.result_table_add(table_row) + # present test results to screen + self.result_table_print() + # save test results as a file + if self.save_result_flag: + self.save_result(self.test_result) + + def save_result(self, data): + """ + Saves the test results as a separated file named with + self.nic+_perf_virtio_user_pvp.json in output folder + if self.save_result_flag is True + """ + case_name = self.running_case + self.json_obj[case_name] = list() + status_result = [] + for frame_size in self.test_parameters.keys(): + for nb_desc in self.test_parameters[frame_size]: + row_in = self.test_result[frame_size][nb_desc] + row_dict0 = dict() + row_dict0["performance"] = list() + row_dict0["parameters"] = list() + row_dict0["parameters"] = list() + result_throughput = float(row_in["Mpps"].split()[0]) + expected_throughput = float(row_in["Expected Throughput"].split()[0]) + # delta value and accepted tolerance in percentage + delta = result_throughput - expected_throughput + gap = expected_throughput * -self.gap * 0.01 + delta = float(delta) + gap = float(gap) + self.logger.info("Accept tolerance are (Mpps) %f" % gap) + self.logger.info("Throughput Difference are (Mpps) %f" % delta) + if result_throughput > expected_throughput + gap: + row_dict0["status"] = "PASS" + else: + row_dict0["status"] = "FAIL" + row_dict1 = dict( + name="Throughput", value=result_throughput, unit="Mpps", delta=delta + ) + row_dict2 = dict( + name="Txd/Rxd", value=row_in["Mode/RXD-TXD"], unit="descriptor" + ) + row_dict3 = dict(name="frame_size", value=row_in["Frame"], unit="bytes") + row_dict0["performance"].append(row_dict1) + row_dict0["parameters"].append(row_dict2) + row_dict0["parameters"].append(row_dict3) + self.json_obj[case_name].append(row_dict0) + status_result.append(row_dict0["status"]) + with open( + os.path.join( + rst.path2Result, "{0:s}_{1}.json".format(self.nic, self.suite_name) + ), + "w", + ) as fp: + json.dump(self.json_obj, fp) + self.verify("FAIL" not in status_result, "Exceeded Gap") + + def perf_test(self, case_info, ports, packed=False, port_options=""): + self.test_target = self.running_case + self.expected_throughput = self.get_suite_cfg()["expected_throughput"][ + self.test_target + ] + vhost_eal_param = ( + "--socket-mem 8192 --vdev 'net_vhost0,iface=vhost-net,queues=%d,dmas=[%s]'" + % (self.queues, self.dmas) + ) + if "4c_4q" or "4c_8q" not in self.running_case: + max_len_param = "" + else: + max_len_param = "--max-pkt-len=5200 --tx-offloads=0x00008000" + vhost_param = ( + "--nb-cores=%d --txq=%d --rxq=%d --txd=2048 --rxd=2048 %s --forward-mode=mac -a" + % (self.nb_cores, self.queues, self.queues, max_len_param) + ) + cores = self.core_list[0 : (self.nb_cores + 1)] + if not port_options: + self.vhost_user_pmd.start_testpmd( + cores=cores, + eal_param=vhost_eal_param, + param=vhost_param, + ports=ports, + prefix="vhost-user", + fixed_prefix=True, + ) + else: + self.vhost_user_pmd.start_testpmd( + cores=cores, + eal_param=vhost_eal_param, + param=vhost_param, + ports=ports, + port_options=port_options, + prefix="vhost-user", + fixed_prefix=True, + ) + + self.start_one_vm(packed=packed) + self.start_vm_testpmd() + self.send_and_verify(case_info=case_info) + self.result_table_print() + self.handle_expected() + self.handle_results() + + def test_perf_virtio_pmd_split_ring_1c_1q_idxd(self): + """ + Test Case 1: pvp split ring vhost async test with 1core 1queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=2, dsa_index=0) + self.queues = 1 + self.dmas = "txq0@wq0.0;rxq0@wq0.1" + self.nb_cores = 1 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=False, port_options="" + ) + + def test_perf_virtio_pmd_split_ring_1c_2q_idxd(self): + """ + Test Case 2: pvp split ring vhost async test with 1core 2queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=4, dsa_index=0) + self.queues = 2 + self.dmas = "txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3" + self.nb_cores = 1 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=False, port_options="" + ) + + def test_perf_virtio_pmd_split_ring_2c_2q_idxd(self): + """ + Test Case 3: pvp split ring vhost async test with 2core 2queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=4, dsa_index=0) + self.queues = 2 + self.dmas = "txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3" + self.nb_cores = 2 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=False, port_options="" + ) + + def test_perf_virtio_pmd_split_ring_2c_4q_idxd(self): + """ + Test Case 4: pvp split ring vhost async test with 2core 4queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=8, dsa_index=0) + self.queues = 4 + self.dmas = ( + "txq0@wq0.0;" + "rxq0@wq0.1;" + "txq1@wq0.2;" + "rxq1@wq0.3;" + "txq2@wq0.4;" + "rxq2@wq0.5;" + "txq3@wq0.6;" + "rxq3@wq0.7" + ) + self.nb_cores = 2 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=False, port_options="" + ) + + def test_perf_virtio_pmd_split_ring_4c_4q_idxd(self): + """ + Test Case 5: pvp split ring vhost async test with 4core 4queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=8, dsa_index=0) + self.queues = 4 + self.dmas = ( + "txq0@wq0.0;" + "rxq0@wq0.1;" + "txq1@wq0.2;" + "rxq1@wq0.3;" + "txq2@wq0.4;" + "rxq2@wq0.5;" + "txq3@wq0.6;" + "rxq3@wq0.7" + ) + self.nb_cores = 4 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=False, port_options="" + ) + + def test_perf_virtio_pmd_split_ring_4c_8q_idxd(self): + """ + Test Case 6: pvp split ring vhost async test with 4core 8queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=8, dsa_index=0) + self.queues = 8 + self.dmas = ( + "txq0@wq0.0;" + "rxq0@wq0.0;" + "txq1@wq0.1;" + "rxq1@wq0.1;" + "txq2@wq0.2;" + "rxq2@wq0.2;" + "txq3@wq0.3;" + "rxq3@wq0.3;" + "txq4@wq0.4;" + "rxq4@wq0.4;" + "txq5@wq0.5;" + "rxq5@wq0.5;" + "txq6@wq0.6;" + "rxq6@wq0.6;" + "txq7@wq0.7;" + "rxq7@wq0.7" + ) + self.nb_cores = 4 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=False, port_options="" + ) + + def test_perf_virtio_pmd_packed_ring_1c_1q_idxd(self): + """ + Test Case 7: pvp packed ring vhost async test with 1core 1queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=2, dsa_index=0) + self.queues = 1 + self.dmas = "txq0@wq0.0;rxq0@wq0.1" + self.nb_cores = 1 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=True, port_options="" + ) + + def test_perf_virtio_pmd_packed_ring_1c_2q_idxd(self): + """ + Test Case 8: pvp packed ring vhost async test with 1core 2queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=4, dsa_index=0) + self.queues = 2 + self.dmas = "txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3" + self.nb_cores = 1 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=True, port_options="" + ) + + def test_perf_virtio_pmd_packed_ring_2c_2q_idxd(self): + """ + Test Case 9: pvp packed ring vhost async test with 2core 2queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=4, dsa_index=0) + self.queues = 2 + self.dmas = "txq0@wq0.0;rxq0@wq0.1;txq1@wq0.2;rxq1@wq0.3" + self.nb_cores = 2 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=True, port_options="" + ) + + def test_perf_virtio_pmd_packed_ring_2c_4q_idxd(self): + """ + Test Case 10: pvp packed ring vhost async test with 2core 4queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=8, dsa_index=0) + self.queues = 4 + self.dmas = ( + "txq0@wq0.0;" + "rxq0@wq0.1;" + "txq1@wq0.2;" + "rxq1@wq0.3;" + "txq2@wq0.4;" + "rxq2@wq0.5;" + "txq3@wq0.6;" + "rxq3@wq0.7" + ) + self.nb_cores = 2 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=True, port_options="" + ) + + def test_perf_virtio_pmd_packed_ring_4c_4q_idxd(self): + """ + Test Case 11: pvp packed ring vhost async test with 4core 4queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=8, dsa_index=0) + self.queues = 4 + self.dmas = ( + "txq0@wq0.0;" + "rxq0@wq0.1;" + "txq1@wq0.2;" + "rxq1@wq0.3;" + "txq2@wq0.4;" + "rxq2@wq0.5;" + "txq3@wq0.6;" + "rxq3@wq0.7" + ) + self.nb_cores = 4 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=True, port_options="" + ) + + def test_perf_virtio_pmd_packed_ring_4c_8q_idxd(self): + """ + Test Case 12: pvp packed ring vhost async test with 4core 8queue using idxd kernel driver + """ + self.DC.create_work_queue(work_queue_number=8, dsa_index=0) + self.queues = 8 + self.dmas = ( + "txq0@wq0.0;" + "rxq0@wq0.0;" + "txq1@wq0.1;" + "rxq1@wq0.1;" + "txq2@wq0.2;" + "rxq2@wq0.2;" + "txq3@wq0.3;" + "rxq3@wq0.3;" + "txq4@wq0.4;" + "rxq4@wq0.4;" + "txq5@wq0.5;" + "rxq5@wq0.5;" + "txq6@wq0.6;" + "rxq6@wq0.6;" + "txq7@wq0.7;" + "rxq7@wq0.7" + ) + self.nb_cores = 4 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + self.perf_test( + case_info=self.running_case, ports=ports, packed=True, port_options="" + ) + + def test_perf_virtio_pmd_split_ring_1c_1q_vfio_pci(self): + """ + Test Case 13: pvp split ring vhost async test with 1core 1queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 1 + self.dmas = "txq0@%s-q0;rxq0@%s-q1" % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + self.nb_cores = 1 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=2"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=False, + port_options=port_options, + ) + + def test_perf_virtio_pmd_split_ring_1c_2q_vfio_pci(self): + """ + Test Case 14: pvp split ring vhost async test with 1core 2queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 2 + self.dmas = ( + "txq0@%s-q0;" + "rxq0@%s-q1;" + "txq1@%s-q2;" + "rxq1@%s-q3" + % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + ) + self.nb_cores = 1 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=4"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=False, + port_options=port_options, + ) + + def test_perf_virtio_pmd_split_ring_2c_2q_vfio_pci(self): + """ + Test Case 15: pvp split ring vhost async test with 2core 2queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 2 + self.dmas = ( + "txq0@%s-q0;" + "rxq0@%s-q1;" + "txq1@%s-q2;" + "rxq1@%s-q3" + % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + ) + self.nb_cores = 2 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=4"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=False, + port_options=port_options, + ) + + def test_perf_virtio_pmd_split_ring_2c_4q_vfio_pci(self): + """ + Test Case 16: pvp split ring vhost async test with 2core 4queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 4 + self.dmas = ( + "txq0@%s-q0;" + "rxq0@%s-q1;" + "txq1@%s-q2;" + "rxq1@%s-q3;" + "txq2@%s-q4;" + "rxq2@%s-q5;" + "txq3@%s-q6;" + "rxq3@%s-q7" + % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + ) + self.nb_cores = 2 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=8"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=False, + port_options=port_options, + ) + + def test_perf_virtio_pmd_split_ring_4c_4q_vfio_pci(self): + """ + Test Case 17: pvp split ring vhost async test with 4core 4queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 4 + self.dmas = ( + "txq0@%s-q0;" + "rxq0@%s-q1;" + "txq1@%s-q2;" + "rxq1@%s-q3;" + "txq2@%s-q4;" + "rxq2@%s-q5;" + "txq3@%s-q6;" + "rxq3@%s-q7" + % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + ) + self.nb_cores = 4 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=8"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=False, + port_options=port_options, + ) + + def test_perf_virtio_pmd_split_ring_4c_8q_vfio_pci(self): + """ + Test Case 18: pvp split ring vhost async test with 4core 8queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 8 + self.dmas = ( + "txq0@%s-q0;" + "rxq0@%s-q1;" + "txq1@%s-q2;" + "rxq1@%s-q3;" + "txq2@%s-q4;" + "rxq2@%s-q5;" + "txq3@%s-q6;" + "rxq3@%s-q7" + % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + ) + self.nb_cores = 4 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=8"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=False, + port_options=port_options, + ) + + def test_perf_virtio_pmd_packed_ring_1c_1q_vfio_pci(self): + """ + Test Case 19: pvp packed ring vhost async test with 1core 1queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 1 + self.dmas = "txq0@%s-q0;rxq0@%s-q1" % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + self.nb_cores = 1 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=2"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=True, + port_options=port_options, + ) + + def test_perf_virtio_pmd_packed_ring_1c_2q_vfio_pci(self): + """ + Test Case 20: pvp packed ring vhost async test with 1core 2queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 2 + self.dmas = ( + "txq0@%s-q0;" + "rxq0@%s-q1;" + "txq1@%s-q2;" + "rxq1@%s-q3" + % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + ) + self.nb_cores = 1 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=4"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=True, + port_options=port_options, + ) + + def test_perf_virtio_pmd_packed_ring_2c_2q_vfio_pci(self): + """ + Test Case 21: pvp packed ring vhost async test with 2core 2queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 2 + self.dmas = ( + "txq0@%s-q0;" + "rxq0@%s-q1;" + "txq1@%s-q2;" + "rxq1@%s-q3" + % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + ) + self.nb_cores = 2 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=4"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=True, + port_options=port_options, + ) + + def test_perf_virtio_pmd_packed_ring_2c_4q_vfio_pci(self): + """ + Test Case 22: pvp packed ring vhost async test with 2core 4queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 4 + self.dmas = ( + "txq0@%s-q0;" + "rxq0@%s-q1;" + "txq1@%s-q2;" + "rxq1@%s-q3;" + "txq2@%s-q4;" + "rxq2@%s-q5;" + "txq3@%s-q6;" + "rxq3@%s-q7" + % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + ) + self.nb_cores = 2 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=8"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=True, + port_options=port_options, + ) + + def test_perf_virtio_pmd_packed_ring_4c_4q_vfio_pci(self): + """ + Test Case 23: pvp packed ring vhost async test with 4core 4queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 4 + self.dmas = ( + "txq0@%s-q0;" + "rxq0@%s-q1;" + "txq1@%s-q2;" + "rxq1@%s-q3;" + "txq2@%s-q4;" + "rxq2@%s-q5;" + "txq3@%s-q6;" + "rxq3@%s-q7" + % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + ) + self.nb_cores = 4 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=8"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=True, + port_options=port_options, + ) + + def test_perf_virtio_pmd_packed_ring_4c_8q_vfio_pci(self): + """ + Test Case 24: pvp packed ring vhost async test with 4core 8queue using vfio-pci driver + """ + self.use_dsa_list = self.DC.bind_dsa_to_dpdk( + dsa_number=1, driver_name="vfio-pci", socket=self.ports_socket + ) + self.queues = 8 + self.dmas = ( + "txq0@%s-q0;" + "rxq0@%s-q1;" + "txq1@%s-q2;" + "rxq1@%s-q3;" + "txq2@%s-q4;" + "rxq2@%s-q5;" + "txq3@%s-q6;" + "rxq3@%s-q7" + % ( + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + self.use_dsa_list[0], + ) + ) + self.nb_cores = 4 + ports = [self.dut.ports_info[self.dut_ports[0]]["pci"]] + ports.append(self.use_dsa_list[0]) + port_options = {self.use_dsa_list[0]: "max_queues=8"} + self.perf_test( + case_info=self.running_case, + ports=ports, + packed=True, + port_options=port_options, + ) + + def stop_vm_and_quit_testpmd(self): + self.vm.stop() + out = self.vhost_user_pmd.execute_cmd("stop") + self.logger.info(out) + self.vhost_user_pmd.quit() + + def tear_down(self): + """ + Run after each test case. + """ + self.stop_vm_and_quit_testpmd() + self.DC.reset_all_work_queue() + self.DC.bind_all_dsa_to_kernel() + + def tear_down_all(self): + """ + Run after each test suite. + """ + self.dut.close_session(self.vhost_user) From patchwork Thu Feb 16 08:36:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 124058 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E3BA441CAE; Thu, 16 Feb 2023 09:49:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DB269410F1; Thu, 16 Feb 2023 09:49:30 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id CE14C40E0F for ; Thu, 16 Feb 2023 09:49:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676537370; x=1708073370; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=aTEqmcQAdPq+Svg/rjpZkXv4ATCzoGSyD3qa+87pOis=; b=jCG0a6pLMsUD5Tjay7Bbz/2h0NMms8bLn+m1XcQPVlEzxTiw84zAx+nF EXGsI+X/JbRDYUyHmKkAJudljrd7aHg/suQrAY3B2ZF5nG5+qHmBmaQ24 m/SHVIl+2aQ56+0Q/tOmPrYyH0k8iV2jxRhIREvkTAsRDzS+3/0k4YtSr irqrZDkhU7ckllarf3jx3xE8Acu4b18GeXs3TQqvX4feZwco6irM9dv3x i4yGqmJZ5niybevqGeueh0FBtAX7H+m0yRC0ESubFX9HEj+kDrLmkRtsb bAEtSZgFThwcBvDffadKd/7OnqQ61PyLHGtixClwVWNHVuHVJUmnZJ/rN g==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="329384456" X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="329384456" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 00:49:28 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="793949578" X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="793949578" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2023 00:49:27 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V3 4/4] conf/pvp_vhost_async_virtio_pmd_perf_dsa: add testsuite config file Date: Thu, 16 Feb 2023 16:36:02 +0800 Message-Id: <20230216083602.1027072-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 pvp_vhost_async_virtio_pmd_perf_dsa config file to test pvp vhost/virtio-pmd async data-path performance use DSA device with dpdk and kernel driver. Signed-off-by: Wei Ling --- conf/pvp_vhost_async_virtio_pmd_perf_dsa.cfg | 223 +++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 conf/pvp_vhost_async_virtio_pmd_perf_dsa.cfg diff --git a/conf/pvp_vhost_async_virtio_pmd_perf_dsa.cfg b/conf/pvp_vhost_async_virtio_pmd_perf_dsa.cfg new file mode 100644 index 00000000..f7b6268b --- /dev/null +++ b/conf/pvp_vhost_async_virtio_pmd_perf_dsa.cfg @@ -0,0 +1,223 @@ +[suite] +update_expected = True +test_parameters = {64: [2048], 128: [2048], 256: [2048], 512: [2048], 2048: [2048], 1280: [2048], 1518: [2048], 2048: [2048], 4096: [2048]} +test_duration = 60 +accepted_tolerance = 2 +expected_throughput = { + 'test_perf_virtio_pmd_split_ring_1c_1q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_1c_2q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_2c_2q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_2c_4q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_4c_4q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000}, + 2048: {2048: 0.000}, + 4096: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_4c_8q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_1c_1q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_1c_2q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_2c_2q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_2c_4q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_4c_4q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_4c_8q_idxd': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_1c_1q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_1c_2q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_2c_2q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_2c_4q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_4c_4q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_split_ring_4c_8q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_1c_1q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_1c_2q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_2c_2q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_2c_4q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_4c_4q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000} + }, + 'test_perf_virtio_pmd_packed_ring_4c_8q_vfio_pci': { + 64: {2048: 0.000}, + 128: {2048: 0.000}, + 256: {2048: 0.000}, + 512: {2048: 0.00}, + 2048: {2048: 0.000}, + 1280: {2048: 0.000}, + 1518: {2048: 0.000}},}