From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1Dx9HW-0003Nr-IZ for garchives@archives.gentoo.org; Mon, 25 Jul 2005 20:10:34 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6PK8T3r024404; Mon, 25 Jul 2005 20:08:29 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6PK8SrX002208 for ; Mon, 25 Jul 2005 20:08:29 GMT Received: from localhost ([127.0.0.1]) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1Dx9FP-0005KT-F3; Mon, 25 Jul 2005 20:08:28 +0000 Subject: Re: [gentoo-amd64] x86_64 optimization patches for glibc. From: Jeremy Huddleston To: gentoo-amd64@lists.gentoo.org Cc: simon.strandman@telia.com In-Reply-To: <42E258A7.5080501@telia.com> References: <42E258A7.5080501@telia.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-NXjfvOhyvNE3zp6XCGUz" Date: Mon, 25 Jul 2005 13:08:01 -0700 Message-Id: <1122322081.12747.5.camel@cloud.outersquare.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 X-Archives-Salt: c8fc0543-5c63-4514-aa42-5a166d44351f X-Archives-Hash: ea7fef0c93412795265c2145eea90505 --=-NXjfvOhyvNE3zp6XCGUz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hey, I just finished reading through this thread. I'm not as good keeping up on the lists as I should be. BUT... This sounds promising. Unfortunately you send the email just after I unmasked 2.3.5-r1, so it's not going to get in there, but it could get into the next release with further testing. Can you post both patches to the bug, and I'll try to take care of getting the libm patch to apply if nobody beats me to it. Also be sure to report back the bug number, so folks here can follow it too. Thanks, Jeremy On Sat, 2005-07-23 at 16:48 +0200, Simon Strandman wrote: > Hi! >=20 > Some binary distros like Mandrake and suse patches their glibcs with=20 > x86_64 optimized strings and an x86_64 optimized libm to improve=20 > performance. >=20 > I tried extracting those patches from an mandrake SRPM and add them to=20 > the glibc 2.3.5 ebuild. The x86_64 optimized strings patch built and=20 > worked perfectly and gave a large speedup as you can see below. But I=20 > couldn't get glibc to build with the libm patch because of unresolved=20 > symbols (and I'm no programmer so I have no idea how to fix that). >=20 > I found a small C program on a suse mailing-list to measure glibc memory=20 > copy performance: > http://lists.suse.com/archive/suse-amd64/2005-Mar/0220.html >=20 > With the glibc 2.3.5 currently in gentoo I get: > isidor ~ # ./memcpy 2200 1000 1048576 > Memory to memory copy rate =3D 1291.600098 MBytes / sec. Block size =3D 1= 048576. >=20 > But with glibc 2.3.5 + amd64 optimized strings I get: > isidor ~ # ./memcpy 2200 1000 1048576 > Memory to memory copy rate =3D 2389.321777 MBytes / sec. Block size =3D 1= 048576. >=20 > That's an improvement of over 1000mb/s! Suse 9.3 also gives about=20 > 2300mb/s out of the box. >=20 > How about adding these patches to gentoo? Perhaps in glibc 2.3.5-r1=20 > before it leaves package.mask? I'll create a bugreport about it if you=20 > agree! >=20 > This .tar.bz2 contains the glibc directory from my overlay with the=20 > mandrake patches included in files/mdk, but the libm patches are=20 > commented out in the ebuild. > http://snigel.no-ip.com/~nxsty/linux/glibc.tar.bz2 >=20 > --=20 > Simon Strandman --=-NXjfvOhyvNE3zp6XCGUz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC5UahOpjtAl+gMRURAoatAKCa3BIKAAP+qgeeAH/eoNYlZnJCMACg5HZg HQgpIMXAszVBmA1vRYczMvg= =955K -----END PGP SIGNATURE----- --=-NXjfvOhyvNE3zp6XCGUz-- -- gentoo-amd64@gentoo.org mailing list