diff options
author | Samuel Williams <[email protected]> | 2019-07-16 16:00:35 +1200 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2019-07-18 20:54:55 +1200 |
commit | 385ea910fc28f0e46c72669a260e44d4f3f37d9e (patch) | |
tree | 7e37ba55d0be202d2ff6b2c14be2ab5818027f6a /coroutine/x86/Context.h | |
parent | 4d60a5820ae2c7bc2ce5bee441b834129a3a56e1 (diff) |
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.
Diffstat (limited to 'coroutine/x86/Context.h')
0 files changed, 0 insertions, 0 deletions