[PATCH v8 5/5] eal: add lcore usage telemetry endpoint
Morten Brørup
mb at smartsharesystems.com
Thu Feb 2 15:00:44 CET 2023
> From: Robin Jarry [mailto:rjarry at redhat.com]
> Sent: Thursday, 2 February 2023 14.43
>
> 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
> ]
> }
> }
>
> Signed-off-by: Robin Jarry <rjarry at redhat.com>
> Reviewed-by: Kevin Laatz <kevin.laatz at intel.com>
> ---
Acked-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list