From patchwork Thu Apr 13 09:35:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yingya Han X-Patchwork-Id: 125999 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 AAF7942931; Thu, 13 Apr 2023 11:35:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A59FE410F9; Thu, 13 Apr 2023 11:35:13 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 021EA4021F for ; Thu, 13 Apr 2023 11:35:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681378511; x=1712914511; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bboFIqFC673AFhgTgIWSeJUYe3ilj/bzJjVkwO7n/Sw=; b=CUumeoabei71MmH3vco/gT91iWjy+0KWvflQNV2h0UdTEg9P5sJQhvuW M/0YMm5B4r0merEKZU1hAv4oezKdLQWxfohXkonAx/GkzKeEkdp1uWspB bnAvI9oaAlQhlPaq8Gx2CO9q1LBYigGM2h4PeeJCEO1+M+GYCccg7KPHu uMXAXC/0AQ9supfKtElltdmz0TjOQLiFpIIjl/mFmfpMi6+HKACovocSq ZOlgMdXmx6ZREz9DxCIonO4BRE1OQiZAWiSPeOitulr+clBfSC+TjsM/L vX0va77wHJ977L1YDxzTeRYAbc4+kMFPdDWHVthMu4C8KDqDsKpzz/N8u g==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="323758397" X-IronPort-AV: E=Sophos;i="5.98,341,1673942400"; d="scan'208";a="323758397" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 02:35:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="863718647" X-IronPort-AV: E=Sophos;i="5.98,341,1673942400"; d="scan'208";a="863718647" Received: from dpdk-lijuan-icelake4.sh.intel.com ([10.67.119.201]) by orsmga005.jf.intel.com with ESMTP; 13 Apr 2023 02:35:09 -0700 From: Yingya Han To: dts@dpdk.org Cc: Yingya Han Subject: [dts][PATCH V3 1/3]test_plans: add i40e_multi_driver_perf test plan Date: Thu, 13 Apr 2023 09:35:02 +0000 Message-Id: <20230413093504.33751-2-yingyax.han@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230413093504.33751-1-yingyax.han@intel.com> References: <20230413093504.33751-1-yingyax.han@intel.com> 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 Signed-off-by: Yingya Han --- .../i40e_multi_driver_perf_test_plan.rst | 106 ++++++++++++++++++ test_plans/index.rst | 1 + 2 files changed, 107 insertions(+) create mode 100644 test_plans/i40e_multi_driver_perf_test_plan.rst diff --git a/test_plans/i40e_multi_driver_perf_test_plan.rst b/test_plans/i40e_multi_driver_perf_test_plan.rst new file mode 100644 index 00000000..32de92d0 --- /dev/null +++ b/test_plans/i40e_multi_driver_perf_test_plan.rst @@ -0,0 +1,106 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2023 Intel Corporation + +======================================================================================= +Benchmark the performance of pf multi driver forwarding with IntelĀ® Ethernet 700 Series +======================================================================================= + +Description +=========== + +The feature reduce the ITR interval of multi-driver mode in driver i40e. +Set the multi-driver mode in driver i40e, the perf will no drop compare with +no multi-driver mode. + +Prerequisites +============= + +1. Hardware:: + + I40e: XXV710, XL710, X710 + +2. Software:: + + dpdk: git clone http://dpdk.org/git/dpdk + trex: git clone http://trex-tgn.cisco.com/trex/release/v2.93.tar.gz + + +Test Case +========= +The test case check the throughput result with ipv4, in the case, +we will send the bi-direction flows with line rate, then we can check the +passthrough rate. + +Common Steps +------------ + +1. Bind tested ports to vfio-pci:: + + #./usertools/dpdk-devbind.py -s + 0000:b1:00.0 'Ethernet Controller XXV710 for 25GbE SFP28 158b' if=ens21f0 drv=i40e unused=vfio-pci + 0000:ca:00.0 'Ethernet Controller XXV710 for 25GbE SFP28 158b' if=ens25f0 drv=i40e unused=vfio-pci + #./usertools/dpdk-devbind.py -b vfio-pci + #./usertools/dpdk-devbind.py -b vfio-pci 0000:b1:00.0 + #./usertools/dpdk-devbind.py -b vfio-pci 0000:ca:00.0 + +2. Configure traffic generator to send traffic + + Test flow MAC table. + + +------+---------+------------+----------------+ + | Flow | Traffic | MAC | MAC | + | | Gen. | Src. | Dst. | + | | Port | Address | Address | + +======+=========+============+================+ + | 1 | TG0 | Random MAC | 11:22:33:44:55 | + +------+---------+------------+----------------+ + | 2 | TG1 | Random Mac | 11:22:33:44:55 | + +------+---------+------------+----------------+ + + The Flow IP table. + + +------+---------+------------+------------+ + | Flow | Traffic | IPV4 | IPV4 | + | | Gen. | Src. | Dest. | + | | Port | Address | Address | + +======+=========+============+============+ + | 1 | TG0 | Any IP | 198.18.1.0 | + +------+---------+------------+------------+ + | 2 | TG1 | Any IP | 198.18.0.0 | + +------+---------+------------+------------+ + + Set the packet length : 64 bytes-1518 bytes + The IPV4 Dest Address increase with the num 1024. + +3. Test results table. + + +-----------+------------+-------------+---------+ + | Fwd_core | Frame Size | Throughput | Rate | + +===========+============+=============+=========+ + | 1C/1T | 64 | xxxxx Mpps | xxx % | + +-----------+------------+-------------+---------+ + | 1C/1T | ... | xxxxx Mpps | xxx % | + +-----------+------------+-------------+---------+ + +Test Case 1: test_perf_enable_multi_driver +------------------------------------------ +test steps +~~~~~~~~~~ +1. Bind PF ports to dpdk driver as common step 1:: + + ./usertools/dpdk-devbind.py -b vfio-pci b1:00.0 ca:00.0 + +2. Start dpdk-testpmd with multi driver:: + + /app/dpdk-testpmd -l 5,6 -n 8 --force-max-simd-bitwidth=512 \ + -a 0000:b1:00.0,support-multi-driver=1 -a 0000:ca:00.0,support-multi-driver=1 \ + -- -i --portmask=0x3 --rxq=1 --txq=1 --txd=1024 --rxd=1024 --forward=io \ + --nb-cores=1 + + Note: + -force-max-simd-bitwidth: set 512. + support-multi-driver: enable multi driver + +3. Configure traffic generator to send traffic as common step 2. + +4. Record Test results as common step 3. diff --git a/test_plans/index.rst b/test_plans/index.rst index 2008f50b..caee7a0e 100644 --- a/test_plans/index.rst +++ b/test_plans/index.rst @@ -75,6 +75,7 @@ The following are the test plans for the DPDK DTS automated test system. firmware_version_test_plan floating_veb_test_plan i40e_rss_input_test_plan + i40e_multi_driver_perf_test_plan generic_flow_api_test_plan hotplug_mp_test_plan hotplug_test_plan