From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 683E8968 for ; Fri, 22 Sep 2017 10:35:26 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2017 01:35:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,427,1500966000"; d="scan'208";a="154780636" Received: from dpdk-test47.sh.intel.com ([10.67.118.152]) by fmsmga006.fm.intel.com with ESMTP; 22 Sep 2017 01:35:24 -0700 From: wang fei To: dts@dpdk.org Cc: wang fei Date: Fri, 22 Sep 2017 19:07:51 +0800 Message-Id: <1506078471-34594-1-git-send-email-feix.y.wang@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [patch v1] test_plans/nic_single_core_perf_test_plan.rst : add test plan for test suite nic_single_core_perf X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2017 08:35:26 -0000 Signed-off-by: wang fei --- test_plans/nic_single_core_perf_test_plan.rst | 113 ++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 test_plans/nic_single_core_perf_test_plan.rst diff --git a/test_plans/nic_single_core_perf_test_plan.rst b/test_plans/nic_single_core_perf_test_plan.rst new file mode 100644 index 0000000..f8084f2 --- /dev/null +++ b/test_plans/nic_single_core_perf_test_plan.rst @@ -0,0 +1,113 @@ +.. Copyright (c) <2016>, Intel Corporation + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + - Neither the name of Intel Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + OF THE POSSIBILITY OF SUCH DAMAGE. + +========================================= +Nic_single_core_perf for fortville25g,fortville40g,nnt10g +========================================= + +Prerequisites +============= + +1. Hardware: + 1) nic_single_core_perf test for fortvile25g: two dual port fortville25g nics , all installed on the same socket, pick one port per nic + 2) nic_single_core_perf test for fortvile40g: two dual port fortville40g nics , all installed on the same socket, pick one port per nic + 3) nic_single_core_perf test for nnt10g : four 82599 nics, all installed on the same socket, pick one port per nic + +2. software: + dpdk: http://dpdk.org/git/dpdk + scapy: http://www.secdev.org/projects/scapy/ + python-prettytable(uesed to output the test result matrix as a separate txt file): + apt install python-prettytable for ubuntu os + or dnf install python-prettytable for fedora os. + +3. Connect all the selected nic ports to ixia ports. + 2 ixia 25g ports for fvl25g ports + 2 ixia 40g ports for fvl40g ports + 4 ixia 10g ports for 4 nnn ports + +Test Case : nic_single_core_perf +================================== +1) bind nic ports to igb_uio + for nnt10g nic, 4 ports will be binded + for fvl25g and 40g nic, 2 ports will be binded. + +2) start testpmd + ./x86_64-native-linuxapp-gcc/app/testpmd -l 22-23 -n 4 -- -i --rxq=1 --txq=1 --portmask=0xf --rss-ip --txrst=32 --txfreet=32 --txd=128 --rxd=128 + (make sure use two cores on the same socket that the nics installed on) + testpmd> start + +3) configure ixia to send traffic + configure one below stream for each ixia port + dst mac: peer nic port mac + src ip : random + dst ip : random + packet length : 64 byte + +4) check throughput and compare it with the expected value. + +5) for nnt10g, repeat above step 1-4 for txd=rxd=512,2048 separately. + for fvl25g and fvl40g nic, just test txd=rxd=512,2048 following above steps 1-4. + +6) print out below test results table for nnt, fvl25g,fvl40g separately + fvl25g: ++------------+---------+------------+------------+---------------------+ +| Frame Size | txd/rxd | Throughput | % linerate | Expected throughput | ++============+=========+============+============+=====================+ +| 64 | 512 | xxxxxx | 58.327 | 43.365 | ++------------+---------+------------+------------+---------------------+ +| 64 | 2048 | xxxxxx | 51.964 | 38.658 | ++------------+---------+------------+------------+---------------------+ + + fvl40g: ++------------+---------+------------+------------+---------------------+ +| Frame Size | txd/rxd | Throughput | % linerate | Expected throughput | ++============+=========+============+============+=====================+ +| 64 | 512 | xxxxxx | 36.618 | 43.614 | ++------------+---------+------------+------------+---------------------+ +| 64 | 2048 | xxxxxx | 32.275 | 38.407 | ++------------+---------+------------+------------+---------------------+ + + for nnt10g: ++------------+---------+------------+------------+---------------------+ +| Frame Size | txd/rxd | Throughput | % linerate | Expected throughput | ++============+=========+============+============+=====================+ +| 64 | 128 | xxxxxx | 85.769 | 50.746 | ++------------+---------+------------+------------+---------------------+ +| 64 | 512 | xxxxxx | 58.736 | 34.628 | ++------------+---------+------------+------------+---------------------+ +| 64 | 2048 | xxxxxx | 58.219 | 34.657 | ++------------+---------+------------+------------+---------------------+ + +Case assert failure if the actual throughputs lower exceed 1 Mpps than the expected throughput. + + + -- 2.7.4