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

2022-05-16 Thread Don Wallwork
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 b

Re: [PATCH v3] eal: allow worker lcore stacks to be allocated from hugepage memory

2022-05-16 Thread Stephen Hemminger
On Mon, 16 May 2022 15:50:04 -0400 Don Wallwork wrote: > +static int > +eal_parse_huge_worker_stack(const char *arg, size_t *huge_worker_stack_size) > +{ > + size_t worker_stack_size; > + char *end; > + if (arg == NULL || arg[0] == '\0') { > + *huge_worker_stack_size = WO

Re: [PATCH v3] eal: allow worker lcore stacks to be allocated from hugepage memory

2022-05-16 Thread Don Wallwork
On 5/16/2022 4:28 PM, Stephen Hemminger wrote: On Mon, 16 May 2022 15:50:04 -0400 Don Wallwork wrote: +static int +eal_parse_huge_worker_stack(const char *arg, size_t *huge_worker_stack_size) +{ + size_t worker_stack_size; + char *end; + if (arg == NULL || arg[0] == '\0') {