vlib: mmap process stacks 84/27184/4
authorDamjan Marion <damarion@cisco.com>
Wed, 20 May 2020 20:01:44 +0000 (22:01 +0200)
committerDamjan Marion <damarion@cisco.com>
Wed, 20 May 2020 20:01:44 +0000 (22:01 +0200)
commitef58758286e84d227377c447c7cf8fae82bdca94
tree2bf2dd5acd8b2c733487f5749b95faa859bb225f
parentca86c95a3413214110a03b001d45d018385b92dc
vlib: mmap process stacks

Instead of allocating stack from the main heap, this patch mmaps stack
memory together with guard page.

This aproach reduces main heap usage, and stack memory is prefaulted
on demand, so bigger process stacks will have zero impact on memory
usage as long as stack memory is not needed for real.

In addition, it fixes issue with systems which have bigger default page
size (observed with 65536).

Type: improvement
Change-Id: I593365c603d4702e428967d80fd425fdee2c4a21
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vlib/CMakeLists.txt
src/vlib/config.h.in
src/vlib/node.c
src/vlib/node.h