From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CA35EA00C5; Mon, 26 Dec 2022 07:55:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4A7A4021D; Mon, 26 Dec 2022 07:55:31 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 1090540143 for ; Mon, 26 Dec 2022 07:55: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=1672037730; x=1703573730; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1Z7HHrfa6uvLZbeOGtAgxTsZkLRFg3uLQwMSSpKMs3c=; b=NoajfGW6M4aJqoOGmiozfjOuh9YFlXTp9XVKiysPhaRmDB4qzuoUeGw7 EKvhA5EomKpKbEE48uudmU/fa3UA+yUQxzdUgMFYfyBjgH5foJdsK8b5t rGEwOVmxdUwIfuKasUIm+RJ7MWTq5480z3rsQZeQvKhlfXIx+vn8T6e7Y XU2kmyQ63x+ToEeg0ZoMc0+cUExGbssQmpO0HW3cgYt/k8Sl3HVWvG5EU ntEoIost4UYOtH31QUfCQFLR9Uza4xoNptv2ScEpd9OhMzXVfNIcj+XVz ZdwoyuKcJocgV25gDSCgBPCVq820Zkrmrod3P/CXjdbdjeT3V7R8bkW8v g==; X-IronPort-AV: E=McAfee;i="6500,9779,10571"; a="320621559" X-IronPort-AV: E=Sophos;i="5.96,274,1665471600"; d="scan'208";a="320621559" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Dec 2022 22:55:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10571"; a="826803822" X-IronPort-AV: E=Sophos;i="5.96,274,1665471600"; d="scan'208";a="826803822" Received: from dpdk-lijuan-icelake4.sh.intel.com ([10.67.119.188]) by orsmga005.jf.intel.com with ESMTP; 25 Dec 2022 22:55:27 -0800 From: Yingya Han To: dts@dpdk.org Cc: Yingya Han Subject: [dts][PATCH V1 1/3]test_plans: add ice_header_split_perf test plan Date: Mon, 26 Dec 2022 06:55:14 +0000 Message-Id: <20221226065514.10020-1-yingyax.han@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Signed-off-by: Yingya Han --- .../ice_header_split_perf_test_plan.rst | 236 ++++++++++++++++++ test_plans/index.rst | 1 + 2 files changed, 237 insertions(+) create mode 100644 test_plans/ice_header_split_perf_test_plan.rst diff --git a/test_plans/ice_header_split_perf_test_plan.rst b/test_plans/ice_header_split_perf_test_plan.rst new file mode 100644 index 00000000..da07a28b --- /dev/null +++ b/test_plans/ice_header_split_perf_test_plan.rst @@ -0,0 +1,236 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2022 Intel Corporation + +============================================================== +Benchmark the performance of header split forwarding with E810 +============================================================== + +Description +=========== +When Rx queue is configured with RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT offload +and corresponding protocol, packets received will be directly split into +two different mempools. + +Prerequisites +============= + +1. Hardware: + + 1.1) header split perf test for IntelĀ® Ethernet Network Adapter E810-CQDA2: + 1 NIC or 2 NIC cards attached to the same processor and 1 port used of each NIC. + 1.2) header split perf test for IntelĀ® Ethernet Network Adapter E810-XXVDA4: + 1 NIC card attached to the processor and 4 ports used. + +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:17:00.0 'Device 1592' if=ens5f0 drv=ice unused=vfio-pci + 0000:4b:00.0 'Device 1592' if=ens6f0 drv=ice unused=vfio-pci + #./usertools/dpdk-devbind.py -b vfio-pci + #./usertools/dpdk-devbind.py -b vfio-pci 0000:17:00.0 + #./usertools/dpdk-devbind.py -b vfio-pci 0000:4b: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 | + +------+---------+------------+----------------+ + | 3 | TG2 | Random Mac | 11:22:33:44:55 | + +------+---------+------------+----------------+ + | 4 | TG3 | 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 | 2.1.1.1 | + +------+---------+------------+---------+ + | 2 | TG1 | Any IP | 1.1.1.1 | + +------+---------+------------+---------+ + | 3 | TG2 | Any IP | 4.1.1.1 | + +------+---------+------------+---------+ + | 4 | TG3 | Any IP | 3.1.1.1 | + +------+---------+------------+---------+ + + 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 % | + +-----------+------------+-------------+---------+ + | 2C/2T | 64 | xxxxx Mpps | xxx % | + +-----------+------------+-------------+---------+ + | 2C/2T | ... | xxxxx Mpps | xxx % | + +-----------+------------+-------------+---------+ + | 4C/4T | 64 | xxxxx Mpps | xxx % | + +-----------+------------+-------------+---------+ + | 4C/4T | ... | xxxxx Mpps | xxx % | + +-----------+------------+-------------+---------+ + | 8C/8T | 64 | xxxxx Mpps | xxx % | + +-----------+------------+-------------+---------+ + | 8C/8T | ... | xxxxx Mpps | xxx % | + +-----------+------------+-------------+---------+ + +Test Case 1: test_perf_enable_header_split_rx_on +------------------------------------------------ + +1. Bind PF ports to dpdk driver as common step 1:: + + ./usertools/dpdk-devbind.py -b vfio-pci 17:00.0 4b:00.0 + +2. Start dpdk-testpmd:: + + /app/dpdk-testpmd -l 5,6 -n 8 --force-max-simd-bitwidth=64 \ + -- -i --portmask=0x3 --rxq=1 --txq=1 --txd=1024 --rxd=1024 --forward=rxonly \ + --nb-cores=1 --mbuf-size=2048,2048 + + Note: + -force-max-simd-bitwidth: Set 64, the feature only support 64. + -mbuf-size=2048,2048: config two mempools. + +3. Config mac split:: + + testpmd>port stop all + testpmd>port config 0 rx_offload buffer_split on + testpmd>port config 1 rx_offload buffer_split on + testpmd>set rxhdrs eth + testpmd>port start all + testpmd>start + +4. Configure traffic generator to send traffic as common step 2. + +5. Record Test results as common step 3. + +Test case 2: test_perf_disable_header_split_rx_on +------------------------------------------------- + +1. Bind PF ports to dpdk driver as common step 1:: + + ./usertools/dpdk-devbind.py -b vfio-pci 17:00.0 4b:00.0 + +2. Start dpdk-testpmd:: + + /app/dpdk-testpmd -l 5,6 -n 8 --force-max-simd-bitwidth=64 \ + -- -i --portmask=0x3 --rxq=1 --txq=1 --txd=1024 --rxd=1024 --forward=rxonly \ + --nb-cores=1 + + Note: + -force-max-simd-bitwidth: Set 64, the feature only support 64. + +3. Configure traffic generator to send traffic as common step 2. + +4. Record Test results as common step 3. + +5. Start dpdk-testpmd:: + + /app/dpdk-testpmd -l 5,6 -n 8 --force-max-simd-bitwidth=64 \ + -- -i --portmask=0x3 --rxq=1 --txq=1 --txd=1024 --rxd=1024 --forward=rxonly \ + --nb-cores=1 --mbuf-size=2048,2048 + + Note: + -force-max-simd-bitwidth: Set 64, the feature only support 64. + -mbuf-size=2048,2048: config two mempools. + +6. Configure traffic generator to send traffic as common step 2. + +7. Record Test results as common step 3. + +Test case 3: test_perf_enable_header_split +------------------------------------------ + +1. Bind PF ports to dpdk driver as common step 1:: + + ./usertools/dpdk-devbind.py -b vfio-pci 17:00.0 4b:00.0 + +2. Start dpdk-testpmd:: + + /app/dpdk-testpmd -l 5,6 -n 8 --force-max-simd-bitwidth=64 \ + -- -i --portmask=0x3 --rxq=1 --txq=1 --txd=1024 --rxd=1024 --forward=rxonly \ + --nb-cores=1 --mbuf-size=2048,2048 + + Note: + -force-max-simd-bitwidth: Set 64, the feature only support 64. + -mbuf-size=2048,2048: config two mempools. + +3. Config udp split:: + + testpmd>port stop all + testpmd>port config 0 rx_offload buffer_split on + testpmd>port config 1 rx_offload buffer_split on + testpmd>set rxhdrs inner-ipv4-udp + testpmd>port start all + testpmd>start + +4. Config traffic generator as common step 2. + +5. Record Test results as common step 3. + +6. Config traffic generator with udp flow. + +7. Record Test results as common step 3. + +Test case 4: test_perf_disable_header_split +------------------------------------------- + +1. Bind PF ports to dpdk driver as common step 1:: + + ./usertools/dpdk-devbind.py -b vfio-pci 17:00.0 4b:00.0 + +2. Start dpdk-testpmd:: + + /app/dpdk-testpmd -l 5,6 -n 8 --force-max-simd-bitwidth=64 \ + -- -i --portmask=0x3 --rxq=1 --txq=1 --txd=1024 --rxd=1024 --forward=io \ + --nb-cores=1 + + Note: + -force-max-simd-bitwidth: Set 64, the feature only support 64. + +3. Configure traffic generator to send traffic as common step 2. + +4. Record Test results as common step 3. + +5. Start dpdk-testpmd:: + + /app/dpdk-testpmd -l 5,6 -n 8 --force-max-simd-bitwidth=64 \ + -- -i --portmask=0x3 --rxq=1 --txq=1 --txd=1024 --rxd=1024 --forward=io \ + --nb-cores=1 --mbuf-size=2048,2048 + + Note: + -force-max-simd-bitwidth: Set 64, the feature only support 64. + -mbuf-size=2048,2048: config two mempools. + +6. Configure traffic generator to send traffic as common step 2. + +7. Record Test results as common step 3. diff --git a/test_plans/index.rst b/test_plans/index.rst index 9ca954e2..a4e7c7e8 100644 --- a/test_plans/index.rst +++ b/test_plans/index.rst @@ -35,6 +35,7 @@ The following are the test plans for the DPDK DTS automated test system. ice_dcf_switch_filter_pppoe_test_plan ice_dcf_switch_filter_gtpu_test_plan ice_dcf_flow_priority_test_plan + ice_header_split_perf_test_plan.rst ice_flow_priority_test_plan ice_dcf_qos_test_plan ice_enable_basic_hqos_on_pf_test_plan -- 2.34.1