Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

32-bit vs 64-bit: Performance

Have an x86-64 problem? Post here.
Locked
Advanced search
40 posts
  • 1
  • 2
  • Next
Author
Message
Tsonn
Guru
Guru
User avatar
Posts: 550
Joined: Thu Jun 03, 2004 2:03 pm
Contact:
Contact Tsonn
Website

32-bit vs 64-bit: Performance

  • Quote

Post by Tsonn » Fri Sep 10, 2004 1:22 pm

Following the 'why 64 bit' thread, I thought it might be a good idea to compile a list of what sort of performance differences people can expect, on a per-program basis.

Obviously this is complicated by different GCC versions, compiler flags, etc... but we should be able to give a general idea. For example, if you happen to be doing encoding using mencoder, using a 32-bit compile appears to give much better performance at the moment. A useful thing to know!

Code: Select all

Program                 Benchmark               32-bit/64-bit

 == Faster when 64-bit ==

boot                    same kernel, services   22s/20s
*compile                Firefox                 1382s/916s
*compile                xorg-x11                1812s/1298s
hdparm                  hdparm -Tt              1192 MB/s, 55.8Mb/s vs 1250MB/s, 55.8MB/s
bzip2-1.0.2             bzip an avi file        69.3s/60.3s
java                    bitwise ops on longs    39s/12s
java                    bitwise ops on ints     49s/19s
oggenc-1.0.1            encode song             17.5s/13.3s
PAN circuit simulator   see post #4             2-5% faster
POVRay                  render scene            1624s/1335s

 == No appreciable difference ==

gzip-1.3.3              gzip an avi file        9.2s/9.2s

 == Faster when 32-bit ==

*compile                kernel                  246s/254s
lame                    encode                  276s/294s
mencoder-1.0pre4.3.3.4  transcode/ffmpeg        ~160fps/~80fps
mplayer-1.0pre4-3.3.4   -benchmark/ffmpeg       18.3s/26.2s
xvid                    encode                  984s/>2400s

* Note that compilation tests are not comparisons of processing power, since
  compiles were with different flags and for different architectures!
Last edited by Tsonn on Mon Sep 13, 2004 3:24 pm, edited 5 times in total.
Top
jeffroman
Apprentice
Apprentice
User avatar
Posts: 183
Joined: Tue Jul 15, 2003 6:51 pm
Location: Louisville, Kentucky
Contact:
Contact jeffroman
Website

  • Quote

Post by jeffroman » Fri Sep 10, 2004 1:57 pm

once the source fully supports the new 64bit features, youll definately see performance increases. Especially so in encoding, ripping, downsampling, etc. anything processor intensive will eventually be faster on 64bit. just waiting on the source.
Thunder k8w, 2 Opteron 244s, 2GB Corsair, Audigy 2 Platinum eX, 6800 GT OC, 3Ware 9500S-4LP
Top
Tsonn
Guru
Guru
User avatar
Posts: 550
Joined: Thu Jun 03, 2004 2:03 pm
Contact:
Contact Tsonn
Website

  • Quote

Post by Tsonn » Fri Sep 10, 2004 2:13 pm

Yep. This would also be a good thread to mention any major advances in 64-bit optimisation :-)
Top
gian
Apprentice
Apprentice
User avatar
Posts: 212
Joined: Mon Jul 26, 2004 2:35 pm
Location: Europe
Contact:
Contact gian
Website

comparison (circuit simulator)

  • Quote

Post by gian » Fri Sep 10, 2004 7:16 pm

comparison using our homebrew circuit simulator (32 bit vers. at brambilla.elet.polimi.it _only bin_)with a single benchmark ( a large 30K mos circuit, only DC operating point analysis)


compiled on AMD64 (gentoo amd64 gcc 3.3 -O3 ) it goes no more than 2 to 5 % faster than 32 bit version (Debian stable gcc 3.0 -O3 -fast-math), moreover the -fast-math option is safe in the 32bit version but totally unsafe on the 64 bit version... (NOTE: we still have some work to do ...)
...
Top
gian
Apprentice
Apprentice
User avatar
Posts: 212
Joined: Mon Jul 26, 2004 2:35 pm
Location: Europe
Contact:
Contact gian
Website

was forgetting...

  • Quote

Post by gian » Fri Sep 10, 2004 7:18 pm

I (humbly) suggest that a performance comparison topic should be set sticky (just as the most appreciated "masked applications that work" topic)
Top
Tsonn
Guru
Guru
User avatar
Posts: 550
Joined: Thu Jun 03, 2004 2:03 pm
Contact:
Contact Tsonn
Website

  • Quote

Post by Tsonn » Fri Sep 10, 2004 7:30 pm

Added :-)

Hmm. Being a Java programmer, it's about time I compared Java performance...
Top
myuser
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sat Jan 31, 2004 7:27 pm

  • Quote

Post by myuser » Fri Sep 10, 2004 7:57 pm

Yes, more stuff like this would be excellent.

I think we all accept this is new ground, and it is very interesting to be around at the start of the 64Bit era as it starts to emerge into the mainstream.
Top
Fran
Guru
Guru
User avatar
Posts: 530
Joined: Sun Feb 29, 2004 3:14 pm
Location: Coruña (Spain)

  • Quote

Post by Fran » Sat Sep 11, 2004 3:28 pm

Well, I made a small comparative some time ago in a spanish forum (Meristation). I think the results are easy to understand even for non-spanish people, but if you want I can translate ;).
Top
Tsonn
Guru
Guru
User avatar
Posts: 550
Joined: Thu Jun 03, 2004 2:03 pm
Contact:
Contact Tsonn
Website

  • Quote

Post by Tsonn » Sat Sep 11, 2004 4:32 pm

Thanks :-)... I think I've added everything that wasn't on the list already, with the exception of 'Tiempo de carga'... perhaps you could translate that one?

(if I had to guess, it'd be 'boot time'...)
Top
gian
Apprentice
Apprentice
User avatar
Posts: 212
Joined: Mon Jul 26, 2004 2:35 pm
Location: Europe
Contact:
Contact gian
Website

on the same pc, that is ?

  • Quote

Post by gian » Sat Sep 11, 2004 4:56 pm

if I get it right the comparison by fran was performed on the same machine, is that right ?
Top
Fran
Guru
Guru
User avatar
Posts: 530
Joined: Sun Feb 29, 2004 3:14 pm
Location: Coruña (Spain)

  • Quote

Post by Fran » Sat Sep 11, 2004 5:39 pm

26199 wrote:if I had to guess, it'd be 'boot time'
Well guessed ;). The boot services and kernels in both linuxes (x86 and x86-64) were the same when I made that comparative.

Kernel compilation time is not very indicative. Kernels are quite different from one architecture to the other. However, firefox and xorg-x11 compilation times are impressive in the x86_64 system, 30% faster than x86.

Lame and xvid are obviously optimized for x86. x86/assembly vs. x86_64/C is not a fair duel :P.

I still don't understand why I get better results in hdparm with x86_64 :?.
gian wrote:if I get it right the comparison by fran was performed on the same machine, is that right
Yep, its the same machine: Athlon 64 Newcastle 3200+, MSI K8T NEO FSR and 2x512 Kingston with Infineon chips DDR400 3-3-3-8.
Top
Sivar
Apprentice
Apprentice
User avatar
Posts: 266
Joined: Sat May 25, 2002 1:54 am
Location: USA

  • Quote

Post by Sivar » Sat Sep 11, 2004 11:17 pm

Other than certain apps which need to deal with big numbers (very few apps really need to deal with numbers greater than 4.3 billion), most of the performance improvement for AMD64 systems will come not from the fact that the CPU has 64-bit registers, but from the fact that it has twice as many of them. While x86 is often called a "register-starved" architecture, doubling the number of available processors is not really *that* big of a deal. It is largely responsible for the 10-15% improvement that most applications get. 10-15% is not very noticeable on most systems, and many applications get as good or better a boost by using the Intel compiler and running in 32-bit mode.

In my opinion, the primary reason to use an AMD64 chip is not yet the 64-bit GPR size, but the integrated memory controller. Many types of applications get a big boost from having an integrated, at-speed*, low-latency memory controller, and it is available whether running a 64-bit, 32-bit, or even 16-bit application.

*(while the memory controller usually runs at CPU speed, it uses a different clock and is not synchronized with the CPU core)
The greatest deeds are still undone, the greatest songs are still unsung...
Top
Medah
n00b
n00b
Posts: 19
Joined: Sun Mar 07, 2004 10:23 pm
Location: The Netherlands

  • Quote

Post by Medah » Sun Sep 12, 2004 6:53 am

Would changing to gcc 3.4 be a big difference? and if so, is there any howto how to rebuild the whole system using gcc 3.4?
Top
gian
Apprentice
Apprentice
User avatar
Posts: 212
Joined: Mon Jul 26, 2004 2:35 pm
Location: Europe
Contact:
Contact gian
Website

register vars

  • Quote

Post by gian » Sun Sep 12, 2004 8:52 am

declaring register variables is then a way to exploit amd64 vs 32bit x86s .... and I should obtain better performance in programs using intensive memory I/O...
Top
Tsonn
Guru
Guru
User avatar
Posts: 550
Joined: Thu Jun 03, 2004 2:03 pm
Contact:
Contact Tsonn
Website

  • Quote

Post by Tsonn » Mon Sep 13, 2004 2:51 pm

Since I happened to be playing with cellular automata in java, I thought I'd experiment with using longs and bitwise operations to do the number crunching. Unsurprisingly, the 64-bit JRE was vastly quicker at it... almost four times quicker, in fact!

The JREs used were blackdown-jdk-1.4.2_rc1 on 64-bit and blackdown-jdk-1.4.1 on 32-bit.

To be fair, I suppose I should write a version using ints rather than longs and see how those compare. I'll keep you posted :-)
Top
Tsonn
Guru
Guru
User avatar
Posts: 550
Joined: Thu Jun 03, 2004 2:03 pm
Contact:
Contact Tsonn
Website

  • Quote

Post by Tsonn » Mon Sep 13, 2004 3:26 pm

It seems that the same amount of calculation done using ints instead of longs is again noticably faster on a 64-bit JRE. Maybe it's time to port those video codecs to java ;-)
Top
Zarathustra[H]
Guru
Guru
User avatar
Posts: 389
Joined: Mon Dec 30, 2002 12:30 am
Location: Cambridge, MA, USA

  • Quote

Post by Zarathustra[H] » Mon Sep 13, 2004 3:40 pm

Interesting.

I expected that many rendering and media applications would be faster on 64 bit platforms due to the compression algoriths probably being able to take advantage of the longer 64 bit numbers...

But then again, as Fran said, many of these applications have significant assembler optimizations for x86...


I wonder if we'll see any x86_64 assembler optimizations for these packages.


Also.. As sivar mentions, I have heard that the Intel compiler is a bit more efficient than GCC. Are we talking significatnly more efficient?
----
Athlon 64 3000+ / 1Gb Kingston Hyperx PC3500 / MSI K8N Neo / Geforce 6800GT
----
Top
LaNcom
Apprentice
Apprentice
Posts: 254
Joined: Sat May 03, 2003 1:14 am
Location: Erfurt, Germany

  • Quote

Post by LaNcom » Mon Sep 13, 2004 5:21 pm

ICC is quite a bit faster than GCC. But it doesn't support AMD64 right now. I think the only real alternative for GCC on AMD64 would be Pathscale - it's fully mix-and-matchable with GCC and highly optimized for AMD64 (it should be the fastest compiler for current AMD CPU's). But it's quite expensive I'm afraid ($ 1495 for a 1 year subscription)...

See:
http://www.pathscale.com/performance.html
Top
Zarathustra[H]
Guru
Guru
User avatar
Posts: 389
Joined: Mon Dec 30, 2002 12:30 am
Location: Cambridge, MA, USA

  • Quote

Post by Zarathustra[H] » Mon Sep 13, 2004 5:23 pm

LaNcom wrote:ICC is quite a bit faster than GCC. But it doesn't support AMD64 right now. I think the only real alternative for GCC on AMD64 would be Pathscale - it's fully mix-and-matchable with GCC and highly optimized for AMD64 (it should be the fastest compiler for current AMD CPU's). But it's quite expensive I'm afraid ($ 1495 for a 1 year subscription)...

See:
http://www.pathscale.com/performance.html
Interesting...


Now I don't hvae that kind of money to spend on a compiler for recreational use, but if I did....

is it possible to set it up to work with portage?
----
Athlon 64 3000+ / 1Gb Kingston Hyperx PC3500 / MSI K8N Neo / Geforce 6800GT
----
Top
LaNcom
Apprentice
Apprentice
Posts: 254
Joined: Sat May 03, 2003 1:14 am
Location: Erfurt, Germany

  • Quote

Post by LaNcom » Mon Sep 13, 2004 6:25 pm

Don't know. I applied for a 30 day trial, but they didn't send me the link to download the demo, yet...


On another note, anyone want's to try MPlayer with 64bit assembler support? I just checked, it works and the patch is easier to apply then the old, crude hack. According to the dev, the patch doesn't use all availble registers yet...

See:
http://fixounet.free.fr/amd64/

UPDATE:
Pathscale just sent me the link and the license key. I'm currently trying to make that thing work and will do some tests later. It really seems to be fully compatible with GCC so far - it even uses the same flags, so almost any Makefile should work as is...
Top
Tsonn
Guru
Guru
User avatar
Posts: 550
Joined: Thu Jun 03, 2004 2:03 pm
Contact:
Contact Tsonn
Website

  • Quote

Post by Tsonn » Fri Sep 17, 2004 10:13 pm

I've just moved to GCC 3.4... no major problems yet, although one or two (nonessential) packages refused to compile. The speed boost isn't bad; I've tested lame and mplayer, since they're both listed as better under 32-bit. Mplayer now manages 23.3s instead of 26.2s; I didn't do the lame benchmark listed, but it appears to be roughly 4% slower under 32-bit instead of 6.5% slower.

So, it definitely improves matters on the 64-bit side of things.
If your question was answered, please edit the first post and add [SOLVED] to the title. Thanks!
Top
slugworth
Apprentice
Apprentice
User avatar
Posts: 189
Joined: Sat Aug 21, 2004 12:11 am

  • Quote

Post by slugworth » Fri Mar 18, 2005 1:53 am

I definatly like spending a couple hundered more for 32 more bits to enjoy waiting 600 less seconds for a compile xorg.
Top
adrin
n00b
n00b
Posts: 41
Joined: Sat May 27, 2006 8:07 am

32 vs 64 bit

  • Quote

Post by adrin » Wed Oct 10, 2007 9:12 am

Hello,
I will install gentoo on my new box and would like to ask how is gentoo 64bit (EMT64/AMD64) performance compared to 32 bit's one?
*a*
Top
di1bert
l33t
l33t
User avatar
Posts: 963
Joined: Thu May 16, 2002 10:00 am
Location: Oslo, Norway

  • Quote

Post by di1bert » Wed Oct 10, 2007 9:20 am

I found the performance better on 32it. I also had a few annoying issues with 64bit.

Personally I'm alot happier running 32bit on my laptop....

</0.02c>

-m
Top
Nephilim666
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 148
Joined: Sat Jul 07, 2007 10:21 pm

  • Quote

Post by Nephilim666 » Wed Oct 10, 2007 10:10 am

I cannot comment on any speed difference, but I have no troubles using the 64bit version.
Everything is fine and dandy as long as you take the multilib profile and firefox-bin, if you need flash in your browser.

And since I got a 64bit cpu why shouldn't i make use of it?

Cheers!
Top
Locked

40 posts
  • 1
  • 2
  • Next

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy