260 likes | 445 Views
Informix Performance Tuning with DBSonar. Young Tan Director, Product Marketing Cobrasonic Software Inc. Aug. 2006 Platform:. Company Background. Cobrasonic Software Inc. is: Independent Software Vendor for IBM/Informix IBM Taiwan Software 1 Tier Reseller
E N D
Informix Performance Tuning with DBSonar Young Tan Director, Product Marketing Cobrasonic Software Inc. Aug. 2006 Platform:
Company Background • Cobrasonic Software Inc. is: • Independent Software Vendor for IBM/Informix • IBM Taiwan Software 1 Tier Reseller • IBM Taiwan Informix Service & Support Partner • International Informix User Group Golden Sponsor • 2006 Q2 - awarded a contract worth US$5.5 million by Chunghwa Telecom Co. Ltd., for providing an IBM Informix Enterprise License and consulting services.
Cobrasonic Partners International U. S. A. U. S. A. Southeast Asia China
IT Executive Dilemma • Reality with RDBMS and Database • Black Box - Informix or any RDBMS • Tens of thousands – SQL Executions daily • Few SQL bottlenecks affect the overall performance • Suggestions from Vendors • Buy larger server with more CPUs? • Upgrade to faster hard disk? • Upgrade to newer OS version? • On-Site consultant?
What deserves my attentions ? For resource intensive performance tuning, What deserves my attentions in performance tuning? SQL statements with High Frequency SQL statements with High Cost SQL statements with Sequential Scan The most influential SQL statements !!!
DBSonar: #1 Informix Application Tuning Tool • DBSonar: • ‘The ultimate diagnostic and performance • tuning tool for IBM Informix databases and applications’ • Apply the SQL Skeleton and Convergence Tech. • Capture the most influential SQL statements
DBSonar: #1 Informix Application Tuning Tool An expert system Configurable Real time Monitoring Repository DB to contain historical data Online Performance Analysis Periodic Performance Analysis Report Features Light cost by watching shared memory Patent-Pending SQL Convergence Tech Java-based GUI client
DBSonar Shared Memory Informix VP DBSonar Process Informix Shared Memory Attached by Informix VP Informix VP Informix VP Informix VP Informix VP Informix VP Informix VP Informix VP Attach to Shared Memory and Take a snap shot every 60 sec
DBSonar Architecture Informix VP DBSonar Virtual Process Informix Shared Memory Attached by Informix VP Informix VP Informix VP Informix VP Informix VP Informix VP Informix VP DBSonar Repository Database Informix VP DBSonar VP passes SM data in separate Repository Database
DBSonar —GUI Presentation Server Switch Panel SQL Fatal Error Monitoring and Alert OS Performance Indicator Database Server Performance Trend DB Profile Network
DBSonar Online - Drill Down to DB Connections Discovery by drill down
DBSonar Online - Drill Down by Session ID Discovery by ID Association Association by Session ID Session ID 1239501 Session ID 1239501
Trend – Get back to last bottleneck 8:00AM this morning?
Trend – SQL at Point in Time 8:00AM this morning? The exact SQL statement running at 8:00am
Trend – Historical data 24 hours to 30 days
SQL:Individual Query Freq and Cost Meaningless data for performance when Frequency == 1
SQL – Typical Informix 4GL with variable DECLARE c_select CURSOR FOR SELECT name, age FROM customer FOR UPDATE LET upd_datate = “UPDATE customer SET (name, age) =(?,?” “WHERE CIRRENT OF c_select” PREPARE p_update FROM upd_stmt FOREACH c_select INTO name_variable, age_variable --- modify the variable EXECUTE p_update USING name_variable, age_variable END FOREACH One SELECT statement by 4GL = 100 UPDATEs for DBA
SQL:Normalization Normalize the spelling and remove strings and constants
SQL:Convergence and Skeleton Converge normalized SQL into SQL Skeleton Frequency by SQL Skeleton is the soul of DBSonar Performance Tuning SQL Skeleton
The solid evidence between DEV & DBA The number of times that is caught by snap shot
DBSonar SQL Tool Select ..from Select ..from Select ..from Sorted by skeleton Sorted into groups Select ..from Select ..from Select ..from Select ..from Sampling Filtering Converging Categorizing Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from 100,000 SQLs 100 SQL Skeletons
SQL 80/20 Rule Select ..from Select ..from Catch the Fewer SQL (20%-) stmts with the most Influence (80%+) Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from Select ..from 80% weight 20%
Summary Performance Tuning Methodology SQL Skeleton & Convergence Technology Identify – The most influential SQL Resolve – SQL Bottlenecks Periodic Performance Analysis Report Guidance – 80/20 Rule Critical stuff first