751 SQL/Second on 2-way pSeries!

I was recently talking with a bank and the DBA told me they had a pretty active database that performed 200,000 SQL per hour.  I'm sure this rate of SQL won't set any world records, but it did inspire me to do a few performance science projects of my own.

DBI recently purchased a 2-way pSeries machine with 2GB memory and over 500GB disk across 8 73GB drives.  It runs AIX 5.3 and DB2 UDB LUW 8.2.2.

WOW!  GREAT RESULTS! 

I ran 200,000 SQL statements across two db2batch connections in parallel and completed 400,000 SQL in 11 minutes 45 seconds - 567/Second or over 2,000,000 per hour!  The table has 2,111,928 rows.

EVEN BETTER!

200,000 SQL statements across three db2batch connections in parallel completed 600,000 SQL in 13 minutes 18 seconds!  751 SQL/Second!  2.7M/Hour!

Gee, I guess I should start tuning this database now.  LOL!  icon_lol

Cheers,

Scott


PS - How fast is your database? Drop a comment and let us know.




1997 - Tune DB2 while you fish, golf...

Who'd have thought?

It was back in 1997 that I first presented "Tune DB2 While You Golf" at an IBM DB2 Technical Conference. The idea back then was to help people automate the analysis and tuning of their DB2 databases.

Now it's 2005, and IBM has made the vision of autonomic tuning a reality, and they continue to enhance DB2's autonomic tuning and management capabilities.

The Index Advisor was born in DB2 UDB V6, and in V8.2 IBM gave us the gift of the Design Advisor. Have you tried out this remarkable DB2 technology yet? It is by far my favorite autonomic computing feature of DB2.

I was speaking with someone at the IBM Toronto Lab recently and I shared with him a number of Index/Design Advisor success stories from past consulting engagements. He, as a key contributor towards the Design Advisor technology, was quite pleased to learn of the dramatic and substantial ways that this technology helps IBM DB2 customers.

Without naming names (we are, after all, a privacy obsessed world), I thought it might be helpful for DB2 UDB LUW users in general to be aware of some of these success stories.

icon_smile

Getting Business Done in a Fraction of the Time

There's a company in Maryland running SAP R3 on DB2/AIX.  There was a warehouse transaction that was taking over 3 minutes to complete.  An SAP America consultant had been on site working this problem for over 3 months when I showed up.  I performed an SQL Workload Analysis as described by DB2 Magazine article Measure, Improve, Repeat and found an SQL statement using some 90%+ of CPU time with average response time of about 90 seconds, and this statement was run twice for each transaction.  We passed this statement to the IBM Advisor (db2advis), and it provided us with an index solution that cut transaction response time from 3 minutes down to about 10 seconds.  By combining SQL Equalization and Cost Aggregation workload analysis with db2advis, we solved a difficult performance problem in about two hours that another "expert" had already been working on for 3 months.

Cutting Machine CPU Utilization by 80%

There's a company in Poughkeepsie NY running DB2/AIX.  Their machine was running 100% CPU busy all day and transaction response times were unacceptably slow.  After performing SQL Equalization and Cost Aggregation as described by US Patent 6,772,411, a very costly SQL statement was discovered that had a very inefficient access strategy.  This statement was passed into db2advis, and the Advisor provided an index solution that cut CPU utilization on the machine by more than 80%.  Not surprisingly, transaction response times started to fly.


Attention!

Please be aware that the Design Advisor aggressively favors Index Only Access and makes liberal use of suggesting multi-column composite indexes.  The DBA should make sure that suggested indexes do not cause redundant indexes to exist, that the suggested indexes have sufficiently high cardinality relative to the base table cardinality (at least 80% as a rule of thumb), and that the suggested indexes are not subject to skewed values.


Design Advisor Help

At the command prompt, you can easily get help with the Advisor tool by using the command:

$ db2advis -h


I hope this blog post is helpful for some of the readers.  Do you have a db2advis success story?  Please post a brief comment and tell us about it.

Regards,

Scott




Page :  1