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

Stephen Hemminger stephen at networkplumber.org
Fri Apr 29 21:03:26 CEST 2022


On Fri, 29 Apr 2022 14:52:03 -0400
Don Wallwork <donw at xsightlabs.com> wrote:

> >>>>
> >>>> The expectation is that use of this optional feature would be limited to cases where the performance gains justify the implications of these tradeoffs. For example, a specific data plane application may be okay with limited stack size and could be tested to ensure stack usage remains within limits.  
> > How to identify the required stack size and verify it... If aiming for small stacks, some instrumentation would be nice, like rte_mempool_audit() and rte_mempool_list_dump().  
> Theoretically, a region of memory following the stack could be populated 
> with a poison pattern that could be audited.   Not as robust as hw 
> mprotect/MMU, but it could provide some protection.
> >

Usually just doing mmap(.., PROT_NONE) will create a page that will cause SEGV on access
which is what  you want.


More information about the dev mailing list