Main Page | Report this Page
Computers Forum Index  »  Computer - Databases - Ingres  »  output of qe90 Ingres version - (II 2.6/0305...
Page 1 of 1    

output of qe90 Ingres version - (II 2.6/0305...

Author Message
iainm...
Posted: Tue Aug 11, 2009 10:32 am
Guest
I have two identical databases, one of which is a copy made by using
the checkpoint of the first and rolling it forward. They are on
different machines but the archietecture and set up is almost
identical. The tables have the same structure and statistics and the
rollforward takes place on a nightly basis.

The problem I have is that a query runs on one of the machines almost
5 times faster than the other. The QEP for both is the same, yet when
I use qe90 the actual cpu time taken is over double on one of the
machines than the it is on the other. The ed and ad figures are about
the same. Can anybody give me a pointer on how to go about resolving
this?

Thanks

IAIN
 
Mike Leo...
Posted: Tue Aug 11, 2009 5:59 pm
Guest
On Aug 11, 2009, at 5:32 AM, iainm wrote:

Quote:
I have two identical databases, one of which is a copy made by using
the checkpoint of the first and rolling it forward. They are on
different machines but the archietecture and set up is almost
identical. The tables have the same structure and statistics and the
rollforward takes place on a nightly basis.

The problem I have is that a query runs on one of the machines almost
5 times faster than the other. The QEP for both is the same, yet when
I use qe90 the actual cpu time taken is over double on one of the
machines than the it is on the other. The ed and ad figures are about
the same. Can anybody give me a pointer on how to go about resolving
this?

Thanks

IAIN

The word ALMOST caught my eye ...

On both machines, compare

- the contents of ${II_SYSTEM}/ingres/version.rel
- the output of the "ingprenv" command
- the contents of ${II_SYSTEM}/ingres/files/config.dat

The last one is likely where you will find your cache sizes
are radically different. One is likely "tuned up" while the other
is likely a default configuration.

Comparing the config.dat files won't be trivial, but worthwhile, I
would guess.

Cheers,

Michael Leo
Kettle River Consulting
 
nikosv...
Posted: Thu Aug 20, 2009 6:17 am
Guest
On 11 Αύγ, 13:32, iainm <iain.mcne... at (no spam) sqa.org.uk> wrote:
Quote:
I have two identical databases, one of which is a copy made by using
the checkpoint of the first and rolling it forward. They are on
different machines but the archietecture and set up is almost
identical. The tables have the same structure and statistics and the
rollforward takes place on a nightly basis.

The problem I have is that a query runs on one of the machines almost
5 times faster than the other. The QEP for both is the same, yet when
I use qe90 the actual cpu time taken is over double on one of the
machines than the it is on the other. The ed and ad figures are about
the same. Can anybody give me a pointer on how to go about resolving
this?

Thanks

IAIN

There is an article called 'A Procedure to Identify and Fix
Longrunning Queries' at the North American Ingres Users Association
site http://naiua.org/longrunning.php that suggests that the CPU
statistics are not something to be concerened about;quoting :
"When you generate a QEP, you get estimates for Disk I/O (D) and CPU
statistics (C). The CPU statistics are basically useless - you are
concerned with the number of Disk I/O's required. The smaller the
number, the faster the query. It is important to compare the actual
disk I/O required versus the estimated disk I/O."
How did you do the benchmark? If it is 5 times faster then the
bottlneck could be somewhere else
 
Roy Hann...
Posted: Thu Aug 20, 2009 12:06 pm
Guest
nikosv wrote:

Quote:
On 11 Αύγ, 13:32, iainm <iain.mcne... at (no spam) sqa.org.uk> wrote:
I have two identical databases, one of which is a copy made by using
the checkpoint of the first and rolling it forward. They are on
different machines but the archietecture and set up is almost
identical. The tables have the same structure and statistics and the
rollforward takes place on a nightly basis.

The problem I have is that a query runs on one of the machines almost
5 times faster than the other. The QEP for both is the same, yet when
I use qe90 the actual cpu time taken is over double on one of the
machines than the it is on the other. The ed and ad figures are about
the same. Can anybody give me a pointer on how to go about resolving
this?
[snip]
There is an article called 'A Procedure to Identify and Fix
Longrunning Queries' at the North American Ingres Users Association
site http://naiua.org/longrunning.php that suggests that the CPU
statistics are not something to be concerened about;quoting :
"When you generate a QEP, you get estimates for Disk I/O (D) and CPU
statistics (C). The CPU statistics are basically useless - you are
concerned with the number of Disk I/O's required. The smaller the
number, the faster the query. It is important to compare the actual
disk I/O required versus the estimated disk I/O."
How did you do the benchmark? If it is 5 times faster then the
bottlneck could be somewhere else

The above quoted comment is not wildly wrong but it refers to the QEP,
which shows the *predicted* CPU and disk cost before running the query.
The OP here is looking at the output of trace point QE90 which shows
what the query really cost, after running it.

I seem to remember Mike Leo asked for further information to verify that
the two systems really are identical, but I don't think the OP has
responded yet. Right now I like Mike's conjecture that the two
systems are tuned differently.

--
Roy

UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010
Go to http://www.iua.org.uk/join to get on the mailing list.
 
 
Page 1 of 1    
All times are GMT
The time now is Fri Dec 11, 2009 9:07 am