In article <2l************@uni-berlin.de>,
no***@nowhere.com says...
Here is what I have:
A lamp box (Linux,apache,mysql,php) that has >= 2.4Ghz Pentium 4, 1Gig
Ram, 2 40 Gig IDE harddrives (OS on one/mysql on the other).
The mysql database is getting large (several tables have several million
rows each). I have done a lot of work on indexes.
The system is on our corporate intranet.
The problem is it can get very slow.
My question is what will give me the biggest bang for my (bosses) buck?
More ram?
SCSI Hard drives?
Faster processor?
Duel+ processors?
Mysql on one box and php on another?
Other ideas?
You have several issues with your current config that you need to
address first:
1) You have no data redundancy - you should be using RAID-1 for the OS,
you could also put the Web site on a RAID-1 array.
2) You need to put the database datafile on a RAID-5 array, at least 4
drives, 5 or 6 would be ideal for your system.
Now, since you can't really do the above on what I imagine is your
system, do the following:
Install 2 x 120GB drives in the machine, use RAID-1 mode (software, or
buy a RAID controller card), even IDE drives handle RAID well, you will
appreciate the read performance you get out of this and the fact that if
you loose one drive you are still up and running.
If you find that your system is slow serving pages where you have the
web server and database on a single CPU machine, then you have two
choices:
1) Getting a Dual CPU motherboard and using Dual CPU's to run the setup
2) Getting a second box to run the database on
You could also do the following - get a Dual CPU box, install the
database on it, and run the web server from your existing P4, but mirror
the drives on the existing P4.
If you want a cheap, quality, Dual CPU system, look at the ASUS PC-DL
Deluxe Dual Xeon board. If you get it with Dual 2.4ghz Xeon's and 2GB
RAM with a 550W PSU and the case/floppy/cd-rom and Dual 250GB SATA
drives, you are only looking at about $1600 (US). Just make sure that
your XEON chips are from the same LOT/Batch or you'll have problems.
My guess about your system is that you are performance bound on the
drive and that a faster CPU isn't going to help.
--
--
sp*********@rrohio.com
(Remove 999 to reply to me)