From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DBF31A0352; Thu, 16 Jan 2020 03:29:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CE01A1BFD6; Thu, 16 Jan 2020 03:29:44 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id AADDA1BFCC for ; Thu, 16 Jan 2020 03:29:42 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2020 18:29:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,324,1574150400"; d="scan'208";a="218366543" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 15 Jan 2020 18:29:41 -0800 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Jan 2020 18:29:41 -0800 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 16 Jan 2020 10:29:39 +0800 Received: from shsmsx602.ccr.corp.intel.com ([10.109.6.142]) by SHSMSX602.ccr.corp.intel.com ([10.109.6.142]) with mapi id 15.01.1713.004; Thu, 16 Jan 2020 10:29:39 +0800 From: "Yao, Lei A" To: "Mo, YufengX" , "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 3/3] test_plans/power_telemetry: upload test plan Thread-Index: AQHVzA/c5tiTCem8S06htpV/jrO8aafskWbQ Date: Thu, 16 Jan 2020 02:29:39 +0000 Message-ID: <4a8e9bd81cd14721a3b87b0c6405bb77@intel.com> References: <20200116015645.21294-1-yufengx.mo@intel.com> <20200116015645.21294-4-yufengx.mo@intel.com> In-Reply-To: <20200116015645.21294-4-yufengx.mo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-reaction: no-action dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 3/3] test_plans/power_telemetry: upload 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" > -----Original Message----- > From: Mo, YufengX > Sent: Thursday, January 16, 2020 9:57 AM > To: dts@dpdk.org; Yao, Lei A > Cc: Mo, YufengX > Subject: [dts][PATCH V1 3/3] test_plans/power_telemetry: upload test plan >=20 >=20 > upload test plan. >=20 > Signed-off-by: yufengmx Acked-by: Lei Yao > --- > test_plans/power_telemetry_test_plan.rst | 97 > ++++++++++++++++++++++++ > 1 file changed, 97 insertions(+) > create mode 100644 test_plans/power_telemetry_test_plan.rst >=20 > diff --git a/test_plans/power_telemetry_test_plan.rst > b/test_plans/power_telemetry_test_plan.rst > new file mode 100644 > index 0000000..fd27f8a > --- /dev/null > +++ b/test_plans/power_telemetry_test_plan.rst > @@ -0,0 +1,97 @@ > +.. Copyright (c) <2010-2020>, 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 > +Power Lib Telemetry Test Plan > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > + > +Three types of data will be reported by DPDK telemetry lib in l3fwd-powe= r > sample. > ++ {"empty_poll"}, > ++ {"full_poll"}, > ++ {"busy_percent"} > + > + > +Preparation Work for Settings > +=3D=3D=3D=3D=3D=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. Turn on Speedstep option in BIOS > +2. Turn on CPU C3 and C6 > +3. Turn on Turbo in BIOS > +4. Disable intel_pstate in Linux kernel command:: > + > + intel_pstate=3Ddisable > + > +5. Let user space can control the CPU frequency:: > + > + cpupower frequency-set -g userspace > + > +Compile DPDK with telemetry enabled, enable telemetry lib in configurati= on > file:: > + > + -CONFIG_RTE_LIBRTE_TELEMETRY=3Dn > + +CONFIG_RTE_LIBRTE_TELEMETRY=3Dy > + > + > +Test Case 1 : Check all 3 type of power related info reported by > +Telemetry System > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > =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. Launch l3fwd-power sample with telemet= ry enabled, bind > +one NIC to DPDK driver, launch l3fwd-power:: > + > + ./l3fwd-power -l 1-2 -n 4 --telemetry -- -p 0x1 -P > + --config=3D"(0,0,2)" --telemetry > + > +2. Get the telemetry info using dpdk-telemetry-client.py script, then > choose mode 3 ``Send for global Metrics``:: > + > + python usertools/dpdk-telemetry-client.py /var/run/some_client > + > +3. Check the returned info include "empty_poll", "full_poll", > "busy_percent", as following:: > + > + { > + "port": 4294967295, > + "stats": [ > + { > + "name": "empty_poll", > + "value": 1705624132 > + }, > + { > + "name": "full_poll", > + "value": 4275898 > + }, > + { > + "name": "busy_percent", > + "value": 0 > + }] > + } > + > +Test Case 2 : Check busy_percent with different injected throughput > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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. Using step1~3 in test case 1. > + > +2. Inject packets with line rate with 64 bit frame size, check the > busy_percent returned, it should be no-zero number. > + > +3. Stop the injected packet stream, check the busy_percent returned, it > should be 0. > -- > 2.21.0