Gentoo Archives: gentoo-amd64

From: Sean Johnson <gutenpress@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] x86_64 optimization patches for glibc.
Date: Sat, 23 Jul 2005 16:41:17
Message-Id: 11fc6a2505072309398e4edf2@mail.gmail.com
In Reply to: [gentoo-amd64] x86_64 optimization patches for glibc. by Simon Strandman
1 I just reproduced your results. After emerging glibc with your overlay I get:
2
3 Memory to memory copy rate = 2265.193604 MBytes / sec. Block size = 1048576.
4
5 I was getting ~1100 before.
6
7 Nothing has broken yet, but if it does, I'll be sure to post. :)
8
9 On 7/23/05, Simon Strandman <simon.strandman@×××××.com> wrote:
10 > Hi!
11 >
12 > Some binary distros like Mandrake and suse patches their glibcs with
13 > x86_64 optimized strings and an x86_64 optimized libm to improve
14 > performance.
15 >
16 > I tried extracting those patches from an mandrake SRPM and add them to
17 > the glibc 2.3.5 ebuild. The x86_64 optimized strings patch built and
18 > worked perfectly and gave a large speedup as you can see below. But I
19 > 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).
21 >
22 > I found a small C program on a suse mailing-list to measure glibc memory
23 > copy performance:
24 > http://lists.suse.com/archive/suse-amd64/2005-Mar/0220.html
25 >
26 > With the glibc 2.3.5 currently in gentoo I get:
27 > isidor ~ # ./memcpy 2200 1000 1048576
28 > Memory to memory copy rate = 1291.600098 MBytes / sec. Block size = 1048576.
29 >
30 > But with glibc 2.3.5 + amd64 optimized strings I get:
31 > isidor ~ # ./memcpy 2200 1000 1048576
32 > Memory to memory copy rate = 2389.321777 MBytes / sec. Block size = 1048576.
33 >
34 > That's an improvement of over 1000mb/s! Suse 9.3 also gives about
35 > 2300mb/s out of the box.
36 >
37 > How about adding these patches to gentoo? Perhaps in glibc 2.3.5-r1
38 > before it leaves package.mask? I'll create a bugreport about it if you
39 > agree!
40 >
41 > This .tar.bz2 contains the glibc directory from my overlay with the
42 > mandrake patches included in files/mdk, but the libm patches are
43 > commented out in the ebuild.
44 > http://snigel.no-ip.com/~nxsty/linux/glibc.tar.bz2
45 >
46 > --
47 > Simon Strandman <simon.strandman@×××××.com>
48 >
49 > --
50 > gentoo-amd64@g.o mailing list
51 >
52 >
53
54 --
55 gentoo-amd64@g.o mailing list