I am upgrading a server that mounts in a rack. Its going on the cheapest socket 775 CPU I can buy and in a 1u rack case. All its for is keeping some log files and doing some simple MYSQL/PHP database stuff. Not a work horse at all. Anyway, is it better to go 64bit or 32bit for the CentOS 5.x install? I do not see needing huge amounts of RAM or anything like that on this box. Would the 32bit version be more tried, proven and stable?
Matt
Matt wrote:
I am upgrading a server that mounts in a rack. Its going on the cheapest socket 775 CPU I can buy and in a 1u rack case. All its for is keeping some log files and doing some simple MYSQL/PHP database stuff. Not a work horse at all. Anyway, is it better to go 64bit or 32bit for the CentOS 5.x install? I do not see needing huge amounts of RAM or anything like that on this box. Would the 32bit version be more tried, proven and stable?
Stick to 32-bit unless there's an explicit need to go to 64-bit. 64-bit requires a lot more memory.
64-bit should be perfectly fine from a stability perspective but it's too much of a memory hog.
Sample memory usage(32-bit): root 4059 0.0 0.2 11616 4532 ? S 04:02 0:01 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a root 10721 0.0 0.0 4516 1048 ? Ss Jun23 0:00 /usr/sbin/sshd postfix 20038 0.0 0.0 5560 1720 ? S 09:49 0:00 pickup -l -t fifo -u root 22302 0.0 0.1 7488 2480 ? Ss 11:21 0:00 sshd: root@pts/1 root 29154 0.0 0.0 6780 1692 ? Ss Jul30 0:01 /usr/libexec/postfix/master postfix 29158 0.0 0.0 6024 1868 ? S Jul30 0:00 qmgr -l -t fifo -u
64-bit: root 2792 0.0 0.0 88028 5700 ? S 04:02 0:02 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a root 22946 0.0 0.0 26224 2108 ? Ss Jul30 0:00 /usr/libexec/postfix/master postfix 22950 0.0 0.0 26336 2200 ? S Jul30 0:00 qmgr -l -t fifo -u root 26090 0.0 0.0 37100 2656 ? Ss 11:23 0:00 sshd: root@pts/0 postfix 30228 0.0 0.0 26284 2104 ? S 10:34 0:00 pickup -l -t fifo -u root 31734 0.0 0.0 21924 1180 ? Ss Jun23 0:00 /usr/sbin/sshd ---
snmpd - from 11M to 88M postfix/master - from 6.7M to 26M sshd - from 7.4M to 37M postfix/pickup - from 5.5M to 26M
Unless you have gobs of ram and don't care about the extra memory usage. For me unless I have processes that need more than 2GB per process, or overall memory on the system is higher than 8GB I stick to a 32-bit OS. If I have more than 8GB, that implies that I actually plan to use more than 8GB at which point I believe 64-bit starts making more sense as PAE can get pretty expensive for memory intensive things. The above 64-bit system has 16G, the 32-bit system above has 2G.
nate
nate wrote: ...
Sample memory usage(32-bit): root 4059 0.0 0.2 11616 4532 ? S 04:02 0:01 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a
...
64-bit: root 2792 0.0 0.0 88028 5700 ? S 04:02 0:02 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a
...
snmpd - from 11M to 88M
That's the virtual size, not the real size: 4532 vs. 5700.
Mogens
On Sat, Aug 2, 2008 at 11:28 AM, nate centos@linuxpowered.net wrote:
... The above 64-bit system has 16G, the 32-bit system above has 2G.
If you have a system with 8x the size of memory than another system, it will _need_ more memory just to run.
I run 64-bit CentOS 5.2 on a system with 4GB of ram and have never had a memory problem, and only one time when it was 2GB and I inadvertently tried to open 300+ JPEGs all at the same time.
IMNSHO, if you have a 64-bit CPU, unless you have a specific need to run in 32-bit mode, use it (64-bit mode).
mhr
MHR wrote:
On Sat, Aug 2, 2008 at 11:28 AM, nate centos@linuxpowered.net wrote:
... The above 64-bit system has 16G, the 32-bit system above has 2G.
If you have a system with 8x the size of memory than another system, it will _need_ more memory just to run.
I run 64-bit CentOS 5.2 on a system with 4GB of ram and have never had a memory problem, and only one time when it was 2GB and I inadvertently tried to open 300+ JPEGs all at the same time.
IMNSHO, if you have a 64-bit CPU, unless you have a specific need to run in 32-bit mode, use it (64-bit mode).
mhr __________________________
Just to add - I have CentOS 5.2 with 2GB running 64bit and have not experienced any problems. It's a desktop, not a server, if that matters.
Matt wrote:
I am upgrading a server that mounts in a rack. Its going on the cheapest socket 775 CPU I can buy and in a 1u rack case. All its for is keeping some log files and doing some simple MYSQL/PHP database stuff. Not a work horse at all. Anyway, is it better to go 64bit or 32bit for the CentOS 5.x install? I do not see needing huge amounts of RAM or anything like that on this box. Would the 32bit version be more tried, proven and stable?
Go 64 bit. Databases tend to grow, even when you don't think they will.
http://www.mysqlperformanceblog.com/2008/07/25/the-1-mistake-hosting-provide...
Just my opinion.