From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B82B24241C; Thu, 19 Jan 2023 20:42:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 62A9742DAC; Thu, 19 Jan 2023 20:42:37 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id B004B410DD for ; Thu, 19 Jan 2023 20:42:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674157355; x=1705693355; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=r/U2jDWP1MkgCioZklmDo6h8AckdvSlTNIQQ+VxfmUg=; b=RLpb3ajvD1cuOZ9FjKBbj5OBLcwOHT+tR8AEf37jn+/5qXZAKLu3zE5x Fwl3Swuz1gFWyuWVGpqAcKRDwRyOHXP67jvLQj761g+NBF0yeERT/v2/J 3rdpM+IZAnBgmOSu71KVxTOrOI9yG7VJlpCd3jW7V76eQp/5Kxx7RAP6A 5rrDeoryUBPPeb23KnaMJwWwI5241APIOyV9Opj7U/IIpCdJplzR388/W gv0Ef/rQkY6xA4vPaHSt5VKVGK3kJPA4tKRy05h53s2ZYO2HsFzluH7Cd 6DYbhmiMT/mTBO7vVJpNS2EotVbTo+jOEvQL9pu64cV3m4AGLxAyxnsym w==; X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="411634001" X-IronPort-AV: E=Sophos;i="5.97,229,1669104000"; d="scan'208";a="411634001" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2023 11:42:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="653506627" X-IronPort-AV: E=Sophos;i="5.97,229,1669104000"; d="scan'208";a="653506627" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga007.jf.intel.com with ESMTP; 19 Jan 2023 11:42:34 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 19 Jan 2023 11:42:33 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 19 Jan 2023 11:42:33 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Thu, 19 Jan 2023 11:42:33 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.171) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Thu, 19 Jan 2023 11:42:33 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RmFZiA/E6ExfHL/giVb1fjN1mvmkefIIJse1HwKymz9lNFjNe5cSWKwRiVPc4SdZvLlR4KndR7OQ/2WPy4HAe2cbxyHJ2oySrlrb2Nd44uqnfV/pZL8VMp7dvlMLP5kD6LI+rRce70B0wGNWw5tUVimKXltv63JPRyJW/gXHxfTcxlQbrTLm6zSYYmn/Q15eVycDCR1WciNYGpVHFJb7VZ0VRhUDysu/QAYN6yf5M0ntmdH5vvuGMknT8hxsopvTNgcwgSjhZa6YayMjwn7v0k9Ip4hbYYHYaWTECC8EfGh4gid4UiDkxelA7TaECakP1/xJMk7lHl76r3emh3ZN8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WI5b2sc3xZOX+P/O25b8rrNBbHz1Eyy+jGGMZATeb2o=; b=oVjeBX757YggrR0oCsYBJSlcDigwAo+TngGnr6IrhBXqFY2fBh/GmWwWPZ36ZLPDVjPMrFCcWD1FxqiWeuWt9ODty8W0GGj9ohrQFnTcCVH7XSauEEIUUloryheSWVZ/1vZwx/ObzxLlen9b3BaR3d+82GvZajTBAZxF5VHpogT+KAkiWmYVLWgKwzFUCW88GhVIXftfsNrx556LgRf18CkQuXPA7K36g1+aFYQTwW2ijNKxveVB0VESsAdkkxj+oHXWBk/ifszzU557NYRDj+bdYoObzej3LtmzE6BviGch3Xg1DR7/TQs6IVBEEbFZxrrETWD0dbmjswhpLzA0cg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by PH0PR11MB5208.namprd11.prod.outlook.com (2603:10b6:510:3b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25; Thu, 19 Jan 2023 19:42:30 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::5f56:1bdc:2eae:c041]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::5f56:1bdc:2eae:c041%7]) with mapi id 15.20.6002.013; Thu, 19 Jan 2023 19:42:30 +0000 Message-ID: <62116db0-d37e-1c9c-a9e7-a4a05aa0dab9@intel.com> Date: Thu, 19 Jan 2023 19:42:24 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v6 5/5] telemetry: add /eal/lcore/usage endpoint Content-Language: en-US To: Robin Jarry , CC: Tyler Retzlaff , =?UTF-8?Q?Morten_Br=c3=b8rup?= References: <20221123102612.1688865-1-rjarry@redhat.com> <20230119150656.418404-1-rjarry@redhat.com> <20230119150656.418404-6-rjarry@redhat.com> From: Kevin Laatz In-Reply-To: <20230119150656.418404-6-rjarry@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0051.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:152::20) To MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR11MB5872:EE_|PH0PR11MB5208:EE_ X-MS-Office365-Filtering-Correlation-Id: 012eabe8-f4fc-4efb-6d74-08dafa554d64 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aDXcBgkJNnlXulBBowxUiKWcRqnRAqN0rZzkeyv/lte5ls6gGxTZCH3KVFCRk8Yqx1evi51qzjb9jfmsyJXkEn3AZOxxswZaglkpOlLkBIBFnYAI2czj1/qqMDNT/MIA3hcAJ8BOhOC3cnnIFh7nM7Jt+Z8DWysqka4BRF9K2W/iWKPuC+nLEydWKwqOeOG6p8G7jzRuvzy15sZFnGuraaIXVSEd1eEvZJhDG2VTHOtedSxO7IPFh9LwKa/210JeTJ0JKU2kaz3oBorT7tkqd0SDSlETRvV1u6kslsn7RwMR4pf4qUOuPxsIUzNYANxLtDBDNo3+6xFiuslzkmh7fXmznYiltqDoJSJh2Fhg5l0+kTYk3hYUsCqY0w7fJ6rif6Dh4rsGfGE7b+tKYe+JTRX98Aqe3TVWnGHnmZCTdWRLvVMBi+w6RpCtnWdOzbcY5p76G8IZ1OIFR4QzFUyIY+RqNc+OQXNAnFOA3a1eY2ELe5xSrFC072Faj2GMh7uhbCPohoMfLXbZZG2kKgtWJulWmQW83e5VT8OJYLoJF6tpMuZbgaBs3hSLwf9+j1vLU/bZYCplZL/sA/uWvq1EjpxPhJYk/9drnEtouXiw0+n9uZDx1HIEppmlUM8Dbc0yMv6y3JloORk6CB2XuT/rniDFeH/+P03fdOL3wgBHPcylOXgxOGv3pDEIxVsb7wEwEqg3gbtA3tGSMKIaOlP94STT2725eakhtKGYR17Pi2M= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5872.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(346002)(396003)(366004)(376002)(136003)(451199015)(86362001)(53546011)(6506007)(6486002)(31696002)(6666004)(478600001)(36756003)(8936002)(5660300002)(316002)(38100700002)(66946007)(82960400001)(66476007)(4326008)(66556008)(8676002)(26005)(6512007)(186003)(41300700001)(83380400001)(2906002)(54906003)(44832011)(66574015)(2616005)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZnNNM0JKSG4wSm9BaktsWTcyWTg1M1BrVElmWlgzSjUwQ1hlZmRUbEVpNml3?= =?utf-8?B?a2ordWhKZHd1MDJPQ2xWSStMNExBVkpIcFE3MlQvOEMwTlcrU2dZTnd4b1hu?= =?utf-8?B?VkpvQytNekRUVTVLR3c1azZLRW5EVmI0MEdpMkpQZFEvOHNSbnk4akthcVB1?= =?utf-8?B?OTJBMlh5YUIxYTlPejk2d1N5bGlwU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ZLeTAxUWwz?= =?utf-8?B?VmMwTVJYRFJhK3VuVWF4bllDa2dqc0Joai9IQ2gycEdpYjdSaTdtMmRabElk?= =?utf-8?B?WFNSTy9jRjk1SWNlZFhtamJlcDhmeGV1SThHSUU0eEY1aktuRlJpUU9JWEp0?= =?utf-8?Q?/UWt3jPv815Rn8cG1Z6bJfHgj?= X-MS-Exchange-CrossTenant-Network-Message-Id: 012eabe8-f4fc-4efb-6d74-08dafa554d64 X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 19:42:30.7355 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QqCROzpc4WiR0L+9/9AeM34u9yml7g6metynBxUaERxImqiPS7wa8Oep5C4RfQoQCDxgPeVDVh48LEopIsNP2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5208 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 19/01/2023 15:06, Robin Jarry wrote: > Allow fetching CPU cycles usage for all lcores with a single request. > This endpoint is intended for repeated and frequent invocations by > external monitoring systems and therefore returns condensed data. > > It consists of a single dictionary with three keys: "lcore_ids", > "total_cycles" and "busy_cycles" that are mapped to three arrays of > integer values. Each array has the same number of values, one per lcore, > in the same order. > > Example: > > --> /eal/lcore/usage > { > "/eal/lcore/usage": { > "lcore_ids": [ > 4, > 5 > ], > "total_cycles": [ > 23846845590, > 23900558914 > ], > "busy_cycles": [ > 21043446682, > 21448837316 > ] > } > } > > Cc: Kevin Laatz > Cc: Morten Brørup > Signed-off-by: Robin Jarry > --- > > Notes: > v6: new patch > > lib/eal/common/eal_common_lcore.c | 64 +++++++++++++++++++++++++++++++ > 1 file changed, 64 insertions(+) > Thanks for adding this! Reviewed-by: Kevin Laatz