mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-15 17:36:21 +03:00
Tcache: Add tcache gc delay option.
This can reduce flushing frequency for small size classes.
This commit is contained in:
parent
d338dd45d7
commit
ee72bf1cfd
4 changed files with 99 additions and 27 deletions
|
|
@ -1393,6 +1393,10 @@ malloc_conf_init_helper(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS],
|
|||
"tcache_gc_incr_bytes", 1024, SIZE_T_MAX,
|
||||
CONF_CHECK_MIN, CONF_DONT_CHECK_MAX,
|
||||
/* clip */ true)
|
||||
CONF_HANDLE_SIZE_T(opt_tcache_gc_delay_bytes,
|
||||
"tcache_gc_delay_bytes", 0, SIZE_T_MAX,
|
||||
CONF_DONT_CHECK_MIN, CONF_DONT_CHECK_MAX,
|
||||
/* clip */ false)
|
||||
|
||||
/*
|
||||
* The runtime option of oversize_threshold remains
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue