From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by sourceware.org (Postfix) with ESMTPS id 1EC013858404 for ; Wed, 9 Aug 2023 22:20:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1EC013858404 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=owlfolio.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=owlfolio.org Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3D08A5C009E; Wed, 9 Aug 2023 18:20:53 -0400 (EDT) Received: from imap45 ([10.202.2.95]) by compute1.internal (MEProxy); Wed, 09 Aug 2023 18:20:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1691619653; x=1691706053; bh=eC BsgIPb5cHBfU5JsqTFuG4Rtkui3/Vu9mvdwzoLgBg=; b=ePM30Y4MntnKJldVKB +uyUKMyW93nm3MzJwxsez9a2ejXOksVqt3ACc4A8Ts98jciwez2+5qXDBqUxj09M lVHRVao0SSQYxGkfV8iUqCj8PtA5D4WgVC5MrbG0Kfh0SaqAI6t0IArivlG+fcrO BvFOHgBlDQOMpcM7U+aDIeqcmPVhufpXGDlK1KkQSSlHvhwkSpaVXzyfwP8+Fh6Q NML4tC2kzUYeNEkZkM6EzoNeuHQdKeHbhWubx/3FF9tCTlJYt7Qy+NrDiqljlhx5 AG33sDZPhd2Wbhm8/W9tMrg8vezQmkNKYiAU9mSEIxDietX6OFPxWSpZ4w2B47qF 2NjA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1691619653; x=1691706053; bh=eCBsgIPb5cHBf U5JsqTFuG4Rtkui3/Vu9mvdwzoLgBg=; b=NTvqwm9y7AKa7qj1ozPazZQY9nNjD 9tGHufmj04QCDPjMAs8tw+1AdiWJ/4DNJDx5SPGSjZPlFd00ymQkom7ZVYFhDZw8 aBn8CsDn4bK+qxnj7t+vn80QT5jMq6eX30/OK4oysDMpY+6XywCN0Q/xFvGonJku lbA6lr5mxciU2z/N7566gf/NgZJNOK/1Kkl2cI+Zp7aGS705RRRZneG7G+ck80cQ tFM/SQeDJq3gYpb+XWzgMrbNfrvQmuqd/guK0iOmFA2f58WgXKNP9iRpl+RfDDJA J3NsW+pzAeUVCFCnrX8Ew3dB3cRqdsE6TaOBfeM7pOFvCA3qSilQnygbw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleehgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdgkrggt khcuhggvihhnsggvrhhgfdcuoeiirggtkhesohiflhhfohhlihhordhorhhgqeenucggtf frrghtthgvrhhnpefhleefheduhfelgeehgeejveehueeihedvgfeuueetteelieeiteeh fefhleduieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpeiirggtkhesohiflhhfohhlihhordhorhhg X-ME-Proxy: Feedback-ID: i876146a2:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D02E5272007B; Wed, 9 Aug 2023 18:20:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-624-g7714e4406d-fm-20230801.001-g7714e440 Mime-Version: 1.0 Message-Id: <04c5dca3-4e3c-4e46-a13f-e402637c15f3@app.fastmail.com> In-Reply-To: References: Date: Wed, 09 Aug 2023 18:20:31 -0400 From: "Zack Weinberg" To: "DJ Delorie" , "Florian Weimer" Cc: "GNU libc development" , toolybird@tuta.io Subject: Re: [PATCH] malloc: Enable merging of remainders in memalign (bug 30723) Content-Type: text/plain X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Aug 9, 2023, at 5:58 PM, DJ Delorie via Libc-alpha wrote: > I would note that everything else malloc does has this problem, too. > Without limits or checks on fastbin size, anything that puts a chunk > on the fastbin could "permanently" block consolidation somewhere. This might also be a change you would only feel comfortable making if we had a more robust test/bench suite, but could we have a more aggressive consolidation pass, capable of pulling stuff back out of the fastbins, that was triggered at least some fraction of the times we think we need to expand the heap? zw