]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: Increase tcache fill count from 16 to 32 fw/malloc-batch-unsorted-basic
authorFlorian Weimer <fweimer@redhat.com>
Thu, 18 Dec 2025 09:15:38 +0000 (10:15 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 30 Jun 2026 07:07:19 +0000 (09:07 +0200)
This avoids a regression in the omnetpp and xalancbmk benchmarks
of SPEC.  Apparently, these benchmarks are very sensitive to the
fill rate in malloc.

Suggested-by: Wilco Dijkstra <wilco.dijkstra@arm.com>
Tested-by: Wilco Dijkstra <wilco.dijkstra@arm.com>
malloc/malloc.c

index 3505158ac0f0c9ab3547d5886992853851eed60e..61be8fe6bb27fd7369f32b74db9fbb070a33d69a 100644 (file)
@@ -306,7 +306,7 @@ verify (PTRDIFF_MAX <= SIZE_MAX / 2);
 
 /* This is another arbitrary limit, which tunables can change.  Each
    tcache bin will hold at most this number of chunks.  */
-# define TCACHE_FILL_COUNT 16
+# define TCACHE_FILL_COUNT 32
 
 /* Maximum chunks in tcache bins for tunables.  This value must fit the range
    of tcache->num_slots[] entries, else they may overflow.  */