1 |
Hey, I just finished reading through this thread. I'm not as good |
2 |
keeping up on the lists as I should be. |
3 |
|
4 |
BUT... This sounds promising. Unfortunately you send the email just |
5 |
after I unmasked 2.3.5-r1, so it's not going to get in there, but it |
6 |
could get into the next release with further testing. Can you post both |
7 |
patches to the bug, and I'll try to take care of getting the libm patch |
8 |
to apply if nobody beats me to it. Also be sure to report back the bug |
9 |
number, so folks here can follow it too. |
10 |
|
11 |
Thanks, |
12 |
Jeremy |
13 |
|
14 |
On Sat, 2005-07-23 at 16:48 +0200, Simon Strandman wrote: |
15 |
> Hi! |
16 |
> |
17 |
> Some binary distros like Mandrake and suse patches their glibcs with |
18 |
> x86_64 optimized strings and an x86_64 optimized libm to improve |
19 |
> performance. |
20 |
> |
21 |
> I tried extracting those patches from an mandrake SRPM and add them to |
22 |
> the glibc 2.3.5 ebuild. The x86_64 optimized strings patch built and |
23 |
> worked perfectly and gave a large speedup as you can see below. But I |
24 |
> couldn't get glibc to build with the libm patch because of unresolved |
25 |
> symbols (and I'm no programmer so I have no idea how to fix that). |
26 |
> |
27 |
> I found a small C program on a suse mailing-list to measure glibc memory |
28 |
> copy performance: |
29 |
> http://lists.suse.com/archive/suse-amd64/2005-Mar/0220.html |
30 |
> |
31 |
> With the glibc 2.3.5 currently in gentoo I get: |
32 |
> isidor ~ # ./memcpy 2200 1000 1048576 |
33 |
> Memory to memory copy rate = 1291.600098 MBytes / sec. Block size = 1048576. |
34 |
> |
35 |
> But with glibc 2.3.5 + amd64 optimized strings I get: |
36 |
> isidor ~ # ./memcpy 2200 1000 1048576 |
37 |
> Memory to memory copy rate = 2389.321777 MBytes / sec. Block size = 1048576. |
38 |
> |
39 |
> That's an improvement of over 1000mb/s! Suse 9.3 also gives about |
40 |
> 2300mb/s out of the box. |
41 |
> |
42 |
> How about adding these patches to gentoo? Perhaps in glibc 2.3.5-r1 |
43 |
> before it leaves package.mask? I'll create a bugreport about it if you |
44 |
> agree! |
45 |
> |
46 |
> This .tar.bz2 contains the glibc directory from my overlay with the |
47 |
> mandrake patches included in files/mdk, but the libm patches are |
48 |
> commented out in the ebuild. |
49 |
> http://snigel.no-ip.com/~nxsty/linux/glibc.tar.bz2 |
50 |
> |
51 |
> -- |
52 |
> Simon Strandman <simon.strandman@×××××.com> |