From 0b9210bd760b5281f2e9f3e6640368ccb5f4a7ae Mon Sep 17 00:00:00 2001 From: Dev Jain Date: Wed, 10 Dec 2025 15:03:22 +0000 Subject: [PATCH] malloc: set default tcache fill count to 16 Now that the fastbins are gone, set the default per size class length of tcache to 16. We observe that doing this retains the original performance of malloc. Reviewed-by: DJ Delorie --- malloc/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/malloc/malloc.c b/malloc/malloc.c index eaf3fc36ca..08ca1879ac 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -314,7 +314,7 @@ /* This is another arbitrary limit, which tunables can change. Each tcache bin will hold at most this number of chunks. */ -# define TCACHE_FILL_COUNT 7 +# define TCACHE_FILL_COUNT 16 /* Maximum chunks in tcache bins for tunables. This value must fit the range of tcache->num_slots[] entries, else they may overflow. */ -- 2.47.3