Increasing tcache small bin sizes
Hi, I noticed that when the total amount of allocated small chunks exceeds the bins depth, I can substantial performance overheads which seems due to increases of instruction count which is 8 times higher, I can see that the functions contribute to the extra overheads were mainly due to bin_small_flush, bin_small_full, and mutex_try_lock, and some extent related functions. It seems the tcache bin is being drained out at request and being overfill so that it has to flush. So I'm thinking to increase the depth of the tcache bin. I assume the default tcache small bin depth is 32, I wonder is there anyway that I can configure it to be higher? I couldn't find any configuration option that allow me to increase the depth.
Source: jemalloc/jemalloc