Project

General

Profile

« Previous | Next » 

Revision 385ea910

Added by Samuel Williams over 6 years ago

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.