LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-07-2010, 07:51 PM   #1
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 107Reputation: 107
Is there much of a difference in performance between x86 and amd64 distros?


I have a 64-bit computer but 64-bit distros have been giving me huge problems when using 32 bit apps or trying to install 32-bit libraries, so I think I'm going to just switch to 32 bit. Will I notice much of a hit in performance? This computer is mostly used for web and games, nothing particularly cpu-intensive (no graphics rendering, etc)
 
Old 09-07-2010, 07:53 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
If by "games", you mean flash-based games or solitaire or similar, then no, you won't notice a difference. 64-bit makes the most sense for users of virtualization, gaming, and other areas that can make use of the extra registers and memory address space.
 
Old 09-07-2010, 07:56 PM   #3
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
I meant more like EVE Online and a couple other MMOs (no shooters). Thats about the heaviest app I run though
 
Old 09-07-2010, 08:47 PM   #4
hoodooman
Member
 
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
I switched from slack 13.1 64 to 32.Cant sat I have noticed a difference.
 
Old 09-08-2010, 06:47 AM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by Cultist View Post
I have a 64-bit computer but 64-bit distros have been giving me huge problems when using 32 bit apps or trying to install 32-bit libraries
I know next to nothing about Slackware, so I can't give much useful advice on that topic.

I've found 32 bit apps and libraries moderately inconvenient to install on Mepis (but certainly not "huge problems). I've found them much easier to install on Centos.

Unless a system is seriously short of ram, I personally would select a 64 bit OS even if I was intending to run 32 bit apps.

Quote:
so I think I'm going to just switch to 32 bit. Will I notice much of a hit in performance? This computer is mostly used for web and games, nothing particularly cpu-intensive (no graphics rendering, etc)
I expect you won't notice a hit in performance. I haven't seen results from many controlled experiments on that performance difference. The testing I've done myself has given mixed results.

I suggest a PAE kernel, so you can use your full 4GB of ram.
 
Old 09-08-2010, 08:57 AM   #6
X.Cyclop
Member
 
Registered: Jun 2006
Location: Tlv
Distribution: Arch!
Posts: 120

Rep: Reputation: 21
wouldn't it be better to use a bigger graphics card (if you use the pc for gaming, designing...) instead of switching from 32b to 64b??
 
Old 09-08-2010, 01:34 PM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
With games, the only ones I have tested are Quake Wars and Savage 2, both are slightly faster on 64-bit, I mean like 10-20 FPS more, nothing that you will notice if you have a good video card. If you encode videos you'll probably notice more of a difference.
 
Old 09-08-2010, 03:54 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Usually the only reason a 64 bit app is faster is because it was compiled on a newer compiler and didn't have to take into account legacy issues. They are not faster as such by any hardware issue. It could be that some amount of ram is being paged in larger apps with huge files but that less common.

I doubt you would notice with your eye any difference. It would be one of those test deals pitting lame 64 against lame 32 and saving 1 second on a 30 second task. Could you see it? Well, maybe yes maybe no.
 
Old 09-08-2010, 07:54 PM   #9
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by jefro View Post
Usually the only reason a 64 bit app is faster is because it was compiled on a newer compiler
I don't think the compiler itself is typically newer.

Quote:
and didn't have to take into account legacy issues.
But the machine architecture itself is newer, so there are fewer significant variations between models, vs. 32 bit x86 where a compiler (even a new one) has to deal with the possibility that the code will run on older CPU models.

Quote:
They are not faster as such by any hardware issue.
They are faster by many hardware issues.

The most important speed issue might be use of SSE floating point vs. legacy floating point, which would qualify as a legacy issue (not a hardware issue) because most 32 bit x86 systems support SSE floating point, but the compiler uses legacy floating point for 32 bit anyway.

x86_64 also has twice as many registers. That could allow slightly faster code in many cases with almost any compiler. But GCC is especially flawed in its ability to deal with register shortage (compared to other compilers) so the speed advantage from doubling the number of registers is especially important for code compiled by GCC.

x86_64 also can do 64 bit integer math in single instructions, which take multiple instructions for 32 bit x86. If 64 bit integer math were common, that would be an overwhelming performance difference. But 64 bit integers are used almost exclusively in support of 64 bit pointers, almost never as independent integers. So 32 bit programs almost never use 64 bit integers and thus are not slowed down by requiring multiple instructions for 64 bit integer operations. 32 bit x86 and x86_64 both have full support for 64 bit floating point.

Those and many other differences balance against many performance disadvantages of x86_64. The most important is that pointers are twice as big and many programs use a lot of pointers, so an x86_64 program will have a higher L2 cache miss rate than an equivalent 32 bit program (when both are run on the same 64 bit CPU).

The typical computer operation for an ordinary user might be too fast to notice or might need to wait for the hard disk or more likely the network. The CPU speed is less often the bottleneck. So the net performance difference (x86_64 advantages minus disadvantages) is a small difference affecting the aspect of performance that usually doesn't matter.

Quote:
It could be that some amount of ram is being paged in larger apps with huge files but that less common.
I can't even guess what that is supposed to mean.

Quote:
I doubt you would notice with your eye any difference.
I agree.

Quote:
It would be one of those test deals pitting lame 64 against lame 32
But why are both "lame"?

Quote:
and saving 1 second on a 30 second task. Could you see it? Well, maybe yes maybe no.
That really depends on the task. For a typical 30 second task, where the network or disk is the bottleneck the difference would be zero seconds, not one. A CPU bound 30 second task would often have a difference much larger than 1 second out of 30. But that difference could go either way. 64 bit is sometimes slower. The average difference would be very hard to measure (or even to define) and probably would be quite small.
 
1 members found this post helpful.
Old 09-08-2010, 08:08 PM   #10
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by johnsfine View Post
But why are both "lame"?.
I was confused by that at first too, but I think he meant this:

http://lame.sourceforge.net/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can boot X86 livecds but not AMD64 livecd to repair my AMD64 Gentoo system ldemaey Gentoo 8 07-23-2009 12:20 PM
Can I install a package for x86 in amd64? Zyndarius Linux - Newbie 7 12-19-2008 08:18 PM
state of x86-64 (ie., amd64) ? ashwin_cse Linux - General 4 04-06-2007 07:46 PM
Difference between amd64 generic and amd64 k8? halfpower Linux - General 6 09-07-2006 05:28 PM
Difference between SUSE 10.0 X86 and X86/64 performance ausm SUSE / openSUSE 2 12-13-2005 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration