From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by sourceware.org (Postfix) with ESMTPS id DFB5C384C927 for ; Tue, 6 Dec 2022 14:32:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DFB5C384C927 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.west.internal (Postfix) with ESMTP id 43A1B3200906 for ; Tue, 6 Dec 2022 09:32:02 -0500 (EST) Received: from imap45 ([10.202.2.95]) by compute1.internal (MEProxy); Tue, 06 Dec 2022 09:32:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h= cc: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=fm3; t=1670337121; x=1670423521; bh=0/Mm83sLjS u87S2aki+o+lXuv5UwQHrYwLURHR9TUWk=; b=0f/29x427oWTr8jlpgjBlRi79x y+eZ7nPTg8npypsug7iHw0EfHarj0a8NbzEiSLoW1vt8ZaAKSlHACIPdC3FpTESO zmePh8KxRhb82F68GhuMk4k07jxqESAZlIbfvc5mDdOtCx+8idWno6iEkgklCd0i 05r2RqkBespTpmW73CfsUMPoqbFJOC19TcGPlhGPDF+1Xdf2HeA0C+4zJkn9zGha NqwU6V2coWWwKst7zUlN0dfJxhv4ZjS4jHhFnSr9ca+64pX5gbRQiGedVYdLcc24 Uky42NyMmnQaItD88S05RXqDckdACrEmNHI/lzsLjY8XA/qZd6o8zyvq4ejw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= fm1; t=1670337121; x=1670423521; bh=0/Mm83sLjSu87S2aki+o+lXuv5Uw QHrYwLURHR9TUWk=; b=e51I/4rMeW/X3gbOtAosGTLsBpi4iA1In8pbvn4Jl9AH h4MhsFjnJGeuvbtHz3+pfBt9gzyU6sERNCh/A/02R2K0coFjBFGrmKr00filp7we d7MRLClzsxOEPge8uAouP1wG/hVl4MyJW5ptcHU32cTm+tupobKg0F9gPxpXeS5X dVqQBaUtW38kPQUlHMqO26tCz5Mth27CVn1AFcBT+bN1CFYlRmPGr3PWuNoHlPP5 ++gC/OUccnhcKrqmq858y8aBuvKxKpR5blgW0+SRDW8fkNxKjTC1+NPaa/Ed8JRl 9nIWPDtWElaYd69/AU7nURKZ4jWWW90VRZZS+31bJg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeigdeihecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfkggrtghk ucghvghinhgsvghrghdfuceoiigrtghksehofihlfhholhhiohdrohhrgheqnecuggftrf grthhtvghrnhepfeelvdetudetfeelgfefledujeeutdduudegueeifefggfetvdfggfel gfeffeeknecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeiirggtkhesohiflhhfohhlihhordho rhhg X-ME-Proxy: Feedback-ID: i876146a2:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5BE7F272007A; Tue, 6 Dec 2022 09:32:01 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: In-Reply-To: <69d79a25-17a3-d63c-1b93-b941f782449a@linaro.org> References: <69d79a25-17a3-d63c-1b93-b941f782449a@linaro.org> Date: Tue, 06 Dec 2022 09:31:40 -0500 From: "Zack Weinberg" To: "GNU libc development" Subject: Re: [PATCH] malloc: Use correct C11 atomics for fastbin Content-Type: text/plain X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,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 Tue, Dec 6, 2022, at 8:37 AM, Adhemerval Zanella Netto via Libc-alpha wrote: >>> Every time we start talking about fastbins vs tcache again I start >>> wondering, again, what's stopping us from replacing the entire malloc >>> implementation with jemalloc, or any other implementation designed less >>> than 20 years ago. >> >> I can't see any technical reason why not. It's either that or completely rewriting >> the current implementation and getting rid of decades of accumulated cruft... >> >> Modern allocators are not only much faster than GLIBC in their default settings >> but also have lower memory usage. The two best allocators seem to be mimalloc >> and jemalloc. > > > Do they have compatible license so we can just import/adapt the code? Per https://github.com/jemalloc/jemalloc/blob/dev/COPYING jemalloc is 2-clause BSD. I don't know where to find mimalloc off the top of my head. zw