[RFC] eal: allow worker lcore stacks to be allocated from hugepage memory

Stephen Hemminger stephen at networkplumber.org
Tue Apr 26 16:58:58 CEST 2022


On Tue, 26 Apr 2022 08:19:59 -0400
Don Wallwork <donw at xsightlabs.com> wrote:

> 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.
> 
> Platforms desiring to make use of this capability must enable the
> associated option flag and stack size settings in platform config
> files.
> ---
>  lib/eal/linux/eal.c | 39 +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 39 insertions(+)
> 

Good idea but having a fixed size stack makes writing complex application
more difficult. Plus you lose the safety of guard pages.


More information about the dev mailing list