eal/linux: allocate worker lcore stacks in hugepages
authorDon Wallwork <donw@xsightlabs.com>
Thu, 23 Jun 2022 11:21:27 +0000 (07:21 -0400)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 23 Jun 2022 20:36:33 +0000 (22:36 +0200)
commit42fbb8e85d1f0b6c1d397d4e7559bc5877ba985e
treedbc174b7a995c6c67a1b86c409ac236998e05fc1
parente1522b328c6a86d0c04b368961cfeb87fae95237
eal/linux: allocate worker lcore stacks in hugepages

Add support for using hugepages for worker lcore stack memory. The
intent is to improve performance by reducing stack memory related TLB
misses and also by using memory local to the NUMA node of each lcore.

EAL option '--huge-worker-stack[=stack-size-in-kbytes]' is added to allow
the feature to be enabled at runtime. If the size is not specified,
the system pthread stack size will be used.

Signed-off-by: Don Wallwork <donw@xsightlabs.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
app/test/test_eal_flags.c
doc/guides/linux_gsg/eal_args.include.rst
doc/guides/prog_guide/env_abstraction_layer.rst
lib/eal/common/eal_common_options.c
lib/eal/common/eal_internal_cfg.h
lib/eal/common/eal_options.h
lib/eal/linux/eal.c