From patchwork Tue Aug 16 09:05:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yingya Han X-Patchwork-Id: 115163 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 5DD80A00C3; Tue, 16 Aug 2022 11:05:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5311D40F19; Tue, 16 Aug 2022 11:05:23 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 1DF3240150 for ; Tue, 16 Aug 2022 11:05:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660640722; x=1692176722; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=nH82ApSaRhYl5D2mUxwQZn8F3EqA1W1zb/mLO2LtL6M=; b=IAB85esxLvynxNGixAsORrjbTFzqaW2OKbq4eFNpbG6crrGZNTrk+yEv Yw9Jn1uBn7jtRL0Z1uArJxMmfySqSkfowuvgmNJi4zeMc8KBURZGGWAg2 mVSTZzqjUwkvPfWMVMIFLHF9jytm21ACPtNUjK1/+0PmG8Z5AnJcPyTTJ ERjzRjJ4uMOCOFPT1y3G6zlHwZL2fuR8GEpniJxJevnViG8pNqDywg+Ho fqHziwBtv0Lybt5FSpebHsWvCCwAyqs6d7x3T/rfqxgrMvYNg57NGAbkJ JelthHqz16nP0mfNST/ZlfT1StOgKSmvRDFfybsUA0rQRL9XwbW3GRxz7 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10440"; a="292165163" X-IronPort-AV: E=Sophos;i="5.93,240,1654585200"; d="scan'208";a="292165163" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2022 02:05:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,240,1654585200"; d="scan'208";a="583223527" Received: from dpdk-lijuan-icelake4.sh.intel.com ([10.67.118.208]) by orsmga006.jf.intel.com with ESMTP; 16 Aug 2022 02:05:06 -0700 From: Yingya Han To: dts@dpdk.org Cc: Yingya Han Subject: [dts][PATCH V1 1/3]test_plans: add rx_timestamp_perf test plan Date: Tue, 16 Aug 2022 17:05:03 +0800 Message-Id: <20220816090503.1752363-1-yingyax.han@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 Signed-off-by: Yingya Han --- test_plans/rx_timestamp_perf_test_plan.rst | 180 +++++++++++++++++++++ 1 file changed, 180 insertions(+) create mode 100644 test_plans/rx_timestamp_perf_test_plan.rst diff --git a/test_plans/rx_timestamp_perf_test_plan.rst b/test_plans/rx_timestamp_perf_test_plan.rst new file mode 100644 index 00000000..0fe97b08 --- /dev/null +++ b/test_plans/rx_timestamp_perf_test_plan.rst @@ -0,0 +1,180 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2022 Intel Corporation + +============================================================== +Benchmark the performance of rx timestamp forwarding with E810 +============================================================== + +This document provides the plan for testing the performance of Intel Ethernet Controller. +This test plan cover the test cases of throughput with enable rx timestamp. +The Performance results are produced using ``dpdk-testpmd`` application. + +Prerequisites +============= + +1. Hardware: + + 1.1) rx timestamp 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) rx timestamp 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.1 '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.1 + +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 | DUT Port0 Mac | + +------+---------+------------+---------------+ + | 2 | TG1 | Random Mac | DUT port1 Mac | + +------+---------+------------+---------------+ + | 3 | TG2 | Random Mac | DUT port2 Mac | + +------+---------+------------+---------------+ + | 4 | TG3 | Random Mac | DUT port3 Mac | + +------+---------+------------+---------------+ + + 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: iavf_throughput_enable_ptp_scalar +---------------------------------------------- + +1. Bind PF ports to kernel driver(ice), then create 1 VF from each PF, + take E810-CQDA2 for example:: + + echo 1 > /sys/bus/pci/devices/0000\:17\:00.0/sriov_numvfs + echo 1 > /sys/bus/pci/devices/0000\:4b\:00.1/sriov_numvfs + +2. Set vf mac address:: + + ip link set ens5f0 vf 0 mac 00:12:34:56:78:01 + ip link set ens6f0 vf 0 mac 00:12:34:56:78:02 + +3. Bind all the created VFs to dpdk driver as common step 1:: + + ./usertools/dpdk-devbind.py -b vfio-pci 17:01.0 4b:01.0 + +4. 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=mac \ + --nb-cores=1 --enable-rx-timestamp + + Note: + -force-max-simd-bitwidth: Set 64, the feature only support 64. + -enable-rx-timestamp: enable rx-timestamp. + +5. Configure traffic generator to send traffic as common step 2. + +6. Record Test results as common step 3. + +Test Case 2: iavf_throughput_disable_ptp_scalar +----------------------------------------------- + +1. Excute iavf_throughput_enable_ptp_scalar steps 1-3. + +2. Start dpdk-testpmd with disable rx-timestamp:: + + /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=mac \ + --nb-cores=1 + +3. Excute iavf_throughput_enable_ptp_scalar steps 5-6. + +Test Case 3: pf_throughput_enable_ptp_scalar +-------------------------------------------- + +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 --enable-rx-timestamp + +3. Configure traffic generator to send traffic as common step 2. + +4. Record Test results as common step 3. + +Test Case 4: pf_throughput_disable_ptp_scalar +--------------------------------------------- + +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 with disable rx-timestamp:: + + /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 + +3. Configure traffic generator to send traffic as common step 2. + +4. Record Test results as common step 3.