Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lkl: decrease stack size of thread_create to PTHREAD_STACK_MIN
By default, each pthread has 8MB stack. LKL creates 20+ threads at startup which consumes 160MB alone. This commit decreases it to PTHREAD_STACK_MIN (16 KB) which is enough to run linux kernel code. kernel stack on x86_64 is 2 pages (8 KB). Tested: MALLOC_ARENA_MAX=1 ./bin/lkl-hijack.sh sleep 1000 pmap virt mem: 287MB vs 115 MB Signed-off-by: Yuan Liu <liuyuan@google.com>
- Loading branch information