From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id CA46EA05D3 for ; Wed, 22 May 2019 07:28:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 85ED114EC; Wed, 22 May 2019 07:28:36 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 484D0A69 for ; Wed, 22 May 2019 07:28:32 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 May 2019 22:28:31 -0700 X-ExtLoop1: 1 Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 21 May 2019 22:28:30 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 21 May 2019 22:28:30 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 21 May 2019 22:28:29 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.7]) with mapi id 14.03.0415.000; Wed, 22 May 2019 13:28:28 +0800 From: "Tu, Lijuan" To: "Han, YingyaX" , "dts@dpdk.org" CC: "Han, YingyaX" Thread-Topic: [dts] [PATCH V3]test_plan: add vf l3fwd performance test plan Thread-Index: AQHVCi5dJ2H/YCx+KUmj5TmY9piuaaZ2qfiQ Date: Wed, 22 May 2019 05:28:27 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA83EF5@SHSMSX101.ccr.corp.intel.com> References: <20190514162440.24827-1-yingyax.han@intel.com> In-Reply-To: <20190514162440.24827-1-yingyax.han@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTg0NWI4NmMtNmU0OS00MDdjLWI3MDAtYzY0MWJmYmI3N2RiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMTdjRHQ2cHFmSlwvcTlFYmw2VDRUUU1FVjBxSENqeENvdzlBVVI3c25KRmRrWmprNzFYaEE2UkpVNFY4YmFxb3MifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V3]test_plan: add vf l3fwd performance test plan 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of hanyingya > Sent: Wednesday, May 15, 2019 12:25 AM > To: dts@dpdk.org > Cc: Han, YingyaX > Subject: [dts] [PATCH V3]test_plan: add vf l3fwd performance test plan >=20 > Signed-off-by: hanyingya > --- > test_plans/vf_l3fwd_test_plan.rst | 176 ++++++++++++++++++++++++++++++ > 1 file changed, 176 insertions(+) > create mode 100644 test_plans/vf_l3fwd_test_plan.rst >=20 > diff --git a/test_plans/vf_l3fwd_test_plan.rst > b/test_plans/vf_l3fwd_test_plan.rst > new file mode 100644 > index 0000000..97e3ab7 > --- /dev/null > +++ b/test_plans/vf_l3fwd_test_plan.rst > @@ -0,0 +1,176 @@ > +.. Copyright (c) <2019>, 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. > + > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +VF L3 Forwarding Performance Tests > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +This document provides benchmark test for NIC VFs which are created > +from kernel PFs or DPDK PFs. These tests use l3fwd as a simple > +forwarder between NIC vfs. The goal of this test plan is to have a > +tested benchmark between NIC vfs. > + > + > +Prerequisites > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +* Hardware requirements: > + > + * XL710, XXV710: 2 ports from 2 NICs, 1 port per NIC, 2 cores & 2 queu= es > per VF. > + > + :: > + > + +------------------------------+ > + | DUT | TESTER | > + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D+ > + | NIC-1,Port-1 --- TG,Port-1 | > + | NIC-2,Port-1 --- TG,Port-2 | > + +------------------------------+ > + > + > + * X710: 4 ports from 1 NIC, 1 core 1 queues per port. > + > + :: > + > + +------------------------------+ > + | DUT | TESTER | > + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D+ > + | NIC-1,Port-1 --- TG,Port-1 | > + | NIC-1,Port-2 --- TG,Port-2 | > + | NIC-1,Port-3 --- TG,Port-3 | > + | NIC-1,Port-4 --- TG,Port-4 | > + +------------------------------+ > + > + * 825992: 2 ports from 2 NIC, 1 core 1 queues per port. > + > + :: > + > + + -----------------------------+ > + | DUT | TESTER | > + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D+ > + | NIC-1,Port-1 --- TG,Port-1 | > + | NIC-2,Port-1 --- TG,Port-2 | > + +------------------------------+ > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +Setup overview > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Set up topology as above based on the NIC used. > + > +Test Case 1: Measure performance with kernel PF & dpdk VF > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > + > +1, Bind PF ports to kernel driver, i40e or ixgbe, then create 1 VF from > +each PF, take XL710 for example:: > + > + echo 1 > /sys/bus/pci/devices/0000\:18\:00.0/sriov_numvfs > + echo 1 > /sys/bus/pci/devices/0000\:18\: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 ens5f1 vf > + 0 mac 00:12:34:56:78:02 > + > +3, Bind all the created VFs to dpdk driver, igb_uio or vfio-pci:: > + > + ./usertools/dpdk-devbind.py -b igb_uio 18:02.0 18:06.0 > + > +4, Start dpdk l3fwd with 1:1 matched cores and queues:: > + > + ./examples/l3fwd/build/l3fwd -c 0xf -n 4 -- -p 0x3 --config > '(0,0,0),(1,0,1),(0,1,2),(1,1,3)' > + > +5, Send packet with frame size from 64bytes to 1518bytes with ixia > +traffic generator, make sure your traffic configuration meets LPM rules,= and > will go to all queues, all ports. > +Fill out this table with results. > + > ++-------+------+--------+-----------+ > +| Frame | mode | Mpps | %linerate | > ++=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D+=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ > +| 64 | lpm | | | > ++-------+------+--------+-----------+ > +| 128 | lpm | | | > ++-------+------+--------+-----------+ > +| 256 | lpm | | | > ++-------+------+--------+-----------+ > +| 512 | lpm | | | > ++-------+------+--------+-----------+ > +| 1024 | lpm | | | > ++-------+------+--------+-----------+ > +| 1518 | lpm | | | > ++-------+------+--------+-----------+ > + > + > +Test Case 2: Measure performance with dpdk PF & dpdk VF > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > + > +1, Bind PF ports to igb_uio driver, then create 1 VF from each PF, take > +XL710 for example:: > + > + ./usertools/dpdk-devbind.py -b igb_uio 18:00.0 18:00.1 echo 1 > > + /sys/bus/pci/devices/0000\:18\:00.0/max_vfs > + echo 1 > /sys/bus/pci/devices/0000\:18\:00.1/max_vfs > + > +2, Bind the two created VFs to dpdk driver, igb_uio or vfio-pci:: > + > + ./usertools/dpdk-devbind.py -b igb_uio 18:02.0 18:06.0 > + > +3, Start testpmd and set vfs mac address:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 4 > + --socket-mem=3D1024,1024 --file-prefix=3Dpf -b 0000:18:02.0 -b > + 0000:18:06.0 -- -i testpmd>set vf mac addr 0 0 00:12:34:56:78:01 > + testpmd>set vf mac addr 1 0 00:12:34:56:78:02 > + > +4, Start dpdk l3fwd with 1:1 matched cores and queues:: > + > + ./examples/l3fwd/build/l3fwd -c 0x3c -n 4 -w 0000:18:02.0 -w 0000:18:0= 6.0 > -- -p 0x3 --config '(0,0,2),(1,0,3),(0,1,4),(1,1,5)' > + > +5, Send packet with frame size from 64bytes to 1518bytes with ixia > +traffic generator, make sure your traffic configuration meets LPM rules,= and > will go to all queues, all ports. > +Fill out this table with results. > + > ++-------+------+--------+-----------+ > +| Frame | mode | Mpps | %linerate | > ++=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D+=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ > +| 64 | lpm | | | > ++-------+------+--------+-----------+ > +| 128 | lpm | | | > ++-------+------+--------+-----------+ > +| 256 | lpm | | | > ++-------+------+--------+-----------+ > +| 512 | lpm | | | > ++-------+------+--------+-----------+ > +| 1024 | lpm | | | > ++-------+------+--------+-----------+ > +| 1518 | lpm | | | > ++-------+------+--------+-----------+ > -- > 2.17.1