From f1f4ec315a1831612f6d66b62be55a323fa94312 Mon Sep 17 00:00:00 2001 From: David Goldblatt Date: Wed, 8 Jul 2020 15:50:23 -0700 Subject: [PATCH] Tcache: Tweak nslots_max tuning parameter. In making these settings configurable, 634afc4124100b5ff11e892481d912d56099be1a unintentially changed a tuning parameter (reducing the "goal" max by a factor of 4). This commit undoes that change. --- src/tcache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tcache.c b/src/tcache.c index b73fd0dd..a33d9e24 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -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