Migration from 32-bit to 64-bit

6 posts / 0 new
Last post
#1 Wed, 12/31/2008 - 05:38
lueung

Migration from 32-bit to 64-bit

I currently have virtualmin on a centos5/32-bit with FFmpeg, phpmpeg etc... I am planning on getting a another server within the next couple of days with centos5/64-bit on a dual quad box.

I am getting the new server in preparation for an expansion over the next 6 months to be able to handle a significant about of traffic.

My question is:

  1. Will the 64-bit platform make any difference in a server environment in regard to performance Vs. 32-bit? Advantages/disadvantages...etc..

  2. Will I be able to migrate all sites and virtualmin settings to the new server without any problems? (Virtualmin32-bit ->Virtualmin64-bit)

  3. Is there a tutorial on server to server move?

Tue, 01/06/2009 - 11:02
lueung

Bump

Wed, 01/07/2009 - 20:55 (Reply to #2)
sgrayban

There is little difference if any between 32 bit and 64.

Wed, 01/07/2009 - 20:58
Joe
Joe's picture

<div class='quote'>1. Will the 64-bit platform make any difference in a server environment in regard to performance Vs. 32-bit? Advantages/disadvantages...etc..</div>

64 bit will be slightly slower, and applications will require more RAM (anywhere from 10 to 50% more, depending on the app). Unless you have more than 4GB of RAM, migrating to 64 bit will have a negative impact.

<div class='quote'>2. Will I be able to migrate all sites and virtualmin settings to the new server without any problems? (Virtualmin32-bit -&gt;Virtualmin64-bit)</div>

Of course. Virtualmin doesn't care.

Though our binary builds (Apache and such) are far better tested on 32 bit systems (one of our servers is running 64 bit CentOS, though, and it seems to be doing fine).

--

Check out the forum guidelines!

Fri, 01/09/2009 - 21:36 (Reply to #4)
lueung

Thanks Joe. Could you explain why the 64-bit is slower?

I have a machine at home running windows64. In comparison to the 32-bit OS, the 64-bit was noticeably faster. So I'm going on the same assumption for our linux servers. Or am I missing something?

You mentioned 4gig+ ram, is that the only thing?

Sat, 01/10/2009 - 10:18 (Reply to #5)
Joe
Joe's picture

<div class='quote'>I have a machine at home running windows64. In comparison to the 32-bit OS, the 64-bit was noticeably faster.</div>

Illusion. Placebo effect works with computers, too. You think it's faster, so it is. ;-)

<div class='quote'>So I'm going on the same assumption for our linux servers. Or am I missing something?</div>

The same assumption applies to both Windows and Linux...you're just assuming the wrong direction. 64 bit Windows is slower than 32 bit Windows, just like 64 bit Linux is slower than 32 bit Linux. It's not a big difference, of course. But it is measurably slower. About 4%-20%, depending on the operation, according to the only benchmark numbers I could find in two minutes of Googling. RSA encryption was 12% slower, while gzipping was 20% slower--both computationally intense...simple web service would show less difference, but complex web applications might not, since PHP and Perl and Ruby and such have very high function/object overheard, relatively speaking, with lots of memory work being done.

Basically, it comes from the fact that 64 bit executables are bigger, and have to move more data around (where &quot;data&quot; may be just pointers to other parts of the program--they are now dealing with a 64 bit address space, and so have to be larger).

Depending on how addressing is handled in the system the memory size at which performance begins to favor the 64 bit system may differe. Windows seemingly does it differently than Linux, for example, and the cutoff seems to be 3GB rather than 4GB, though I'm by no means an expert on Windows and memory management, and it could just be specific to some types of work on Windows (I found an MSDN article that talked about this very topic and it mentioned a 3GB allocation limit for 32 bit apps).

<div class='quote'>You mentioned 4gig+ ram, is that the only thing?</div>

As far as I know. I can't think of any other reason a 64 bit system could be more useful or faster than a 32 bit system. 32 bit systems already have fast math processing units that can deal with larger numbers, so big math isn't a benefit of 64 bit (unless the math is being done on data sets bigger than fits in memory on a 32 bit system). Certainly for web service and such, there is no benefit...unless you have more than 4GB of RAM, and have a system that will usefully fill that space.

Note also that a 64 bit processor, by virtue of being a much newer design than a 32 bit processor at the same clock speed, will still be much faster. But, you don't have to run a 64 bit OS on it to get that performance boost...and running the 32 bit OS on it will go even faster, generally speaking.

And coming back to your Windows example...perhaps you've noticed that Windows gets slower over time, as random crud finds its way into the notification bar, and the startup process, etc. A fresh installation of 64 bit Windows is probably going to &quot;feel&quot; a lot faster than the old installation of 32 bit Windows on the same hardware. I don't know a whole lot about Windows, but I've certainly noticed this &quot;aging&quot; property of Windows installations. But, when it comes to raw numbers, and doing actual think work, if all other things are equal and RAM is less than 4GB (or 3GB), 32 bit builds will be faster than 64 bit builds.

--

Check out the forum guidelines!

Topic locked