473,394 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Big Bang / Little Buck

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?

Any thoughts would be appreciated.
Jul 17 '05 #1
5 1749
If I were you I wouldn't have so much data on such commodity hard
drives. I assume you have proper backup procedures?

I'd personally change the 2 x 40 GB drives into a RAID 1 configuration -
which would speed up reading a bit, linux software raid if nothing else.

Are you using MySQL 4? I have you looked into the use of the Query Cache?

Jus

Mike Ayers wrote:
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?

Any thoughts would be appreciated.

Jul 17 '05 #2
"Mike Ayers" <no***@nowhere.com> wrote in message
news:2l************@uni-berlin.de...
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?

Any thoughts would be appreciated.


More ram probably. 1 Gig really isn't a lot.
Jul 17 '05 #3

"Mike Ayers" <no***@nowhere.com> wrote in message
news:2l************@uni-berlin.de...
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?

Any thoughts would be appreciated.


use a ramdisk. reserve 1 or 2 gig for ramdisk. serve "amp" from this
ramdisk.
Did the trick for me. queries speeded up over a thousand percent.
Also, Xeon processors seem to perform better on dBases.... I use a dual
2.8GHz now.

Mich
Jul 17 '05 #4
Mike Ayers wrote:
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?


I think you have to first determine where your bottleneck(s) are - so I'll
reverse your question:

- are you doing a lot of DB transactions - is your bottleneck database
connections?
- is it the disk I/O?
- how is the processor utilization when the system gets "slow?"
- are you running out of RAM and swapping?

Probably separating the web server from the DB is a good idea, but still you
have to first determine where your actual bottlenecks are before you can
decide for sure how to proceed.
Jul 17 '05 #5
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)
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: deko | last post by:
all this dot and bang syntax is confusing. if anyone can bring clarity to this subject I would really appreciate it. Forms!!.Form! -- to reference a text box on a subform But is this the...
22
by: Keith Tizzard | last post by:
I know this subject has been discussed many times and I do not wish to go over all the ground again but I have a particular problem. In the code for a Form I always use the dot notation to refer...
44
by: Darryl Kerkeslager | last post by:
I once did all my control references with the bang (!) operator. All my controls were referenced as Me!txtInput, etc. I have now discovered that doing this loses much more than Intellisense. ...
10
by: MLH | last post by:
?DCount("!", "qryAOLsNeed2Print") - OR - ?DCount(".", "qryAOLsNeed2Print") Both syntaxes return the correct answer for me. But I'm wondering if one is more suitable than the other for some...
6
by: =?Utf-8?B?UmljaA==?= | last post by:
If Not st1.Equals("something") then Do Something Else End If if str1 != "something" Then ... I realize that != is C# stuff and/or can be also be used in Tsql, but is there any implementation...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.