Session zPE2235 : DB2 Through My Eyes
Martin Packer
martin_packer@uk.ibm.com
Abstract
Bridging the gap in perspectives between DB2 and
System Performance specialists is a perennial concern of
mine: As a specialist in one you're much more valuable if
you can bridge that gap.
This presentation shows some techniques I use to
understand a customer's DB2 environment before I talk to
a customer's DB2 specialists (or indeed my own).
All these techniques are available to you, the data being
readily available. I hope you find them useful.
DB2 Through My Eyes
What Is DB2?
(for the purposes of this discussion)
Subsystems
CPU
CPU ...
ā— Track CPU by e.g. Time Of Day
– Regular variations
– Spikes
ā— Detect split between e.g. zIIP-eligible and non-
– For example, Prefetch and Deferred Write might fall
away at certain times
– What is a reasonable expectation?
ā— Notice when zIIP-eligible work ends up on GCPs
ā— For DIST detect when non-Enclave work is large
– Might suggest issues with e.g. Authentication
Ā© 2014 IBM Corporation8
A DB2 Version DBM1 Address Space's zIIP and CPU Usage Over 24 Hours
Real Memory
ā— SMF 30 data useless for real memory
– Memory service declines if CPU queuing
experienced
ā— Use SMF 72 Subtype 3
– Reporting Class for individual or groups of DB2
subsystems
– Vast majority will be DBM1
ā— Use DB2 IFCID 225 data
– Accurate real memory statistics
Virtual Memory
ā— SMF 30 shows allocated
– Above and below the line
ā— High and Low
– 64-Bit
– Accurate - so far as it goes - for all address spaces
ā— Use DB2 IFCID 225 data
– Accurate virtual memory statistics for DBM1
– IRLM, MSTR, DIST much smaller
ā— Use DB2 Statistics Trace for area usage / value
I/O
ā— Both ā€œsystemā€ and ā€œdatabaseā€ I/O best represented by
SMF 42-6
ā— Database and Table Space / Index Space encoded in
data set qualifiers
– Relatable to buffer pool by the DB2 Catalog
ā— Looking for:
– I/O rate
– cacheability*
– Read / Write ratio
– Components of response time
* Caution over Sync Remote Copy Disconnect Time
Coupling Facility
Parallel Sysplex – Coupling Facility
ā— 3 types of Coupling Facility structure:
– GBPs, LOCK1, SCA
– Often duplexed
– Configurations vary considerably
ā— Lots of useful information
– e.g. LOCK1 False Contention
– e.g. Group Buffer Pool sizing & Data / Directory split
ā— Augment with DB2 Statistics Trace perspective
XCF
Parallel Sysplex - XCF
ā— Most traffic in support of LOCK1
– IXCLOmmm – Telling XES Contention from False
ā— Latter usually caused by Lock structure being too small
– DXRnnnnn – Telling IRLM Contention from XES
ā— Understand how traffic varies with time of day
ā— Note: XCF member job name in R742MJOB
Stored Procedures
ā— Native run in DBM1 address space
ā— Others run in Server Address Spaces
– Stored procedure defined with Application Environment
– Caller runs in a Service Class
– Queue serves combination of SC and AE
– WLM starts and stops address spaces
ā— PGM=DSN9XWLM
ā— Can see e.g. CPU, virtual storage, EXCPs, Unix statistics in SMF 30
– Data set in SMF 42-6
ā— Normally I roll up all address spaces with same name
– Probably not a good idea for server address spaces
– Not rolling up yields start / stop timestamps, balance
– Population might be important and roll up is fine for this
DB2 Through My Eyes
Applications
Application – SMF 30 Usage Data Section
Application Performance - Using SMF 101
ā— CPU usage and lots of elapsed time buckets
– With Trace Classes 1,2,3
– Down to program (Package) with 7,8
ā— SQL counts at program level with 10
ā— For Interactive
– Granularity down to eg CICS Transaction and Program
ā— For DDF
– The SMF way to detect DDF access to a DB2
– Lots of identifiers
ā— Suitable for encoding in WLM Policy
Accounting Trace (SMF 101) - Batch
Specialist Subjects
Workload Manager
ā— SMF 30 identifies Workload, Service Class, Report Class
– I use this to establish if eg DBM1 well classified
ā— DDF requires Accounting Trace
– QWACWLME field
– Allows analysis of what DDF work comes in and how it's classified
ā— WLM ISPF TLIB tells me the rules
Rules
Goal
DDF Rules
Restarts
ā— SMF 30 has Reader Start Time
– Can compare to IPL
– No customer (yet) restarts Production DB2 daily
ā— Some restart weekly or fortnightly
ā— Some have been up for months
– My parallel sysplex customers roll round the sysplex
Gap because I
have data from
Weds onwards
Conclusion
ā— ā€œA bridge, not a bypassā€
ā— In a ā€œcloudierā€ world detecting e.g. DB2
subsystems without specialist instrumention
is valuable.
ā— Understanding what's normal is valuable
– Especially if you can do it with little effort

More Related Content

PDF
Life And Times Of An Address Space
PDF
Munich 2016 - Z011598 Martin Packer - He Picks On CICS
PDF
Time For D.I.M.E?
PDF
Munich 2016 - Z011597 Martin Packer - How To Be A Better Performance Specialist
PDF
Parallel Batch Performance Considerations
PDF
zIIP Capacity Planning
PDF
I Know What You Did THIS Summer
PDF
zIIP Capacity Planning - May 2018
Life And Times Of An Address Space
Munich 2016 - Z011598 Martin Packer - He Picks On CICS
Time For D.I.M.E?
Munich 2016 - Z011597 Martin Packer - How To Be A Better Performance Specialist
Parallel Batch Performance Considerations
zIIP Capacity Planning
I Know What You Did THIS Summer
zIIP Capacity Planning - May 2018

What's hot (19)

PDF
Munich 2016 - Z011601 Martin Packer - Parallel Sysplex Performance Topics topics
PDF
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
PDF
zIIP Capacity Planning
PDF
DB2 for z/OS Real Storage Monitoring, Control and Planning
PDF
DB2 for z/OS - Starter's guide to memory monitoring and control
ODP
Time For DIME
PDF
DB2 Accounting Reporting
PDF
FlashCopy and DB2 for z/OS
PDF
ALL ABOUT DB2 DSNZPARM
Ā 
PDF
DB2 for z/OS and DASD-based Disaster Recovery - Blowing away the myths
PDF
Educational seminar lessons learned from customer db2 for z os health check...
PDF
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
PDF
DB2 10 & 11 for z/OS System Performance Monitoring and Optimisation
PDF
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
PDF
A First Look at the DB2 10 DSNZPARM Changes
PDF
Best practices for DB2 for z/OS log based recovery
PDF
DB2 11 for z/OS Migration Planning and Early Customer Experiences
PDF
Db2 for z/OS and FlashCopy - Practical use cases (June 2019 Edition)
PDF
Parallel Sysplex Performance Topics
Munich 2016 - Z011601 Martin Packer - Parallel Sysplex Performance Topics topics
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
zIIP Capacity Planning
DB2 for z/OS Real Storage Monitoring, Control and Planning
DB2 for z/OS - Starter's guide to memory monitoring and control
Time For DIME
DB2 Accounting Reporting
FlashCopy and DB2 for z/OS
ALL ABOUT DB2 DSNZPARM
Ā 
DB2 for z/OS and DASD-based Disaster Recovery - Blowing away the myths
Educational seminar lessons learned from customer db2 for z os health check...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
DB2 10 & 11 for z/OS System Performance Monitoring and Optimisation
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
A First Look at the DB2 10 DSNZPARM Changes
Best practices for DB2 for z/OS log based recovery
DB2 11 for z/OS Migration Planning and Early Customer Experiences
Db2 for z/OS and FlashCopy - Practical use cases (June 2019 Edition)
Parallel Sysplex Performance Topics
Ad

Similar to DB2 Through My Eyes (20)

PDF
Reduce planned database down time with Oracle technology
ODP
DB2 Data Sharing Performance
PDF
Understanding and building big data Architectures - NoSQL
PDF
DB2 pureScale Overview Sept 2010
PDF
Sql server tips from the field
PDF
Challenges of Building a First Class SQL-on-Hadoop Engine
PDF
Ims12 workbench data visualization - IMS UG May 2014 Sydney & Melbourne
PPTX
Hardware Provisioning
PDF
IBM MQ Disaster Recovery
PDF
A Journey from Oracle to PostgreSQL
Ā 
PPTX
Maximizing performance via tuning and optimization
PPTX
Maximizing performance via tuning and optimization
PPT
OpenPOWER Webinar
PDF
DB2 Design for High Availability and Scalability
PDF
IBM DB2 Analytics Accelerator Trends & Directions by Namik Hrle
PDF
IBM Analytics Accelerator Trends & Directions Namk Hrle
PDF
Database failover from client perspective
PDF
Db2 10 memory management uk db2 user group june 2013 [read-only]
PDF
IMS09 ims v14 higlights
PDF
NA14G05 - A DB2 DBAs Guide to pureScale.pdf
Reduce planned database down time with Oracle technology
DB2 Data Sharing Performance
Understanding and building big data Architectures - NoSQL
DB2 pureScale Overview Sept 2010
Sql server tips from the field
Challenges of Building a First Class SQL-on-Hadoop Engine
Ims12 workbench data visualization - IMS UG May 2014 Sydney & Melbourne
Hardware Provisioning
IBM MQ Disaster Recovery
A Journey from Oracle to PostgreSQL
Ā 
Maximizing performance via tuning and optimization
Maximizing performance via tuning and optimization
OpenPOWER Webinar
DB2 Design for High Availability and Scalability
IBM DB2 Analytics Accelerator Trends & Directions by Namik Hrle
IBM Analytics Accelerator Trends & Directions Namk Hrle
Database failover from client perspective
Db2 10 memory management uk db2 user group june 2013 [read-only]
IMS09 ims v14 higlights
NA14G05 - A DB2 DBAs Guide to pureScale.pdf
Ad

More from Martin Packer (11)

PDF
Even More Fun With DDF
PDF
Munich 2016 - Z011599 Martin Packer - More Fun With DDF
PDF
I Know What You Did Last Summer
PDF
Optimizing z/OS Batch
PDF
Much Ado About CPU
PDF
Much Ado about CPU
PDF
DB2 Data Sharing Performance for Beginners
PDF
Memory Matters in 2011
PDF
Curt Cotner DDF Inactive Threads Support DB2 Version 3
PDF
Coupling Facility CPU
PDF
Much Ado About CPU
Even More Fun With DDF
Munich 2016 - Z011599 Martin Packer - More Fun With DDF
I Know What You Did Last Summer
Optimizing z/OS Batch
Much Ado About CPU
Much Ado about CPU
DB2 Data Sharing Performance for Beginners
Memory Matters in 2011
Curt Cotner DDF Inactive Threads Support DB2 Version 3
Coupling Facility CPU
Much Ado About CPU

Recently uploaded (20)

PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Architecture types and enterprise applications.pdf
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
STKI Israel Market Study 2025 version august
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Abstractive summarization using multilingual text-to-text transfer transforme...
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
The various Industrial Revolutions .pptx
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Developing a website for English-speaking practice to English as a foreign la...
OpenACC and Open Hackathons Monthly Highlights July 2025
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
UiPath Agentic Automation session 1: RPA to Agents
NewMind AI Weekly Chronicles – August ’25 Week III
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Credit Without Borders: AI and Financial Inclusion in Bangladesh
Module 1.ppt Iot fundamentals and Architecture
Architecture types and enterprise applications.pdf
Flame analysis and combustion estimation using large language and vision assi...
1 - Historical Antecedents, Social Consideration.pdf
STKI Israel Market Study 2025 version august
Enhancing emotion recognition model for a student engagement use case through...
Abstractive summarization using multilingual text-to-text transfer transforme...
Chapter 5: Probability Theory and Statistics
The various Industrial Revolutions .pptx
Zenith AI: Advanced Artificial Intelligence
Taming the Chaos: How to Turn Unstructured Data into Decisions
A comparative study of natural language inference in Swahili using monolingua...
Developing a website for English-speaking practice to English as a foreign la...

DB2 Through My Eyes

  • 1. Session zPE2235 : DB2 Through My Eyes Martin Packer martin_packer@uk.ibm.com
  • 2. Abstract Bridging the gap in perspectives between DB2 and System Performance specialists is a perennial concern of mine: As a specialist in one you're much more valuable if you can bridge that gap. This presentation shows some techniques I use to understand a customer's DB2 environment before I talk to a customer's DB2 specialists (or indeed my own). All these techniques are available to you, the data being readily available. I hope you find them useful.
  • 4. What Is DB2? (for the purposes of this discussion)
  • 6. CPU
  • 7. CPU ... ā— Track CPU by e.g. Time Of Day – Regular variations – Spikes ā— Detect split between e.g. zIIP-eligible and non- – For example, Prefetch and Deferred Write might fall away at certain times – What is a reasonable expectation? ā— Notice when zIIP-eligible work ends up on GCPs ā— For DIST detect when non-Enclave work is large – Might suggest issues with e.g. Authentication
  • 8. Ā© 2014 IBM Corporation8 A DB2 Version DBM1 Address Space's zIIP and CPU Usage Over 24 Hours
  • 9. Real Memory ā— SMF 30 data useless for real memory – Memory service declines if CPU queuing experienced ā— Use SMF 72 Subtype 3 – Reporting Class for individual or groups of DB2 subsystems – Vast majority will be DBM1 ā— Use DB2 IFCID 225 data – Accurate real memory statistics
  • 10. Virtual Memory ā— SMF 30 shows allocated – Above and below the line ā— High and Low – 64-Bit – Accurate - so far as it goes - for all address spaces ā— Use DB2 IFCID 225 data – Accurate virtual memory statistics for DBM1 – IRLM, MSTR, DIST much smaller ā— Use DB2 Statistics Trace for area usage / value
  • 11. I/O ā— Both ā€œsystemā€ and ā€œdatabaseā€ I/O best represented by SMF 42-6 ā— Database and Table Space / Index Space encoded in data set qualifiers – Relatable to buffer pool by the DB2 Catalog ā— Looking for: – I/O rate – cacheability* – Read / Write ratio – Components of response time * Caution over Sync Remote Copy Disconnect Time
  • 13. Parallel Sysplex – Coupling Facility ā— 3 types of Coupling Facility structure: – GBPs, LOCK1, SCA – Often duplexed – Configurations vary considerably ā— Lots of useful information – e.g. LOCK1 False Contention – e.g. Group Buffer Pool sizing & Data / Directory split ā— Augment with DB2 Statistics Trace perspective
  • 14. XCF
  • 15. Parallel Sysplex - XCF ā— Most traffic in support of LOCK1 – IXCLOmmm – Telling XES Contention from False ā— Latter usually caused by Lock structure being too small – DXRnnnnn – Telling IRLM Contention from XES ā— Understand how traffic varies with time of day ā— Note: XCF member job name in R742MJOB
  • 16. Stored Procedures ā— Native run in DBM1 address space ā— Others run in Server Address Spaces – Stored procedure defined with Application Environment – Caller runs in a Service Class – Queue serves combination of SC and AE – WLM starts and stops address spaces ā— PGM=DSN9XWLM ā— Can see e.g. CPU, virtual storage, EXCPs, Unix statistics in SMF 30 – Data set in SMF 42-6 ā— Normally I roll up all address spaces with same name – Probably not a good idea for server address spaces – Not rolling up yields start / stop timestamps, balance – Population might be important and roll up is fine for this
  • 19. Application – SMF 30 Usage Data Section
  • 20. Application Performance - Using SMF 101 ā— CPU usage and lots of elapsed time buckets – With Trace Classes 1,2,3 – Down to program (Package) with 7,8 ā— SQL counts at program level with 10 ā— For Interactive – Granularity down to eg CICS Transaction and Program ā— For DDF – The SMF way to detect DDF access to a DB2 – Lots of identifiers ā— Suitable for encoding in WLM Policy
  • 21. Accounting Trace (SMF 101) - Batch
  • 23. Workload Manager ā— SMF 30 identifies Workload, Service Class, Report Class – I use this to establish if eg DBM1 well classified ā— DDF requires Accounting Trace – QWACWLME field – Allows analysis of what DDF work comes in and how it's classified ā— WLM ISPF TLIB tells me the rules
  • 26. Restarts ā— SMF 30 has Reader Start Time – Can compare to IPL – No customer (yet) restarts Production DB2 daily ā— Some restart weekly or fortnightly ā— Some have been up for months – My parallel sysplex customers roll round the sysplex Gap because I have data from Weds onwards
  • 27. Conclusion ā— ā€œA bridge, not a bypassā€ ā— In a ā€œcloudierā€ world detecting e.g. DB2 subsystems without specialist instrumention is valuable. ā— Understanding what's normal is valuable – Especially if you can do it with little effort

Editor's Notes

  • #9: This graph plots SMF 30 data for a different customer – for one of its Production DB2 subsystems. This is for a DBM1 address space running DB2 Version 10 and with the fix for APAR PM30468 applied (which moves the CPU from MSTR to DBM1 for Prefetch and Deferred Write engines).The three numbers are: Percent of the combined TCB and zIIP CPU that is zIIP. Percent of a processor that is zIIP. Percent of a processor that is GCP. Data is for 24 hours summarised by 15-minute interval. In this case GCPs are full speed: Both R723NFFS and SMF30SNF are 256. There is some variation in the level of zIIP eligibility – but it is generally 70 – 80 % of the DBM1 CPU. But there are times when it's much lower, presumably because the level of Prefetch / Deferred Write is much lower. Note: SMF30CPT does not include zIIP-eligible CPU running on a zIIP. It does include zIIP-eligible work running on a GCP. There was very little in this case.