From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by sourceware.org (Postfix) with ESMTPS id 02BD438618E2 for ; Mon, 28 Sep 2020 13:43:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 02BD438618E2 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Johannes.Schindelin@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601300582; bh=8BnbAK50IjtgOEQemXOqvMl1o+ID9egdxdg/0aARQ7E=; h=X-UI-Sender-Class:Date:From:To:cc:Subject:In-Reply-To:References; b=iIS5rLAekz/L0MU8LLzzeilDQFA6X7fsavVwZHjx/alzCTabzQZNErRFY16Iw1CT5 5CqieEKFceqkADxk6O2yg0jelWnByg+3GR7RN2JTreaePjGJ6+C2F6XPj2+iKpqt3/ 2l5EFE/esqk5l5+8p0zZUMi05R1J24HYNkeUxBUs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [172.19.113.174] ([89.1.212.27]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N0oBr-1kajYZ2njx-00wn0K; Mon, 28 Sep 2020 15:43:02 +0200 Date: Sun, 27 Sep 2020 18:54:36 +0200 (CEST) From: Johannes Schindelin X-X-Sender: virtualbox@gitforwindows.org To: Mark Geisert cc: cygwin-developers@cygwin.com Subject: Re: Cygwin malloc tune-up status In-Reply-To: <067987e2-e958-b56c-efea-25d827568453@maxrnd.com> Message-ID: References: <067987e2-e958-b56c-efea-25d827568453@maxrnd.com> User-Agent: Alpine 2.21.1 (DEB 209 2017-03-23) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Provags-ID: V03:K1:NQ6RXEB58CZMseXeQY4Ek0hhn3nGl2qPFf/RPiy07VZDleLH9i3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d2eVux96Pi5kPbs+k8e2DYM2cbyWaC2 3uF0jWYcXyZDM9Lq1f9JjLh+P2r6rbXcScwtVFa32QNDlTnqo3rM0mN2weq5LNwxl8Qtbczl+ LrnukCjyGYOBJ9NniYFGrpG2LYVZbg3pX/brjGpY18Q83D8NRaQ17iQAGSDoRQVUqk9MjgzSg KLz0Af9VeJXiOG/zPTevFKrpJ42oTD2HWelbbnyJhv8N5//J+O4pPcPSuIN6n6z4BCHXIpmiP vwDBQKps/FHrFXr60c9HNB47kzsgg818yo5ZSEbi2YacOrTMS5PdvNTDlMGp4vWurcr36GkBU SVfBWGiWlSH/YYkb/UsKX+iidJ6/y8UngoKj26fw69NwXAM+NOF/RdrAVmOfi8Wo+BaRNV1eS 5JBUCoAsAh0v0OD+Fdu84a5siWD2QorpaNgMDjA== Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DATE_IN_PAST_12_24, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2020 13:43:41 -0000 Hi Mark, On Thu, 24 Sep 2020, Mark Geisert wrote: > I've been looking into two potential enhancements of Cygwin's malloc ope= ration > for Cygwin 3.2. The first is to replace the existing function-level loc= king > with something more fine-grained to help threaded processes; the second = is to > implement thread-specific memory pools with the aim of lessening lock ac= tivity > even further. > > Although I've investigated several alternative malloc packages, includin= g > ptmalloc[23], nedalloc, and Windows Heaps, only the latter seems to impr= ove on > the performance of Cygwin's malloc. Unfortunately using Windows Heaps w= ould > require fiddling with undocumented heap structures to enable use with fo= rk(). > I also looked at BSD's jemalloc and Google's tcmalloc. Those two requir= e much > more work to port to Cygwin so I've back-burnered them for the time bein= g. I am just a lurker when it comes to your project, but I wonder whether you had any chance to look into mimalloc (https://github.com/microsoft/mimalloc)? I had investigated it in Git for Windows' context for a while (because nedmalloc, which is used by Git for Windows, is no longer actively maintained). Ciao, Dscho