From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13153 Path: news.gmane.org!.POSTED!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: malloc implementation survey: omalloc Date: Thu, 30 Aug 2018 13:16:27 -0500 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: <07695a41-d027-a585-fa2f-5edae4d23af4@adelielinux.org> References: <20180729192618.GA22386@voyager> <20180731004728.GD1392@brightrain.aerifal.cx> <20180731014407.GE1392@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="C9f8mFjf2pCXEP2mEBmduPHYexZjQypMS" X-Trace: blaine.gmane.org 1535652770 3064 195.159.176.226 (30 Aug 2018 18:12:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2018 18:12:50 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux ppc64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: musl@lists.openwall.com Original-X-From: musl-return-13169-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 30 20:12:46 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fvRQz-0000gt-Ps for gllmg-musl@m.gmane.org; Thu, 30 Aug 2018 20:12:45 +0200 Original-Received: (qmail 30607 invoked by uid 550); 30 Aug 2018 18:14:53 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 30585 invoked from network); 30 Aug 2018 18:14:53 -0000 Openpgp: preference=signencrypt In-Reply-To: <20180731014407.GE1392@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:13153 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --C9f8mFjf2pCXEP2mEBmduPHYexZjQypMS Content-Type: multipart/mixed; boundary="BzNIETImEPTgwReTEwQVNxXmppeuhV75N"; protected-headers="v1" From: "A. Wilcox" To: musl@lists.openwall.com Message-ID: <07695a41-d027-a585-fa2f-5edae4d23af4@adelielinux.org> Subject: Re: [musl] malloc implementation survey: omalloc References: <20180729192618.GA22386@voyager> <20180731004728.GD1392@brightrain.aerifal.cx> <20180731014407.GE1392@brightrain.aerifal.cx> In-Reply-To: <20180731014407.GE1392@brightrain.aerifal.cx> --BzNIETImEPTgwReTEwQVNxXmppeuhV75N Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 07/30/18 20:44, Rich Felker wrote: > One thing that would probably be really useful is empirical data on > what range of sizes "need to be fast" for bloated OO stuff that does > rapid malloc/free cycles. Conceptually it should only be small sizes, > assuming the whole allocated space is actually used, since beyond a > certain size, actual use of the allocated memory (loads/stores) will > dominate the time spent allocating and freeing it, but the cutoff > isn't clear. >=20 > Rich >=20 I can probably instrument the malloc() patterns of Firefox and Plasma Shell. Can you provide me the desired format? I would probably simply change musl to print "a:%lld\n" to stderr for each allocation, and then I could turn it into better formatted data. Best, --arw --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux http://adelielinux.org --BzNIETImEPTgwReTEwQVNxXmppeuhV75N-- --C9f8mFjf2pCXEP2mEBmduPHYexZjQypMS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjNyWOYPU1SaTSMHHyynLUZIrnRQFAluINHsACgkQyynLUZIr nRQCyBAAt/yRHxM+2RCzWlAWXzdwSJnRKCftiv5C/metrBmIQXP8axXV9WAMKCWJ cpRcFknR55t6oI7BbU0stgRA8FDCoAf5K8GGiHVbGG1ddVvvgKrPUUdglInAbFYJ RiRj4z86jnhni8AnLMYcXpFa6tWsg9Z8ENvDVBlxBI8z2I/ufaCu6DmXr86M5OdQ CBEsasCEtpaYszm5Hua9Uc3rYUoVNm5ONpxBDpd3eNBTRJetjgZssyCgSq/yRHoo ZaAVF0c4W5FSFjjnsVn793dtgSvhTheiu0DbVpBFwGA1MiAwU0SC2FhzU1DXlsq+ S8s3vp3LpnCEzjNtFXnxkxeoQrd06O2gUmyTCgbRMrRWuGK3Hlg7WyeLX9hVrWW+ X1L/bBtI14IJRfE0/IOrtiEO65S6IPdp3VN1LYmkz09FydHVzhr6VNOUOqIfyWaO EW7EDBC4KuJZdlNW2APlLRU5CMD0mcw5udkPljxYvqM7Wa/1nrWwLBnXlXGpzTNE dAPZVN7t1R2GHtZsmI5tmpLwZK7dDIiY2FynX0LiY4vYMjLCFuXVWkmVU5S5mNIK 5DYnrbBVuPdMSG1006Zao5MAPkakGcXRlrw1N0ooc2rwn8wm95VI5I65Pox8Hftg y/tjCCTGen4ti770mi9H04m8wUG49kXBX9tjbrFhRqV4ya6aP28= =+k/S -----END PGP SIGNATURE----- --C9f8mFjf2pCXEP2mEBmduPHYexZjQypMS--