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 BBADBA00E6 for ; Wed, 12 Jun 2019 10:13:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6685E1D183; Wed, 12 Jun 2019 10:13:53 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 54D4B1D181 for ; Wed, 12 Jun 2019 10:13:51 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jun 2019 01:13:48 -0700 X-ExtLoop1: 1 Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 12 Jun 2019 01:13:46 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 12 Jun 2019 01:13:46 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 12 Jun 2019 01:13:45 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.104]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.89]) with mapi id 14.03.0439.000; Wed, 12 Jun 2019 16:13:44 +0800 From: "Tu, Lijuan" To: "thaq@marvell.com" , "dts@dpdk.org" CC: "fmasood@marvell.com" , "avijay@marvell.com" , "jerinj@marvell.com" Thread-Topic: [dts] [PATCH] eventdev_pipeline_perf_test_plan.rst: Adding Eventdev_pipeline features performance Testplan Thread-Index: AQHVIO8nAZH3EkMM1kqz6eD7+kyQ6qaXq5OA Date: Wed, 12 Jun 2019 08:13:44 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BABB926@SHSMSX101.ccr.corp.intel.com> References: <1560323900-12906-1-git-send-email-thaq@marvell.com> In-Reply-To: <1560323900-12906-1-git-send-email-thaq@marvell.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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiN2QxZTFjZTgtMTE4My00NzlkLThmYTAtMjgwOTVmMjNkYWE0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVmdmRUdWNTRaSG5wN0VOUjZyZEtNcEhLRnNPaFpmWjFMcFNGWTB6YllqWjFHY0phSUk0cXBmYVFwYUNwbitaZCJ9 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] eventdev_pipeline_perf_test_plan.rst: Adding Eventdev_pipeline features performance Testplan 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 thaq@marvell.com > Sent: Wednesday, June 12, 2019 3:18 PM > To: dts@dpdk.org > Cc: fmasood@marvell.com; avijay@marvell.com; jerinj@marvell.com; > Thanseerulhaq > Subject: [dts] [PATCH] eventdev_pipeline_perf_test_plan.rst: Adding > Eventdev_pipeline features performance Testplan >=20 > From: Thanseerulhaq >=20 > Adding testcase for 1/2/4 NIC ports for eventdev_pipeline features atomic= , > parallel, order stages. >=20 > Signed-off-by: Thanseerulhaq > --- > test_plans/eventdev_pipeline_perf_test_plan.rst | 257 > ++++++++++++++++++++++++ > 1 file changed, 257 insertions(+) > create mode 100644 test_plans/eventdev_pipeline_perf_test_plan.rst >=20 > diff --git a/test_plans/eventdev_pipeline_perf_test_plan.rst > b/test_plans/eventdev_pipeline_perf_test_plan.rst > new file mode 100644 > index 0000000..619f9a3 > --- /dev/null > +++ b/test_plans/eventdev_pipeline_perf_test_plan.rst > @@ -0,0 +1,257 @@ > +.. SPDX-License-Identifier: BSD-3-Clause > + Copyright (C) 2019 Marvell International Ltd. > + > +=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 > +Eventdev Pipeline Perf 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 > + > +Prerequisites > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Each of the 10Gb/25Gb/40Gb/100Gb Ethernet* ports of the DUT is directly > +connected in full-duplex to a different port of the peer Ixia ports(traf= fic > generator). > + > +Using TCL commands, the Ixia can be configured to send and receive traff= ic > on a given set of ports. > + > +If using vfio the kernel must be >=3D 3.6+ and VT-d must be enabled in > +bios.When using vfio, use the following commands to load the vfio > +driver and bind it to the device under test :: > + > + modprobe vfio > + modprobe vfio-pci > + usertools/dpdk-devbind.py --bind=3Dvfio-pci device_bus_id > + usertools/dpdk-devbind.py --bind=3Dvfio-pci eventdev_device_bus_id > + > +Create huge pages > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +mkdir -p /dev/huge > +mount -t hugetlbfs none /dev/huge > +echo 24 > /proc/sys/vm/nr_hugepages > + > +Configure limits of Eventdev devices > +=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 > +Set all eventdev devices sso and ssow limits to zero. Then set eventdev > device under tests sso and ssow limits to non-zero values as per > cores/queues requriments :: > + echo 0 > /sys/bus/pci/devices/eventdev_device_bus_id/limits/sso > + echo 0 > /sys/bus/pci/devices/eventdev_device_bus_id/limits/ssow > + > +Example :: > + echo 0 > /sys/bus/pci/devices/eventdev_device_bus_id/limits/tim > + echo 1 > /sys/bus/pci/devices/eventdev_device_bus_id/limits/npa > + echo 16 > /sys/bus/pci/devices/eventdev_device_bus_id/limits/sso > + echo 32 > /sys/bus/pci/devices/eventdev_device_bus_id/limits/ssow > + > +- ``eventdev_device_bus_id/limits/sso`` : Max limit `256` > +- ``eventdev_device_bus_id/limits/ssow``: Max limit `52` > + > +Test Case: Performance 1port atomic test > +=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 > +Description: Execute performance test with Atomic_atq type of stage in > multi-flow situation for various cores. > + > +1. Run the sample with below command:: > + > + # ./build/dpdk-eventdev_pipeline -c 0xe00000 -w > + eventdev_device_bus_id -w device_bus_id -- -w 0xc00000 -n=3D0 --dump > + > + Parameters: > + -c, COREMASK : Hexadecimal bitmask of cores to run on > + -w, --pci-whitelist : Add a PCI device in white list. > + Only use the specified PCI devices. The a= rgument format > + is <[domain:]bus:devid.func>. This option= can be present > + several times (once per device). > + EAL Commands > + -w, --worker-mask=3Dcore mask : Run worker on CPUs in core mask > + -n, --packets=3DN : Send N packets (default ~32M), 0= implies no > limit > + -D, --dump Print detailed statistics before ex= it > + > +2. Use Ixia to send huge number of packets(with same 5-tuple and > +different 5-tuple) > + > +3. Observe the speed of packets received(Rx-rate) on Ixia. > + > +Test Case: Performance 1port parallel test > +=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 > +Description: Execute performance test with Parallel_atq type of stage in > multi-flow situation for various cores. > + > +1. Run the sample with below command:: > + > + # ./build/dpdk-eventdev_pipeline -c 0xe00000 -w > + eventdev_device_bus_id -w device_bus_id -- -w 0xc00000 -n=3D0 -p --dump > + > + Parameters: > + -c, COREMASK : Hexadecimal bitmask of cores to run on > + -w, --pci-whitelist : Add a PCI device in white list. > + Only use the specified PCI devices. The a= rgument format > + is <[domain:]bus:devid.func>. This option= can be present > + several times (once per device). > + EAL Commands > + -w, --worker-mask=3Dcore mask : Run worker on CPUs in core mask > + -n, --packets=3DN : Send N packets (default ~32M), 0= implies no > limit > + -p, --parallel : Use parallel scheduling > + -D, --dump : Print detailed statistics before e= xit > + > +2. Use Ixia to send huge number of packets(with same 5-tuple and > +different 5-tuple) > + > +3. Observe the speed of packets received(Rx-rate) on Ixia. > + > +Test Case: Performance 1port ordered test > +=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 > +Description: Execute performance test with Ordered_atq type of stage in > multi-flow situation for various cores. > + > +1. Run the sample with below command:: > + > + # ./build/dpdk-eventdev_pipeline -c 0xe00000 -w > + eventdev_device_bus_id -w device_bus_id -- -w 0xc00000 -n=3D0 -o --dump > + > + Parameters: > + -c, COREMASK : Hexadecimal bitmask of cores to run on > + -w, --pci-whitelist : Add a PCI device in white list. > + Only use the specified PCI devices. The a= rgument format > + is <[domain:]bus:devid.func>. This option= can be present > + several times (once per device). > + EAL Commands > + -w, --worker-mask=3Dcore mask : Run worker on CPUs in core mask > + -n, --packets=3DN : Send N packets (default ~32M), 0= implies no > limit > + -o, --ordered Use ordered scheduling > + -D, --dump : Print detailed statistics before e= xit > + > +2. Use Ixia to send huge number of packets(with same 5-tuple and > +different 5-tuple) > + > +3. Observe the speed of packets received(Rx-rate) on Ixia. > + > +Test Case: Performance 2port atomic test > +=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 > +Description: Execute performance test with Atomic_atq type of stage in > multi-flow situation for various cores. > + > +1. Run the sample with below command:: > + > + # ./build/dpdk-eventdev_pipeline -c 0xe00000 -w > + eventdev_device_bus_id -w device0_bus_id -w device1_bus_id -- -w > + 0xc00000 -n=3D0 --dump > + > + Parameters: > + -c, COREMASK : Hexadecimal bitmask of cores to run on > + -w, --pci-whitelist : Add a PCI device in white list. > + Only use the specified PCI devices. The a= rgument format > + is <[domain:]bus:devid.func>. This option= can be present > + several times (once per device). > + EAL Commands > + -w, --worker-mask=3Dcore mask : Run worker on CPUs in core mask > + -n, --packets=3DN : Send N packets (default ~32M), 0= implies no > limit > + -D, --dump Print detailed statistics before ex= it > + > +2. Use Ixia to send huge number of packets(with same 5-tuple and > +different 5-tuple) > + > +3. Observe the speed of packets received(Rx-rate) on Ixia. > + > +Test Case: Performance 2port parallel test > +=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 > +Description: Execute performance test with Parallel_atq type of stage in > multi-flow situation for various cores. > + > +1. Run the sample with below command:: > + > + # ./build/dpdk-eventdev_pipeline -c 0xe00000 -w > + eventdev_device_bus_id -w device0_bus_id -w device1_bus_id -- -w > + 0xc00000 -n=3D0 -p --dump > + > + Parameters: > + -c, COREMASK : Hexadecimal bitmask of cores to run on > + -w, --pci-whitelist : Add a PCI device in white list. > + Only use the specified PCI devices. The a= rgument format > + is <[domain:]bus:devid.func>. This option= can be present > + several times (once per device). > + EAL Commands > + -w, --worker-mask=3Dcore mask : Run worker on CPUs in core mask > + -n, --packets=3DN : Send N packets (default ~32M), 0= implies no > limit > + -p, --parallel : Use parallel scheduling > + -D, --dump : Print detailed statistics before e= xit > + > +2. Use Ixia to send huge number of packets(with same 5-tuple and > +different 5-tuple) > + > +3. Observe the speed of packets received(Rx-rate) on Ixia. > + > +Test Case: Performance 2port ordered test > +=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 > +Description: Execute performance test with Ordered_atq type of stage in > multi-flow situation for various cores. > + > +1. Run the sample with below command:: > + > + # ./build/dpdk-eventdev_pipeline -c 0xe00000 -w > + eventdev_device_bus_id -w device0_bus_id -w device1_bus_id -- -w > + 0xc00000 -n=3D0 -o --dump > + > + Parameters: > + -c, COREMASK : Hexadecimal bitmask of cores to run on > + -w, --pci-whitelist : Add a PCI device in white list. > + Only use the specified PCI devices. The a= rgument format > + is <[domain:]bus:devid.func>. This option= can be present > + several times (once per device). > + EAL Commands > + -w, --worker-mask=3Dcore mask : Run worker on CPUs in core mask > + -n, --packets=3DN : Send N packets (default ~32M), 0= implies no > limit > + -o, --ordered Use ordered scheduling > + -D, --dump : Print detailed statistics before e= xit > + > +2. Use Ixia to send huge number of packets(with same 5-tuple and > +different 5-tuple) > + > +3. Observe the speed of packets received(Rx-rate) on Ixia. > + > +Test Case: Performance 4port atomic test > +=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 > +Description: Execute performance test with Atomic_atq type of stage in > multi-flow situation for various cores. > + > +1. Run the sample with below command:: > + > + # ./build/dpdk-eventdev_pipeline -c 0xe00000 -w > + eventdev_device_bus_id -w device0_bus_id -w device1_bus_id -w > + device2_bus_id -w device3_bus_id -- -w 0xc00000 -n=3D0 --dump > + > + Parameters: > + -c, COREMASK : Hexadecimal bitmask of cores to run on > + -w, --pci-whitelist : Add a PCI device in white list. > + Only use the specified PCI devices. The a= rgument format > + is <[domain:]bus:devid.func>. This option= can be present > + several times (once per device). > + EAL Commands > + -w, --worker-mask=3Dcore mask : Run worker on CPUs in core mask > + -n, --packets=3DN : Send N packets (default ~32M), 0= implies no > limit > + -D, --dump Print detailed statistics before ex= it > + > +2. Use Ixia to send huge number of packets(with same 5-tuple and > +different 5-tuple) > + > +3. Observe the speed of packets received(Rx-rate) on Ixia. > + > +Test Case: Performance 4port parallel test > +=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 > +Description: Execute performance test with Parallel_atq type of stage in > multi-flow situation for various cores. > + > +1. Run the sample with below command:: > + > + # ./build/dpdk-eventdev_pipeline -c 0xe00000 -w > + eventdev_device_bus_id -w device0_bus_id -w device1_bus_id -w > + device2_bus_id -w device3_bus_id -- -w 0xc00000 -n=3D0 -p --dump > + > + Parameters: > + -c, COREMASK : Hexadecimal bitmask of cores to run on > + -w, --pci-whitelist : Add a PCI device in white list. > + Only use the specified PCI devices. The a= rgument format > + is <[domain:]bus:devid.func>. This option= can be present > + several times (once per device). > + EAL Commands > + -w, --worker-mask=3Dcore mask : Run worker on CPUs in core mask > + -n, --packets=3DN : Send N packets (default ~32M), 0= implies no > limit > + -p, --parallel : Use parallel scheduling > + -D, --dump : Print detailed statistics before e= xit > + > +2. Use Ixia to send huge number of packets(with same 5-tuple and > +different 5-tuple) > + > +3. Observe the speed of packets received(Rx-rate) on Ixia. > + > +Test Case: Performance 4port ordered test > +=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 > +Description: Execute performance test with Ordered_atq type of stage in > multi-flow situation for various cores. > + > +1. Run the sample with below command:: > + > + # ./build/dpdk-eventdev_pipeline -c 0xe00000 -w > + eventdev_device_bus_id -w device0_bus_id -w device1_bus_id -w > + device2_bus_id -w device3_bus_id -- -w 0xc00000 -n=3D0 -o --dump > + > + Parameters: > + -c, COREMASK : Hexadecimal bitmask of cores to run on > + -w, --pci-whitelist : Add a PCI device in white list. > + Only use the specified PCI devices. The a= rgument format > + is <[domain:]bus:devid.func>. This option= can be present > + several times (once per device). > + EAL Commands > + -w, --worker-mask=3Dcore mask : Run worker on CPUs in core mask > + -n, --packets=3DN : Send N packets (default ~32M), 0= implies no > limit > + -o, --ordered Use ordered scheduling > + -D, --dump : Print detailed statistics before e= xit > + > +2. Use Ixia to send huge number of packets(with same 5-tuple and > +different 5-tuple) > + > +3. Observe the speed of packets received(Rx-rate) on Ixia. > -- > 1.8.3.1