A DB2 Performance Tuning Roadmap:: A High-Level View On Managing The Performance of DB2 For z/OS
A DB2 Performance Tuning Roadmap:: A High-Level View On Managing The Performance of DB2 For z/OS
Tuning Roadmap:
A High-Level View on Managing the
Performance of DB2 for z/OS
Craig S. Mullins
Mullins Consulting, Inc.
15 Coventry Court
Sugar Land, TX 77479
http://www.craigsmullins.com
Copyright 1999
http://www.CraigSMullins.com/DPTR.pdf
1. The Tuning Progression
Problem Resolution
• Application
− SQL
− Host Language Code
• Database
− Indexes
− Database and Index Organization
− Database Design (normalization / denormalization)
• DB2 Subsystem
− ZPARMs, Pools, Locking, IRLM, DDF, etc.
• Environment
− Network
− TP Monitor (CICS, IMS/TM)
− Operating System
3 thru 8
I/O
DB2 Performance Tuning Roadmap
© 2005, Craig S. Mullins (Mullins Consulting, Inc.)
DB2 Performance Tuning Roadmap
© 2005, Craig S. Mullins (Mullins Consulting, Inc.)
4. Application Tuning: Optimization
DB2
Catalog Optimized
Access
DBAS Path(s)
Optimization (DSNDBM1)
Hint
DATABASE Index
Segmented
Tablespace Index
Table
Index
LOB
Table
Table Tablespace
w/LOB
Auxiliary
Index
Simple (LOB)
Tablespace Table
Table Index
Table
Index
Table Non-Partitioning
Table
Index
Partitioned
Tablespace Partitioning Separate LOB
Index Tablespace
per Partition
(for each
w/LOB LOB column)
Auxiliary
(LOB)
Table
DB2 Performance Tuning Roadmap
© 2005, Craig S. Mullins (Mullins Consulting, Inc.)
9. Database Organization
• Be sure to run RUNSTATS
− as data volume changes, new data structures added
− followed by (RE)BIND with /EXPLAIN(YES)
• Review statistics to determine when to REORG
− NEARINDREF and FARINDREF
− LEAFDIST, PERCDROP
− For clustering indexes
♦ NEAROFFPOSF and FAROFFPOSF
♦ CLUSTERRATIOF
– Analyze access patterns before reorganizing
♦ Random vs. sequential
♦ Consider automation
SPAS DDF
Stored Distributed
Procedure Data
Address Facility
Space
VSAM
Media
Manager
Data
V8 breaks each
CT DS DS SKPT
out into sep-
arate “pools”
Application
Database
DB2 Subsystem
Environment
(281) 494-6153