Add struct fiber_pool {int free_stacks;} to control usage of madvise.
madvise(free) and similar operations are good because they avoid swap usage by clearing the dirty bit on memory pages which are mapped but no longer needed. However, there is some performance penalty if there is no memory pressure. Therefore, we do it by default, but it can be avoided.
Add
struct fiber_pool {int free_stacks;}to control usage of madvise.madvise(free)and similar operations are good because they avoid swapusage by clearing the dirty bit on memory pages which are mapped but no
longer needed. However, there is some performance penalty if there is no
memory pressure. Therefore, we do it by default, but it can be avoided.