examples/distributor: detect high frequency cores
authorDavid Hunt <david.hunt@intel.com>
Mon, 1 Apr 2019 16:14:41 +0000 (17:14 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 2 Apr 2019 00:22:32 +0000 (02:22 +0200)
commitf73477e276720dc0fdb4ce8da130a2ab1c963846
tree18deb250ddee378608b4e863c875f5838f6d4602
parentb60fd5f8b1ce8f0a2cf6ceb1e690c07977660bd0
examples/distributor: detect high frequency cores

The distributor application is bottlenecked by the distributor core,
so if we can give more frequency to this core, then the overall
performance of the application may increase.

This patch uses the rte_power_get_capabilities() API to query the
cores provided in the core mask, and if any high frequency cores are
found (e.g. Turbo Boost is enabled), we will pin the distributor
workload to that core.

Signed-off-by: Liang Ma <liang.j.ma@intel.com>
Signed-off-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
examples/Makefile
examples/distributor/main.c
examples/distributor/meson.build