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 8230DA0096 for ; Wed, 5 Jun 2019 04:32:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 20A081B94D; Wed, 5 Jun 2019 04:32:00 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 50A411B945 for ; Wed, 5 Jun 2019 04:31:58 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jun 2019 19:31:57 -0700 X-ExtLoop1: 1 Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 04 Jun 2019 19:31:57 -0700 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Jun 2019 19:31:56 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Jun 2019 19:31:56 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.10]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.188]) with mapi id 14.03.0415.000; Wed, 5 Jun 2019 10:31:54 +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 feature performance Testplan. Thread-Index: AQHVF4G++7pdcj66i06M98mrNDO7oqaMXfYQ Date: Wed, 5 Jun 2019 02:31:53 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAA0693@SHSMSX101.ccr.corp.intel.com> References: <1559287364-19555-1-git-send-email-thaq@marvell.com> In-Reply-To: <1559287364-19555-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGEwYzExYzYtNzU4Yy00NTkwLTg2MmYtMzJjOTQ1YTkyNmVlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiYXhCRWt0Q1RKTFdDNEYxanloZHVRSXFGM1pLZHFzWFA2d3ZKbFg3UTRyeVd4b1VHUjNJOGdjUmZqNW1Ba0lRcSJ9 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 feature 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" Hi thaq, Some minor issues, could you please fix them? Applying: eventdev_pipeline_perf_test_plan.rst: Adding Eventdev_pipeline fe= ature performance Testplan. .git/rebase-apply/patch:44: trailing whitespace. Set all eventdev devices sso and ssow limits to zero. Then set eventdev dev= ice under tests sso and ssow limits to non-zero values as per cores/queues = requriments :: .git/rebase-apply/patch:48: trailing whitespace. Example :: .git/rebase-apply/patch:70: trailing whitespace. several times (once per device). .git/rebase-apply/patch:71: trailing whitespace. EAL Commands .git/rebase-apply/patch:88: trailing whitespace. Parameters: warning: squelched 24 whitespace errors warning: 29 lines add whitespace errors. Thanks Lijuan > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of thaq@marvell.com > Sent: Friday, May 31, 2019 3:23 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 feature 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..f2b2a7e > --- /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