Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-01-2006, 03:17 AM   #1
Senior Member
Registered: Dec 2004
Posts: 1,027

Rep: Reputation: 67
tuning my LAMP stack...

I have a LAMP development server running debian linux that I'm using for load testing for this website i've been working on. the site is an event listing and search. I wrote a php script to populate the database for my site with some fake data to see how it behaves when there are many records so I can tweak my queries and create the proper indexes.

My problem is that the server is taking FOREVER to create new records. It averages between 2.5 and 6.5 seconds to enter a single event and its related association records. This of itself is not entirely surpising because the machine is just an 800mhz p3 and the routine to create the fake info does a lot of random number generation...

HOWEVER what *is* surprising is that i cannot get the load average above 2.0 no matter how many instances of the script i run. It has taken almost 2 hours to create a mere 25,000 records. I've been checking the load average using UPTIME and watching the TOP results sorted by CPU time. no process ever gets more than a couple of percent of the total CPU.

I'm wondering if there is some part of my LAMP config that could be altered to get it moving maybe i need more threads running apache or php or mysql or something. Can anyone recommend how I might get the server to enter data more quickly? I was hoping to get a million records in.
Old 11-01-2006, 10:07 AM   #2
LQ Newbie
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0

I can just think of one thing right now. what sort type of db tabels u r using ?
MyISAM or INodb ..?

Old 11-01-2006, 04:41 PM   #3
Senior Member
Registered: Dec 2004
Posts: 1,027

Original Poster
Rep: Reputation: 67

I'm not sure what the difference is...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference b/t Kernel stack and User stack hazzyb Linux - Software 2 09-29-2008 08:40 PM
LXer: LAMP vs. LAMP LXer Syndicated Linux News 0 08-23-2006 12:33 AM
LXer: Which Stack is the Best Stack? LXer Syndicated Linux News 0 07-11-2006 07:33 AM
kernel tuning Smokey Slackware 6 02-14-2005 11:46 AM
Tuning Down the Gnome? skarlath00 Linux - Newbie 7 08-17-2004 05:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration