From patchwork Wed Jul 1 13:39:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 138209 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C729E4BA2E16 for ; Wed, 1 Jul 2026 13:39:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C729E4BA2E16 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=bnbIbWPZ X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 3F40A4BA2E16 for ; Wed, 1 Jul 2026 13:39:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3F40A4BA2E16 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3F40A4BA2E16 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1782913162; cv=none; b=u6Aqfr7TQ85R5qX6Lab8yARp1nKe8t7RspPXDqxYaZAnI+QpjlZr6rF+gRpPlpofte2dVCgDEhpS6OteH3/jPDJ7hRnUQ1RYk1pP20eshMpHvWKn6POxI+sYwMibxttdNDVmjjIUUpVquOk157trXaxFQgaRYBo+cl3+mXoUZ0I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1782913162; c=relaxed/simple; bh=4F+cost7fnfm9z9SZf4ZbZi5eGfULcexjpH8qalj7sA=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=S0UE5NJrgMAFWEYMkzS7RQfjM+F70GhWnJz/zdF1tHwrNyBE3ZghliNVwYGLSFdF6qjD45VU3jElntTtge8Vrl3KmO3nl2I2x9azxgOEvjVyyFvTUeaqlu4BOJfWuotTHAZxbAieP4vn3XW55IjrbfcsYc32Ei0+3cM1EDnOUpU= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=bnbIbWPZ DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F40A4BA2E16 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1782913162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=A0Val5tMWd0ov3M6Uxn1RNEaOizactnNuR9+BjCGadQ=; b=bnbIbWPZK6NLePc0g81xDczWrkCCy11LYUxlap314I2qTGXG3W+sKDVs/TKgwpTbabEVI4 LxHqMw9cmMQ1bjRtpSjmh/CpJAMq4M0NeZtv4SJmXxsjsHkcZ34ESc4Ba4Z1xbiab6a3RD sTPBBRSMoJGq/uMrVvQr1tssCCmqH7Q= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-500--Nl43_d3MHC6at5_DyB_gQ-1; Wed, 01 Jul 2026 09:39:20 -0400 X-MC-Unique: -Nl43_d3MHC6at5_DyB_gQ-1 X-Mimecast-MFC-AGG-ID: -Nl43_d3MHC6at5_DyB_gQ_1782913160 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 179FD184B0AF for ; Wed, 1 Jul 2026 13:39:20 +0000 (UTC) Received: from fweimer-oldenburg.csb.redhat.com (unknown [10.44.32.220]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 600413000C2B for ; Wed, 1 Jul 2026 13:39:19 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 3/4] malloc: Increase tcache fill count from 16 to 32 In-Reply-To: Message-ID: References: X-From-Line: caf71948871bae183861116341705e25e808b335 Mon Sep 17 00:00:00 2001 Date: Wed, 01 Jul 2026 15:39:07 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 4B7XAc1Srk2rL2olwBNCacWdEtXVc3sNF8mBtX5AefA_1782913160 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org 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 Tested-by: Wilco Dijkstra --- malloc/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/malloc/malloc.c b/malloc/malloc.c index 3505158ac0..61be8fe6bb 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -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. */