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 1DwN3s-0001pJ-Vz for garchives@archives.gentoo.org; Sat, 23 Jul 2005 16:41:17 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6NGcLAh029166; Sat, 23 Jul 2005 16:38:21 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.197]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6NGcKmr013447 for ; Sat, 23 Jul 2005 16:38:20 GMT Received: by zproxy.gmail.com with SMTP id x7so377446nzc for ; Sat, 23 Jul 2005 09:39:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N4sIntMmtIDvW6aRuSToPscLlUm0QjfKvUpcHnqoMfvY4dipe1v+h9m/y+bQFGTsDHKlXCyyVlNP8ERwG40BxDHCTIr7xOq3btMC/9FVIHdSKkJz7VbdUNlnivlosxqcbiw7rBMaAQTs3sv4gBkgbrqMSgFRgN87Yq4WUyM8f3Q= Received: by 10.36.8.12 with SMTP id 12mr665079nzh; Sat, 23 Jul 2005 09:39:00 -0700 (PDT) Received: by 10.36.7.14 with HTTP; Sat, 23 Jul 2005 09:39:00 -0700 (PDT) Message-ID: <11fc6a2505072309398e4edf2@mail.gmail.com> Date: Sat, 23 Jul 2005 12:39:00 -0400 From: Sean Johnson To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] x86_64 optimization patches for glibc. In-Reply-To: <42E258A7.5080501@telia.com> 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <42E258A7.5080501@telia.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j6NGcKmr013447 X-Archives-Salt: efe34941-000e-4e8f-bf21-cc14e36a33a3 X-Archives-Hash: f5afbeceafc66a7dd6bcbac62cf11078 I just reproduced your results. After emerging glibc with your overlay I get: Memory to memory copy rate = 2265.193604 MBytes / sec. Block size = 1048576. I was getting ~1100 before. Nothing has broken yet, but if it does, I'll be sure to post. :) On 7/23/05, Simon Strandman wrote: > Hi! > > Some binary distros like Mandrake and suse patches their glibcs with > x86_64 optimized strings and an x86_64 optimized libm to improve > performance. > > I tried extracting those patches from an mandrake SRPM and add them to > the glibc 2.3.5 ebuild. The x86_64 optimized strings patch built and > worked perfectly and gave a large speedup as you can see below. But I > couldn't get glibc to build with the libm patch because of unresolved > symbols (and I'm no programmer so I have no idea how to fix that). > > I found a small C program on a suse mailing-list to measure glibc memory > copy performance: > http://lists.suse.com/archive/suse-amd64/2005-Mar/0220.html > > With the glibc 2.3.5 currently in gentoo I get: > isidor ~ # ./memcpy 2200 1000 1048576 > Memory to memory copy rate = 1291.600098 MBytes / sec. Block size = 1048576. > > But with glibc 2.3.5 + amd64 optimized strings I get: > isidor ~ # ./memcpy 2200 1000 1048576 > Memory to memory copy rate = 2389.321777 MBytes / sec. Block size = 1048576. > > That's an improvement of over 1000mb/s! Suse 9.3 also gives about > 2300mb/s out of the box. > > How about adding these patches to gentoo? Perhaps in glibc 2.3.5-r1 > before it leaves package.mask? I'll create a bugreport about it if you > agree! > > This .tar.bz2 contains the glibc directory from my overlay with the > mandrake patches included in files/mdk, but the libm patches are > commented out in the ebuild. > http://snigel.no-ip.com/~nxsty/linux/glibc.tar.bz2 > > -- > Simon Strandman > > -- > gentoo-amd64@gentoo.org mailing list > > -- gentoo-amd64@gentoo.org mailing list