473,385 Members | 2,004 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,385 software developers and data experts.

Variable PHP-mySQL response time on Suse 8.2 dual-processor

I have a relatively modest mySQL database with a PHP interface (70,000
entries). On a standard Dell Dimension 4400 (1.9 GHz with 512 Mbytes)
running Suse 8.1 a typical query takes 0.66 sec with no other system
load (http://icsd.ill.fr/)

On a new IBM dual processor XEON 2.4GHZ (1 GO RAM & 2 SCSI disks)
running Suse 8.2 the same query (with no other system load) takes
anywhere between 0.5 and 3.0 seconds - randomly variable response for
no obvious reason ! With only one query, only one processor is being
used, but why is the response so variable ? What can I try to track
down the problem ? After searching Google, I tried playing with renice
and my.cnf variables (below) but that made no difference.

skip-locking
set-variable = key_buffer=384M
set-variable = max_allowed_packet=1M
set-variable = table_cache=512
set-variable = sort_buffer=2M
set-variable = record_buffer=2M
set-variable = thread_cache=8
# Try number of CPU's*2 for thread_concurrency
set-variable = thread_concurrency=4
set-variable = myisam_sort_buffer_size=64M

I am not a database/system expert - just a scientist trying to use
these things.

Alan <He***@ill.fr>
Jul 19 '05 #1
2 3962
1. Do desc table name and make sure keys are the same and that there are
keys defined and used in the query
2. maybe try "explain yourentirequery" to see if it's using the defined keys
as expected
3. open a second shell and run w or top while doing the query....what for
other processes eating up the machine.
4. if needed, put the query into a loop to keep it running.
that's sure a disappointment isn't it. big machine and slower, and almost
worse: inconsistent.
dp

"Alan Hewat" <he***@ill.fr> wrote in message
news:9f**************************@posting.google.c om...
I have a relatively modest mySQL database with a PHP interface (70,000
entries). On a standard Dell Dimension 4400 (1.9 GHz with 512 Mbytes)
running Suse 8.1 a typical query takes 0.66 sec with no other system
load (http://icsd.ill.fr/)

On a new IBM dual processor XEON 2.4GHZ (1 GO RAM & 2 SCSI disks)
running Suse 8.2 the same query (with no other system load) takes
anywhere between 0.5 and 3.0 seconds - randomly variable response for
no obvious reason ! With only one query, only one processor is being
used, but why is the response so variable ? What can I try to track
down the problem ? After searching Google, I tried playing with renice
and my.cnf variables (below) but that made no difference.

skip-locking
set-variable = key_buffer=384M
set-variable = max_allowed_packet=1M
set-variable = table_cache=512
set-variable = sort_buffer=2M
set-variable = record_buffer=2M
set-variable = thread_cache=8
# Try number of CPU's*2 for thread_concurrency
set-variable = thread_concurrency=4
set-variable = myisam_sort_buffer_size=64M

I am not a database/system expert - just a scientist trying to use
these things.

Alan <He***@ill.fr>

Jul 19 '05 #2
1. Do desc table name and make sure keys are the same and that there are
keys defined and used in the query
2. maybe try "explain yourentirequery" to see if it's using the defined keys
as expected
3. open a second shell and run w or top while doing the query....what for
other processes eating up the machine.
4. if needed, put the query into a loop to keep it running.
that's sure a disappointment isn't it. big machine and slower, and almost
worse: inconsistent.
dp

"Alan Hewat" <he***@ill.fr> wrote in message
news:9f**************************@posting.google.c om...
I have a relatively modest mySQL database with a PHP interface (70,000
entries). On a standard Dell Dimension 4400 (1.9 GHz with 512 Mbytes)
running Suse 8.1 a typical query takes 0.66 sec with no other system
load (http://icsd.ill.fr/)

On a new IBM dual processor XEON 2.4GHZ (1 GO RAM & 2 SCSI disks)
running Suse 8.2 the same query (with no other system load) takes
anywhere between 0.5 and 3.0 seconds - randomly variable response for
no obvious reason ! With only one query, only one processor is being
used, but why is the response so variable ? What can I try to track
down the problem ? After searching Google, I tried playing with renice
and my.cnf variables (below) but that made no difference.

skip-locking
set-variable = key_buffer=384M
set-variable = max_allowed_packet=1M
set-variable = table_cache=512
set-variable = sort_buffer=2M
set-variable = record_buffer=2M
set-variable = thread_cache=8
# Try number of CPU's*2 for thread_concurrency
set-variable = thread_concurrency=4
set-variable = myisam_sort_buffer_size=64M

I am not a database/system expert - just a scientist trying to use
these things.

Alan <He***@ill.fr>

Jul 19 '05 #3

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

Similar topics

5
by: Peter | last post by:
L.S. I am developing a PHP-login script (on Lycos Tripod) that uses Session to pass on variables. Below is the entire (stripped) structure that I use. It opens a page where you can Set and Read...
3
by: Dan Finn | last post by:
OpenBSD 3.2 Apache 1.3.26 PHP 4.3.4 PHP-Nuke 6.9 getting these in the apache error log: Sun Nov 16 20:20:16 2003] PHP Notice: Undefined variable: HTTP_USER_AGENT in...
8
by: Hans | last post by:
Hi There, I have a page that has links with some variables and I need to open the results set in a frameset. I have tried doing this in various different ways, but still cannot get the variable...
4
by: Lost arcade | last post by:
I am using PHP 4.3.4 and found something strange with a variable name. When I try to use "$company" variable (lowercase), I get odd behavior from that variable. The name of my php file is...
6
by: Maarten | last post by:
Here is a nice problem. I have two scripts, one calling the other with via an include. The script that is included contains a variable, a function and a call to that function. The variable needs to...
7
by: Dawsons | last post by:
So i sit here thinking, and wondering... say for example i have a variable called $definition_london Say for exaple that has not set value... Is it possible to echoe thew ACTUAL variable...
1
by: sandeepifw | last post by:
plz help I have a php variable $content on page menu.php now i wnt to use its value on page menu_items.js hear menu_items.js create a menubar.its contan both static and dynamic menu my...
3
by: Jack | last post by:
Hi everyone, I am stuck on something really stupid and simple. Here is what I am trying to do. Login, check the username and password against db and if it checks out then check the logged variable...
3
by: leonardodiserpierodavinci | last post by:
Hi. Sorry for what is perhaps a neophyte question: is it possible to pass a variable to a PHP script from inside another PHP piece of code? For instance, the file test.php (which of course...
5
by: Twayne | last post by:
Hi, If ever a newbie wants to know how much he has to learn yet, he only has to look here<g>!! ANYway: PHP 5.2.5; XP Pro SP2+, local Apache Server My actual question is: How do I get a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.