b693c7868e
Added opt.background_thread to enable background threads, which handles purging currently. When enabled, decay ticks will not trigger purging (which will be left to the background threads). We limit the max number of threads to NCPUs. When percpu arena is enabled, set CPU affinity for the background threads as well. The sleep interval of background threads is dynamic and determined by computing number of pages to purge in the future (based on backlog). |
||
---|---|---|
.. | ||
cpp | ||
aligned_alloc.c | ||
allocated.c | ||
extent.c | ||
extent.sh | ||
MALLOCX_ARENA.c | ||
mallocx.c | ||
mallocx.sh | ||
overflow.c | ||
posix_memalign.c | ||
rallocx.c | ||
sdallocx.c | ||
thread_arena.c | ||
thread_tcache_enabled.c | ||
xallocx.c | ||
xallocx.sh |