Tcache: Tweak nslots_max tuning parameter.

In making these settings configurable, 634afc4124
unintentially changed a tuning parameter (reducing the "goal" max by a factor of
4).  This commit undoes that change.
This commit is contained in:
David Goldblatt 2020-07-08 15:50:23 -07:00 committed by Yinan Zhang
parent ae541d3fab
commit f1f4ec315a

View File

@ -25,12 +25,12 @@ unsigned opt_tcache_nslots_large = 20;
/*
* We attempt to make the number of slots in a tcache bin for a given size class
* equal to the number of objects in a slab times some multiplier. By default,
* the multiplier is 1/2 (i.e. we set the maximum number of objects in the
* tcache to half the number of objects in a slab).
* the multiplier is 2 (i.e. we set the maximum number of objects in the tcache
* to twice the number of objects in a slab).
* This is bounded by some other constraints as well, like the fact that it
* must be even, must be less than opt_tcache_nslots_small_max, etc..
*/
ssize_t opt_lg_tcache_nslots_mul = -1;
ssize_t opt_lg_tcache_nslots_mul = 1;
/*
* Number of allocation bytes between tcache incremental GCs. Again, this