* Re: [gentoo-amd64] 32 or 64 for web server and mysql
2007-07-20 13:21 [gentoo-amd64] 32 or 64 for web server and mysql P.V.Anthony
@ 2007-07-20 13:39 ` Mark Haney
2007-07-20 14:23 ` Bob Sanders
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Mark Haney @ 2007-07-20 13:39 UTC (permalink / raw
To: gentoo-amd64
P.V.Anthony wrote:
> Hi,
>
> I going to built a 1U server which will have the following.
>
> 1. Apache 2
> 2. Lighttpd
> 3. qmail
> 4. vpopmail
> 5. mysql
> 6. postgres
> 7. ruby
> 8. php
> 9. perl
> 10. tinydns
> 11. pureftpd
> 12. high availblity tools for fail over
>
> The question is which way to go 64bit or 32bit? Which more stable? Which
> is better?
>
> The reason for this questions is that there are some information on the
> net that says that there is no much difference between them.
> Is that true? Thought that 64bit is always better.
>
> Please share some opinions.
>
> P.V.Anthony
Okay, here goes. 64-bit has performance advantages. Primarily a 64-bit
data path. Now if the app running doesn't know how to handle that much
data (compiling for 64-bit doesn't always guarantee that it will play
nice) then you won't see much improvement.
Now, here's where my opinion comes in. I've found Gentoo's 64-bit to be
much better than, say, Fedora's 64-bit because I didn't compile much of
anything for a GUI of any type. (On my server that is.) I have no hard
numbers, but I can tell you it's pretty noticeable in performance with
identical apps (web apps like PHP/MySQL, etc) on it. Specifically for
me it was cacti.
That said, you really won't see a heck of a lot of difference except
under pretty heavy loads. Normal web traffic is limited more by network
bandwidth than by system resources, so unless you're gonna beat the crap
out of that server day and night, either might be fine.
--
Recedite, plebes! Gero rem imperialem!
Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415
Call (866) ERC-7110 for after hours support
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-amd64] 32 or 64 for web server and mysql
2007-07-20 13:21 [gentoo-amd64] 32 or 64 for web server and mysql P.V.Anthony
2007-07-20 13:39 ` Mark Haney
@ 2007-07-20 14:23 ` Bob Sanders
2007-07-20 14:43 ` Dustin J. Mitchell
2007-07-20 18:08 ` [gentoo-amd64] " Duncan
3 siblings, 0 replies; 9+ messages in thread
From: Bob Sanders @ 2007-07-20 14:23 UTC (permalink / raw
To: gentoo-amd64
to add to what Mark said -
P.V.Anthony, mused, then expounded:
> Hi,
>
> I going to built a 1U server which will have the following.
>
> 1. Apache 2
> 2. Lighttpd
Why both web servers?
> 3. qmail
(Can't comment on this, using postfix)
> 4. vpopmail
(Haven't used any pop mail)
> 5. mysql
> 6. postgres
> 7. ruby
> 8. php
> 9. perl
> 10. tinydns
(Have only used this on 32-bit systems)
> 11. pureftpd
> 12. high availblity tools for fail over
>
(Haven't used thes, as I've had no failures)
> The question is which way to go 64bit or 32bit? Which more stable? Which
> is better?
>
I've run a couple of servers, 64-bit, for several years now - one since 2004,
and have had only one minor issue with the LSI MPT driver, but that was fixed
in 2.6.18.
My main uses have been file serving and some mail, along with backing up other
servers via rsnapshot on a daily basis.
Unlike more conservative admins, I run daily updates, with the exception of
critical software - kernel, dhcp, tftp, ftp, and nfs. And those still get
updated after I verify them.
> The reason for this questions is that there are some information on the
> net that says that there is no much difference between them.
> Is that true? Thought that 64bit is always better.
>
There are issues with digital media codecs and web browsers. But these are
servers. Also, note that the vast majority of Unix and Open source tools have
been run 64-bit for several decades on Unix and BSD boxes.
While the amd64 instruction set is a bit newer, and 32-bit code has been run
on millions of boxes, the 64-bit variants are as stable as anything else.
Bob
-
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-amd64] Re: 32 or 64 for web server and mysql
2007-07-20 13:21 [gentoo-amd64] 32 or 64 for web server and mysql P.V.Anthony
` (2 preceding siblings ...)
2007-07-20 14:43 ` Dustin J. Mitchell
@ 2007-07-20 18:08 ` Duncan
2007-07-23 2:33 ` P.V.Anthony
3 siblings, 1 reply; 9+ messages in thread
From: Duncan @ 2007-07-20 18:08 UTC (permalink / raw
To: gentoo-amd64
"P.V.Anthony" <pvantony@singnet.com.sg> posted
46A0B6C6.5000803@singnet.com.sg, excerpted below, on Fri, 20 Jul 2007
21:21:10 +0800:
> I going to built a 1U server which will have the following.
>
> 1. Apache 2
> 2. Lighttpd
> 3. qmail
> 4. vpopmail
> 5. mysql
> 6. postgres
> 7. ruby
> 8. php
> 9. perl
> 10. tinydns
> 11. pureftpd
> 12. high availblity tools for fail over
>
> The question is which way to go 64bit or 32bit? Which more stable? Which
> is better?
>
> The reason for this questions is that there are some information on the
> net that says that there is no much difference between them. Is that
> true? Thought that 64bit is always better.
Generically, 64-bit can at times be worse, because some things (integers,
memory addresses, etc) take 64-bits rather than 32, meaning bigger
binaries on disk, more memory used, more bandwidth necessary between disk
and memory and memory and CPU, larger cache required for the same effect,
etc. Thus, on many archs other than x86, it's quite common to have the
kernel as 64-bit to allow addressing larger memory and etc, but run a 32-
bit userland -- basically everything but the kernel.
On x86, it's a bit different. 32-bit x86 was always severely register
constrained, among other things, and one of the improvements AMD made
with the 64-bit extensions was that the spec required more registers. As
someone else already posted, this is often a big win on x86_64 as
compared to x86 (32), especially when apps are optimized to efficiently
use all those extra registers. The difference the extra registers make
is generally way more than the cost associated with the larger integers,
so on x86, 64-bit is generally better than 32-bit, even with the
additional expense of the larger integers and as a result binaries and
etc.
There are additional considerations, however. The biggest one is whether
you'll be running any closed source software. Often, that's not
available for 64-bit, or is available but with less testing and support.
Of course, if it's Oracle or the like, they should support 64-bit no
problem.
On a server, most of the typical 32-bit only binary-only stuff isn't an
issue, and if you ARE running any binary-only stuff, it's far more likely
to have native Linux 64-bit binaries available and well supported (xref
Oracle as already mentioned). Be sure to look before you jump, however.
If you are going to be running 100% FLOSS on your server, as with the
desktop, things lean rather more 64-bit.
How much memory are you going to be running? If >3 gig, you almost
certainly want 64-bit if you can, as 32-bit gets rather more inefficient
at addressing >4 gig.
Also what sort of CPUs are you running? True AMD64 or Intel em64t? True
AMD64 CPUs tend to be better at 64-bit than Intel, which still optimizes
for 32-bit even on their em64t stuff. If you are running true AMD64 and
there's no closed-source-ware preventing it, 64-bit will almost certainly
be your better choice. If you are running em64t, you just might be
better on 32-bit, depending on your exact app and load profile.
Finally... 64-bit /can/ be more secure from a hardware perspective.
There's certain features built into the 64-bit extensions that improve
resistance to buffer overflows and the like, or more precisely, compiling
a hardened profile, as you may be doing on a server, doesn't cause the
performance penalty on amd64 (generically, so em64t also) that it does on
x86. If you are going to be using a hardened profile, I'd strongly
recommend going 64-bit for that reason.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread