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 79AC341BAE; Thu, 2 Feb 2023 15:00:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 62FC942FC4; Thu, 2 Feb 2023 15:00:52 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id CCF2242F96 for ; Thu, 2 Feb 2023 15:00:50 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH v8 5/5] eal: add lcore usage telemetry endpoint Date: Thu, 2 Feb 2023 15:00:44 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D876F5@smartserver.smartshare.dk> In-Reply-To: <20230202134329.539625-6-rjarry@redhat.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v8 5/5] eal: add lcore usage telemetry endpoint Thread-Index: Adk3DHhu0uUW+iPwRS6mcQxCZUtyqgAAjREQ References: <20221123102612.1688865-1-rjarry@redhat.com> <20230202134329.539625-1-rjarry@redhat.com> <20230202134329.539625-6-rjarry@redhat.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Robin Jarry" , Cc: "Kevin Laatz" 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 > From: Robin Jarry [mailto:rjarry@redhat.com] > Sent: Thursday, 2 February 2023 14.43 >=20 > 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. >=20 > 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. >=20 > Example: >=20 > --> /eal/lcore/usage > { > "/eal/lcore/usage": { > "lcore_ids": [ > 4, > 5 > ], > "total_cycles": [ > 23846845590, > 23900558914 > ], > "busy_cycles": [ > 21043446682, > 21448837316 > ] > } > } >=20 > Signed-off-by: Robin Jarry > Reviewed-by: Kevin Laatz > --- Acked-by: Morten Br=F8rup