[dpdk-dev] [PATCH] eal: add option --avail-cores to detect lcores
Panu Matilainen
pmatilai at redhat.com
Tue Mar 8 09:54:49 CET 2016
On 03/04/2016 12:05 PM, Jianfeng Tan wrote:
> This patch adds option, --avail-cores, to use lcores which are available
> by calling pthread_getaffinity_np() to narrow down detected cores before
> parsing coremask (-c), corelist (-l), and coremap (--lcores).
>
> Test example:
> $ taskset 0xc0000 ./examples/helloworld/build/helloworld \
> --avail-cores -m 1024
>
> Signed-off-by: Jianfeng Tan <jianfeng.tan at intel.com>
> Acked-by: Neil Horman <nhorman at tuxdriver.com>
Hmm, to me this sounds like something that should be done always so
there's no need for an option. Or if there's a chance it might do the
wrong thing in some rare circumstance then perhaps there should be a
disabler option instead?
Or am I just missing something?
- Panu -
More information about the dev
mailing list