473,785 Members | 3,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_pac ket=1M
set-variable = table_cache=512
set-variable = sort_buffer=2M
set-variable = record_buffer=2 M
set-variable = thread_cache=8
# Try number of CPU's*2 for thread_concurre ncy
set-variable = thread_concurre ncy=4
set-variable = myisam_sort_buf fer_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 3979
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.goo gle.com...
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_pac ket=1M
set-variable = table_cache=512
set-variable = sort_buffer=2M
set-variable = record_buffer=2 M
set-variable = thread_cache=8
# Try number of CPU's*2 for thread_concurre ncy
set-variable = thread_concurre ncy=4
set-variable = myisam_sort_buf fer_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.goo gle.com...
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_pac ket=1M
set-variable = table_cache=512
set-variable = sort_buffer=2M
set-variable = record_buffer=2 M
set-variable = thread_cache=8
# Try number of CPU's*2 for thread_concurre ncy
set-variable = thread_concurre ncy=4
set-variable = myisam_sort_buf fer_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
6479
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 the session variable BUT ... It doesn't work!!! It seems that both set- and readlink open their own private session. How can I get the read-link to access the proper session variable?
3
8274
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 /htdocs/nuke/html/mainfile.php on line 16 PHP Notice: import_request_variables(): No prefix specified - possible security hazard in
8
3535
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 passed to the relevant frames within the frameset. What is the best way of getting this done. Thanks Hans
4
1688
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 "company.php" but I didn't think that php associated them together. The behavior is that "$company" will take on values of the previously accessed $_GET variable. I fixed it by using "$company_info" variable instead but I would really like to know why...
6
1480
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 be accessible to the function, so I declare it having a global scope. Then I execute the function, which should echo the value of the variable. Contrary to what I expected, the variable isn't there. The code of the 2 programs is: script1.php
7
25430
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 name into a document, rather than the variables information? Thanks for yout time, look forward to all replies :)
1
3466
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 lase menu as vander is dynamic now how can i use this variable on .js my js file look like
3
2114
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 session and pass the user to the next page. Here is a sample of the login process page: $user = 'test'; $pass = sha1('testpass'); //set the database connection variables $hostname = "localhost";
3
1845
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 resides on a webserver that supports PHP) is as such: <?php echo("<i>the variable abc contains " . $_GET . "</i>"); ?>
5
2209
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 POST variable into a session variable so I can use it in any other page I want to use it in? Apparently posted variables are only available in the Form page in
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10085
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9947
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.