mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-10 07:47:26 +03:00
Pre-generate ncached_max for all bins for better tcache_max tuning experience.
This commit is contained in:
parent
36becb1302
commit
6b197fdd46
12 changed files with 417 additions and 308 deletions
|
|
@ -31,6 +31,8 @@ struct tcache_slow_s {
|
|||
|
||||
/* The arena this tcache is associated with. */
|
||||
arena_t *arena;
|
||||
/* The number of bins activated in the tcache. */
|
||||
unsigned tcache_nbins;
|
||||
/* Next bin to GC. */
|
||||
szind_t next_gc_bin;
|
||||
/* For small bins, fill (ncached_max >> lg_fill_div). */
|
||||
|
|
@ -55,8 +57,6 @@ struct tcache_slow_s {
|
|||
|
||||
struct tcache_s {
|
||||
tcache_slow_t *tcache_slow;
|
||||
unsigned tcache_nhbins;
|
||||
size_t tcache_max;
|
||||
cache_bin_t bins[TCACHE_NBINS_MAX];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue