View previous topic :: View next topic |
Author |
Message |
96140 Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 23 Jan 2005 Posts: 1324
|
Posted: Thu Jun 16, 2005 1:10 am Post subject: Article: 64-bit performance in Gentoo Linux |
|
|
While browsing Linux.com, I came across this article with benchmarks of 32-bit versus 64-bit Gentoo performance. In some cases, apparently 32-bit is still faster, especially in compile time. Which reminds me, it takes less than a half hour to compile X on an Athlon64 4000+! Takes me a few hours, Gnome not included, on my puny Pentium III.
I was a little disappointed to see some of the author's conclusions: Quote: | 64-bit operating systems may not be practical for simple desktop use at this point, partially because of some of the hassles in setting them up, and partially because they offer little performance increase for most desktop applications. |
I plan for my next computer to run an Athlon64 chip, and it's a little disheartening to see (yet another) tech writer hint that decent, widespread 64-bit software adoption is still a ways off. I keep telling myself that when AMD's marketing slogans on their website say the Athlon64 will run "tomorrows 64-bit software", they really mean "tomorrow is today". Bit disillusioned, perhaps.
Furthermore, I was surprised that the article writer concluded with: Quote: | Sometimes the purpose of a benchmarking project is to show which squeaky wheels need the grease. This benchmarking project has shown that there's still a long way to go for AMD64-specific optimizations in the GNU/Linux world. |
I'd always been under the impression--and even spread the word--that Gentoo's implementation of a 64-bit OS was the best available in the Linux world, or at least the most complete. That apart from some scattered 32-bit emulation problems, usually configuration-related, about the most serious issue facing AMD64 users was the lack of a 64-bit Flash plugin for Firefox!
In the end, I guess I've heard another perspective on 64-bit computing, but I did think it was nice that Gentoo got exposure on a major Linux trade publication, and that he seemed to know what he was doing in terms of setting up Gentoo. "My first experience installing Gentoo" articles are all well and good, but I prefer to hear what experienced users are putting their systems through. Hopefully the article gets someone new to try out Gentoo for him/herself, eh?
Last edited by 96140 on Tue Nov 21, 2006 12:54 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Headrush Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/111332295641fa913c28fea.jpg)
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Thu Jun 16, 2005 1:40 am Post subject: |
|
|
I made the jump from a 2.4Ghz P4 to a 2.0Ghz Athlon64 and my results are not the same.
All hardware is the same except for the new motherboard and CPU.
My compile times are dramatically shorter.
My ut2004 scores seem a little faster, but I had 8x AGP originally, but can only get 4x AGP on the 64 bit motherboard. (I don't know if or how much difference that would make.)
I have also ran a 32 bit version of ut2004 in a chroot environment and the frame rates are almost identical to the 64 bit environment.
Maybe the test in the article didn't have a correctly compiled gcc and the newer NVIDIA drivers help a lot?
So bottom line is these chips should be faster than what you had before and you shouldn't see enough of a speed hit to stay in only 32 bit mode. More and more apps will start to take advantage of 64 bits so why wait.
Last edited by Headrush on Thu Jun 16, 2005 12:46 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kill Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 25 Dec 2004 Posts: 179
|
Posted: Thu Jun 16, 2005 4:17 am Post subject: |
|
|
Headrush wrote: | 2.4Ghz P4 to a 2.0Ghz |
Ghz is not everything. Your AMD chip will indeed run faster than that Pentium chip. The numbers that give the chips their name (4000+) represent that the chip will run at the very least as fast as a Pentium chip with Hz equal to that number. It is called performance rating. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Chaosite Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1061141068427f6466ca728.jpg)
Joined: 13 Dec 2003 Posts: 540 Location: Right over here.
|
Posted: Thu Jun 16, 2005 8:31 am Post subject: |
|
|
kill wrote: | Headrush wrote: | 2.4Ghz P4 to a 2.0Ghz |
Ghz is not everything. Your AMD chip will indeed run faster than that Pentium chip. The numbers that give the chips their name (4000+) represent that the chip will run at the very least as fast as a Pentium chip with Hz equal to that number. It is called performance rating. |
And its marketing, too...
They're different chips, though, and comparing them hertz to hertz doesn't work. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Headrush Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/111332295641fa913c28fea.jpg)
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Thu Jun 16, 2005 12:40 pm Post subject: |
|
|
Chaosite wrote: |
And its marketing, too...
They're different chips, though, and comparing them hertz to hertz doesn't work. |
Guys, nobody is comparing these and I know about the performance rating for the AMD chips.
(I was trying to show these chips are indeed fast.)
My point to nightmorph was that running in 64 bit mode should not be on average slower than 32 bit like suggested in the article. I'm sure having a completely optimized build and using CFLAGS for a athlon64 instead of pentium4 will make a difference. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kill Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 25 Dec 2004 Posts: 179
|
Posted: Thu Jun 16, 2005 5:06 pm Post subject: |
|
|
Chaosite wrote: | comparing them hertz to hertz doesn't work |
That was the point I was trying to make. Sorry if I was less than clear.
Headrush wrote: | My point to nightmorph was that running in 64 bit mode should not be on average slower than 32 bit like suggested in the article. I'm sure having a completely optimized build and using CFLAGS for a athlon64 instead of pentium4 will make a difference. |
The problem is, as far as I know, Gcc can optimize for x86 better than it can for x86-64 even with "proper" CFLAGS. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smoked n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_korban_dalas.gif)
Joined: 11 Jan 2005 Posts: 38
|
Posted: Thu Jun 16, 2005 7:45 pm Post subject: |
|
|
The linked article wrote: | The software was Gentoo Linux 2005.0 using the Universal ISOs. I performed a stage 3 installation with no USE flags, the compiler options set for -pipe -O2 -fomit-frame-pointer, and the Pentium 4 and K8 -march options. I used the Pentium 4 option with the Athlon 64 because it has the same technologies (SSE, SSE2, MMX) that the Pentium 4 option provides. This could enhance performance in some tests, as the AMD-specific architectures below the K8 do not include SSE2. |
Is this a good idea? I'm getting an X2, and I don't think I'll be using 64 bit just yet. Should I use -march=pentium4? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
96140 Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 23 Jan 2005 Posts: 1324
|
Posted: Thu Jun 16, 2005 8:07 pm Post subject: |
|
|
No, definitely not. The author of the article definitely misunderstood the reason for keeping the proper -march setting. Browse the AMD64 forums for awhile, and check out the documentation to see why the Pentium4 instruction set should not be used with an Athlon64.
That's apparent even to me; I too think the test results were somewhat skewed by the author's -march setting. There's a reason why the -march=k8/-march=athlon64 settings are meant to be used over pentium4 The GNU gcc online documentation does a decent job of explaining why Athlon64 users should use one setting over another. Basically, the writer of the article had some incorrect assumptions about the differences/similarities between the two processors.
Still, regardless of -march setting, I was disappointed to see more tests in which 32-bit exceeded 64-bit performance. But regardless, if you're running a more recent Athlon64 chip, considering that it supports 32-bit applications at native speeds, and it's one helluva blazing fast processor, having to run some 32-bit compiled binaries shouldn't really be that much of a bother. ![Cool 8)](images/smiles/icon_cool.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smoked n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_korban_dalas.gif)
Joined: 11 Jan 2005 Posts: 38
|
Posted: Thu Jun 16, 2005 8:54 pm Post subject: |
|
|
Thanks nightmorph.
I really should have realized it was a bad idea. I guess I almost fell in the "It's on an official looking site, must be correct" trap.
What I should have done, is look at the FAQ in the Gentoo on AMD64 forum. It linked to this thread about x86 installs on AMD64 CPUs. Seems I can keep using my existing install. Just change CFLAGS and emerge -e world after I upgrade the hardware. That's nice
As stability is more important to me than performance I'll probably go with:
Code: | CFLAGS="-march=athlon64 -O2 -pipe" |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
96140 Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 23 Jan 2005 Posts: 1324
|
Posted: Thu Jun 16, 2005 9:11 pm Post subject: |
|
|
Sounds like a good plan. Though on that note, if you change a number of CFLAGS and want to recompile your system with them--which is a good idea, otherwise you aren't getting the benefits of the new flags--it would be a better idea to do the following: Code: | # emerge -e system
# emerge -e system
# emerge -e world
# emerge -e world |
This way you have a complete toolchain (gcc, binutils, etc.) built with the new CFLAGS, and your world packages have been compiled with a proper rebuilt Athlon64 toolchain. It's a common enough technique, usually used when upgrading gcc, but also useful for getting a fast, stable system after CFLAG & CXXFLAG changes.
Sure, it might be a bit of compile time, but going by the test results from this article, compiling is a snap for Athlon64 owners. Especially since with a dual core Athlon X2, you will be able to set MAKEOPTS="-j3" or even "-j4", increasing the number of parallel makes. Mmm, dual core goodness. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
racoontje Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 19 Jul 2004 Posts: 1290
|
Posted: Thu Jun 16, 2005 9:18 pm Post subject: |
|
|
Wasn't there a better way to do that? I remember someone having written an emerge wrapper that first emerges the toolchain, then emerges it again with the newly emerged toolchain, and then emerges world twice, fully, except for the toolchain... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smoked n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_korban_dalas.gif)
Joined: 11 Jan 2005 Posts: 38
|
Posted: Thu Jun 16, 2005 9:29 pm Post subject: |
|
|
nightmorph wrote: | Sounds like a good plan. Though on that note, if you change a number of CFLAGS and want to recompile your system with them--which is a good idea, otherwise you aren't getting the benefits of the new flags--it would be a better idea to do the following:
Code:
# emerge -e system
# emerge -e system
# emerge -e world
# emerge -e world |
Do you think that's neccessary? I mean, the only thing that should change is the addition of few sse2 optimizations. Ah, what the hell, I'll probably do it anyway just to be on the safe side. After all:
robmoss wrote: | Compilers are a black art. If something makes sense, it's probably wrong. |
Gotta love that quote
racoontje wrote: | Wasn't there a better way to do that? I remember someone having written an emerge wrapper that first emerges the toolchain, then emerges it again with the newly emerged toolchain, and then emerges world twice, fully, except for the toolchain... |
You probably mean this. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
96140 Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 23 Jan 2005 Posts: 1324
|
Posted: Thu Jun 16, 2005 9:38 pm Post subject: |
|
|
Beat me to it.
Yeah, it's still a good idea for the sake of internal consistency, which is a desired goal of a stable Gentoo system. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
scruff Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/80262487143184c2d80738.gif)
Joined: 28 Nov 2003 Posts: 142 Location: Boston, MA
|
Posted: Mon Jun 20, 2005 1:17 am Post subject: |
|
|
Here's my 2 cents:
I used to run an Athlon 2500+ OC'd to 2.1ghz w/ a 390mhz FSB running Corsair XMS PC3200. I now run an AMD64 3000+ (also stock rated at 1.8ghz the same as the 2500+) OC'd to 2.21ghz w/ a 520mhz memory bus running Geil Platinum PC4000 OC'd 20mhz. My compile times take 30% less time on my new 64 bit system if that tells you anything. I remember compiling kdebase-3.3.x in 1hr 14mins on the 2500+ and was proud of that. The same package took <55 mins on this system. xorg on this 64 bit box:
Code: | bitwise portage # splat xorg
* x11-base/xorg-x11-6.8.2-r1
Emerged at: Wed Mar 9 04:59:43 2005
Build time: 41 minutes, and 5 seconds |
I realize the 130mhz wider memory has a lot to do with this, but how else would I hit 520mhz with an AMD chip? The speed difference is easily noticable and I am glad I made the switch
I posted some other benchmarks on my AMD64 site: http//sfsullivan.homelinux.org _________________
AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ @ oc'd to 2.3ghz
DFI Lanparty UltraD nForce4 SLI
2x1gb Geil PC4000
GeForce 7800GT
Sound Blaster Audigy Platinum
200gb Maxtor DiamondMax 10
74gb WD Raptor 10k RPM
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
znmeb n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Dec 2003 Posts: 25 Location: Beaverton, Oregon, USA
|
Posted: Mon Jun 20, 2005 1:30 am Post subject: 64-bit benchmarks fatally flawed |
|
|
As some replies to the original article have pointed out, the rather primitive benchmark tests were fatally flawed by incorrect compile-time assumptions, among other things. I do this sort of thing (performance engineering, benchmarking, optimization, and capacity planning) for a living.
The flip side of that is that it is also a mistake to let a *vendor* run your benchmarks; they will be tuned to favor the vendor's environment and will not necessarily be reproducible with a real workload. On top of that, I'm not at all sure the default Gentoo compiler is really tuned to the AMD 64 architecture yet.
So ... my recommendation is that if you can affford it and have a 64-bit workload, by all means get a 64-bit processor and load Gentoo on it. While the performance without attention to tuning might be the same as a 32-bit processor, with a little effort you'll leave a 32-bit machine in the dust. _________________ --
M. Edward (Ed) Borasky
znmeb@borasky-research.net
http://www.borasky-research.net/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Biker Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/11183355973f1677d9b32be.gif)
Joined: 11 Jun 2003 Posts: 170 Location: A very dark, cold and moisty place...
|
Posted: Mon Jun 20, 2005 7:32 am Post subject: |
|
|
Well, let me write about my personal experiences about this.
I have a Pentium 4 running at 3GHz with 1GB of RAM. I have always felt it as being a very quick computer.
Just recently I built a new computer, based upon an AMD 4000+, again with 1GB of RAM. I have (to my knowledge) installed only 64bit software on this computer.
It was a very long time ago that I had such a speed experience from any PC. I don't even think about doing any measurements to compare speed. It's the feeling in the back. It really is a lot quicker. I feel it in my fingers on the keyboard. I feel it in my backbone while sat on the chair. (No network backbone, but the real physical thing. The one that hurts when sitting too long in from of a computer, you know.)
It's like driving a V8 equipped car after having spent months in the modern V6 or four-banger thingies they sell us nowadays.
How often do you get such a speed-trip on a PC? Well, to me it was a loooong time ago.
But with this AMD4000+ thing, I was just blinded.
Unfortunately, it has been in pieces for the last two or three weeks, while I have installed water-cooling in the case. It's undergoing a 24-hour leak test while I'm writing this. If all goes well, it should be up and running again tomorrow.
Regards
Biker _________________ The Internet never forgets.
Where 'never' points in the direction of a moment in the very, very far future. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smoked n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_korban_dalas.gif)
Joined: 11 Jan 2005 Posts: 38
|
Posted: Mon Jun 20, 2005 7:44 am Post subject: |
|
|
Quote: | It was a very long time ago that I had such a speed experience from any PC. I don't even think about doing any measurements to compare speed. It's the feeling in the back. It really is a lot quicker. I feel it in my fingers on the keyboard. I feel it in my backbone while sat on the chair. (No network backbone, but the real physical thing. The one that hurts when sitting too long in from of a computer, you know.)
It's like driving a V8 equipped car after having spent months in the modern V6 or four-banger thingies they sell us nowadays. |
I'm sorry, but these types of "benchmarks" don't really impress me. Subjective experience is simply way to unreliable.
I have little doubt that as the GCC 64bit code generation matures 64bit will be faster overall. I've seen no evidence of this being the case yet though. Perhaps with GCC 4.1?
As of yet, the benchmarks I've seen show 64bit binaries to be benefitial to apps such as databases. Overall though, I've not seen any that portray 64bit binaries as being faster overall. Quite the opposite actually. Perhaps this has changed since I last looked into it.
No one would be happier than me if there were reliable benchmarks that showed a performance boost overall from using 64bit binaries. If you know of any such, please post them. Until then, I'll go with the greater compatibility , and according the the tests I've seen performance, of a 32bit system.
Please prove me wrong
Edit:spelling |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Karsten from Berlin Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 28 Feb 2004 Posts: 446 Location: Berlin/Germany
|
Posted: Mon Jun 20, 2005 8:35 am Post subject: |
|
|
Why should a 64bit code be faster than 32bit code?
If you only take the bits into account, the only thing you get is the possibility as developer to use 64bit-pointer to address a wider range of memory __and__ the possibility to use 64bit integers to calculate with greater numbers.
The speed thing is based on a better, up-to-date architecture of the AMD64 processors. They have more registers, so they can calculate faster because they can hold more numbers in fast registers.
The second advantage based on the architecture is (on socket 939) the dual channel memory access, which speeds up things dramatically.
The bad thing about 64bit is, that the code will be a bit bigger than 32bit code, because of larger machine instructions (pointer have double the size, some integers have if implemented).
All in all my conclusion is, that AMD was lucky this time and faster than Intel in developing a fast processor architecture. But the speed advantage has nothing to do with 64bit, but more to do with this great architecture they created. We will see, if in the next generation of chips maybe Intel wins again. _________________ Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kasjopayer n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 May 2003 Posts: 48 Location: Switzerland
|
Posted: Mon Jun 20, 2005 8:47 am Post subject: |
|
|
@Biker: I share this experience - my AMD64 3400+ is more as twice as fast as my old Athlon XP 1800+. But this is not the point about it.
The article was not about wheter the AMD64 is good or bad, but wheter it is better to run 32bit or 64bit Linux on it. I don't have any knowledge about the optimizations, but it is interesting that obviously the gcc isn't as fast with 64bit as with 32bit. Well, it's actually not, because the gcc is optimized for a good result and not a good performance itself. It's probably the same with the optimizations: compilations with O3 takes often longer than with O2/O1 (tell me if I'm wrong). Maybe it takes more time to generate optimized code for all the 64bit extension?
But I don't see any reason why I should use a 32bit environment on my AMD64. In the meantime it's running quite well - certainly there are more problems on this new amd64 branch than on the dusty x86 branch. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Zentoo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/389573097443fd8f7110a0.jpg)
Joined: 18 Nov 2002 Posts: 195 Location: /dev/console
|
Posted: Mon Jun 20, 2005 9:38 am Post subject: How to benchmark Gentoo 32bits and 64 bits mode on a K8-arch |
|
|
Hi...
I sum up quickly some difference between Athlon 32 bits and 64 bits processeurs:
Athlon 32 bits:
8 General Purpose Register (16/32bits)
3 Decoder Unit
3 Integer Unit ALU
3 Float Unit FPU supporting differents Instruction Set:
X87/MMX/3DNOW (8 registers 80bits)
SSE (8 registers 128 bits)
4 GigaBytes Direct Adressable Memory
Athlon 64 Bits
The same as 32bits version with:
16 General Purpose Register 16/32/64bits (instead of 8 on regular 32 bits Athlon)
16 registers SSE/SSE2 (instead of 8 on regular 32bits athlon)
SSE2 Instruction Set
4 PetaBytes Direct Adressable Memory
Integrated Memory Controller
Quick Image to understand it: http://www.x86-secret.com/pics/cpu/k8-3/K8-Regs-1.gif
So when we speak about a 64 bits processeur, we shouldn't forget that the K8 arch is an extention in large (32->64 bits) but in long too (8->16 GPR & 8->16 SSE(2) registers)
To understand the different compatibility mode with 16 and 32 bits mode, take a look to this picture:
http://www.x86-secret.com/pics/cpu/k8-3/K8-operatingmodes.jpg
So it's really hard to tell what's the best for speed between a 32bits compiled linux and a 64bits linux because most of software shouldn't take in consideration the large extention (32->64 bits) but 64bits integer native software as scientific calculus or similar should if they have been coded for ! 64bits adressage should enlarge size code too. In a other hand, a 64bits compiled soft should take a lot advantage of the extras registers that could improve both speed and size of the code.
But all this work is done by compilers. And our is GCC. So it depends a lot on what kind of optimisations GCC could really handle on new 64 bits arch.
So since i haven't a 64 bits sytem to make some tests, i propose some benchmark to do and ask for testers on 64 bits systems !
I've elaborate some way to do benchmarks some while ago to see the impact on different kind of CFLAGS and the speed decrease of hardened compiled system.
For this i use: app-benchmarks/nbench
We need to do the following tests with the same CFLAGS (could be interesting to test with -O2 and -O3 to see huge differences) and the same CPU obviously:
kernel 32 bits + nbench 32 bits compiled
kernel 64 bits + nbench 32 bits compiled
kernel 64 bits + nbench 64 bits compiled
SO TESTERS: AT YOURS EMERGES AND GOOD BENCHMARKS !!!
PS: hope my english is good enough since it's not my native langage |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Grahammm Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 01 Sep 2004 Posts: 84 Location: Berkshire UK
|
Posted: Mon Jun 20, 2005 9:40 am Post subject: |
|
|
kill wrote: | The problem is, as far as I know, Gcc can optimize for x86 better than it can for x86-64 even with "proper" CFLAGS. |
Which, if true would be strange, as the 64bit mode offers more registers than 32bit x86. Lack of registers is one of the major shortcomings of the x86 architecture. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Zentoo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/389573097443fd8f7110a0.jpg)
Joined: 18 Nov 2002 Posts: 195 Location: /dev/console
|
Posted: Mon Jun 20, 2005 9:43 am Post subject: don't forget the toolchain ! |
|
|
I forget to mention that the toolchain should be each time 32bits or 64 bits optimised.
Since i haven't a 64bits system i cannot be sure what is the way to do it...
Is it possible to have a 64bits gcc and glibc sloted along with a 32bits ones ?
If someone could explain how to pass from a 32bits toolchain to a 64bits one, that could help some eventuels testers. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smoked n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_korban_dalas.gif)
Joined: 11 Jan 2005 Posts: 38
|
Posted: Mon Jun 20, 2005 10:39 am Post subject: |
|
|
This sure seems to disagree with other test I've seen. It portrays 64bit as notably faster. That's encouraging.
Any opinions on methodology and reliability of this test? Pretty slim set of benchmarks imho. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Headrush Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/111332295641fa913c28fea.jpg)
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Mon Jun 20, 2005 1:54 pm Post subject: |
|
|
Karsten from Berlin wrote: | Why should a 64bit code be faster than 32bit code?
If you only take the bits into account, the only thing you get is the possibility as developer to use 64bit-pointer to address a wider range of memory __and__ the possibility to use 64bit integers to calculate with greater numbers.
The speed thing is based on a better, up-to-date architecture of the AMD64 processors. They have more registers, so they can calculate faster because they can hold more numbers in fast registers.
The second advantage based on the architecture is (on socket 939) the dual channel memory access, which speeds up things dramatically.
The bad thing about 64bit is, that the code will be a bit bigger than 32bit code, because of larger machine instructions (pointer have double the size, some integers have if implemented). |
I think what you are correctly saying is as of right now, the advantage of Athlon64s isn't the 64bits, but the other features of the processor and associated motherboards right now. As gcc matures we can expect to see more benefits for the the use of 64 bits. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
alspnost n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Cars/6.gif)
Joined: 25 Feb 2003 Posts: 18 Location: Suffolk, UK
|
Posted: Mon Jun 20, 2005 7:48 pm Post subject: OpenSSL shows the way |
|
|
I've done various tests on my AMD64, between my old 32-bit Gentoo and the rebuilt 64-bit one. Basically, there is no discernable difference in almost anything, except for one - the OpenSSL speed tests. Not surprising, since crypto is well-known to benefit from 64-bits. The speeds soar by 3x when running in 64-bit, but everything else, from UT2004 to various compiles, is about the same. _________________ ------------------------------------------
Alastair Stevens
www.altrux.me.uk |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|