SlideShare a Scribd company logo
1 of 25
Download to read offline
AWR1page
Sanity checking time instrumentation in AWR Reports
By: JB
(part 1)
Acknowledgements
• Kevin Closson / Connor McDonald
• Graham Wood
• Lothar Flatz / Wolfgang Breitling / Alberto Dell’Era
• Toon Koppelaars
Origins of AWR1page
• OakTable inquiries about unusual AWR reports
• What to do when people smarter than you ask your
help making sense of something?
• first time: do a presentation
• AWR Ambiguity, OTW 2015
• second time: write a program
• AWR1page, OTW 2016
OTW 2015: AWR Ambiguity
Instrumentation issues and symptoms
Symptom Possible issue
DB CPU >> ASH CPU
(and significant wait time)
CPU used within wait
(this was the issue here)
ASH CPU >> DB CPU
System CPU-bound
(ASH includes run-queue)
DB Time >> DB CPU + Wait
(and not CPU-bound)
Un-instrumented wait
(in call, not in wait, not on CPU)
DB Time >> ASH DB Time
1. Double-counted DB Time
2. ASH dropped samples
Model: Oracle Time = CPU + Wait
• Account for time spent executing Oracle code by either
background or foreground processes
• Oracle processes are either ON CPU or Actively Waiting
• Assuming DB Time is correct, two possible issues:
• DB Time < CPU + Wait
• DB Time > CPU + Wait
Oracle Time
CPU Time Wait Time
Oracle Time < CPU + Wait
• Issue is CPU under Wait: time is being double-
counted
• TM CPU + WT wait > DB Time; ASH wait ~ WT wait
Oracle Time
CPU Time Wait Time
Oracle Time
CPU Time Wait TimeCPU under wait
Oracle Time > CPU + Wait
• Is Wait under-counted? un-instrumented wait?
• ASH CPU > TM CPU; TM CPU ~ OS CPU
• Is CPU under-counted? AIX? course timers?
• ASH CPU > TM CPU; ASH wait ~ WT wait
Oracle Time
CPU Time Wait Time
The AIX CPU problem
• AIX with SMT turned on reports CPU strangely
• I don’t understand it quite
• According to Graham: “it’s just broken”
• OakTable blog reference: Marcin Przepiorowski
• http://oracleprof.blogspot.it/2013/02/oracle-on-aix-
wheres-my-cpu-time.html
• Graham: Increase reported CPU values by 50% for SMT=4
for more realistic picture
Checking Model Consistency
• Consistency checking is very difficult
• AWR reports are massive

(most of it irrelevant for any specific situation)
• Data scattered about in report
• Timing info is difficult to compare
• Units vary, breakdowns inconsistent
Objectives for AWR1page
• Facilitate high-level assessment of Oracle
instrumentation consistency with respect to timing
information: CPU and Wait time
• Facilitate high-level insight into Oracle system size
and utilization levels
• In 1 page, using only AWR text report as input
Idea: Measure x Source Matrix
INFO OSSTAT TIME MODEL ASH
HOST CPU
ORCL CPU
WAIT
MISC
Compare rows
for equality
Columns should
add upward
measures
data sources
Values from AWR report
INFO *
cores
cpus
threads/core
memory
OSSTAT
X
X
X*
X
TIME MODEL ASH
ORCL .
total .
FG
BG
.
.
.
.

X
X
X
.
X
X
X*
CPU load .
. busy
i/o wait
scheduler
ORCL .
FG
BG
X
X
X
X
.
.
.
.
.
.
.
X
X
X
.
.
.
.
X
X
X*
WAIT
MISC
Design Mockup
AWR1page cores: nn cpus: nn threads: nn elapsed:nnnn.m
measure OSSTAT TIME MODEL ASH WAIT CLASS
HOST LOAD [nn:mm]
CPU BUSY [nn:mm]
USER nn
SYS nn
IOWAIT [nn:mm]
OS_CPU_WAIT [nn:mm]
ORACLE
AVG ACTIVE SESSIONS (BG & FG) [nn:mm] [nn:mm]
CPU [nn:mm] [nn:mm]
FG nn
BG nn
RES_MGR_CPU_WAIT nn
WAIT [nn:mm] [nn:mm] [nn:mm]
FG nn nn nn
BG nn dd* dd*
Scheduler nn
MISC: CPU per user call n.mmmm n.mmmm n.mmmm
Design notes
• AAS = Average Active [ Sessions | Processes | Threads| Cores ]
• instrumentation time / elapsed time
• All numbers on the sparse matrix are in AAS
• Comparable measures from different sources on same line
• Indentation and vertical position represent decomposition
• Some cells show core-normalized AAS
• [nn:mm] where nn=AAS, mm=AAS/cores
version 2c: 634 lines of awk
AWR1page
file: awrKC.txt
platform: Linux x86 64-bit cores: 36
RAC: NO cpus: 72
release: 12.1.0.2.0 threads/core: 2
elapsed: 2.02 (min) sessions(end): 56
snaps: 1
========================================================================================================================
measure | OSSSTAT | TIME MODEL | ASH | WAIT CLASS
========================================================================================================================
HOST LOAD [7.80:0.22]
CPU BUSY [5.99:0.17]
USER 2.27
SYS 3.72
IOWAIT [3.00:0.08]
OS_CPU_WAIT N/A
........................................................................................................................
ORACLE
AVERAGE ACTIVE SESSIONS (BG+FG) [4.98:0.14] [4.58:0.13]
CPU [2.02:0.06] [0.50:0.01]
FG 2.00
BG 0.01
RSRC_MGR_CPU_WAIT N/A
WAIT [2.96:0.08] [4.08:0.11] [4.32:0.12]
FG 2.96 4.32
BG 0.00 *0.00
IOWAIT 4.32
FG 4.32
Scheduler 0.00
........................................................................................................................
MISC
CPU per call (ms) 3781.98 10.50 312.50
user calls/sec 1.58
CPU bound?
end of part 1
AWR1page (part 2)
Sanity checking time instrumentation in AWR Reports
By: JB
Two originating case studies
• 1 : Benchmarking I/O subsystems with Oracle

(aka “being a SLOB”)
• 2 : Random question on AskTom about strange
numbers in AWR
Case #1
AWR1page
file: awrKC.txt
platform: Linux x86 64-bit cores: 36
RAC: NO cpus: 72
release: 12.1.0.2.0 threads/core: 2
elapsed: 2.02 (min) sessions(end): 56
snaps: 1
========================================================================================================================
measure | OSSSTAT | TIME MODEL | ASH | WAIT CLASS
========================================================================================================================
HOST LOAD [7.80:0.22]
CPU BUSY [5.99:0.17]
USER 2.27
SYS 3.72
IOWAIT [3.00:0.08]
OS_CPU_WAIT N/A
........................................................................................................................
ORACLE
AVERAGE ACTIVE SESSIONS (BG+FG) [4.98:0.14] [4.58:0.13]
CPU [2.02:0.06] [0.50:0.01]
FG 2.00
BG 0.01
RSRC_MGR_CPU_WAIT N/A
WAIT [2.96:0.08] [4.08:0.11] [4.32:0.12]
FG 2.96 4.32
BG 0.00 *0.00
IOWAIT 4.32
FG 4.32
Scheduler 0.00
........................................................................................................................
MISC
CPU per call (ms) 3781.98 10.50 312.50
user calls/sec 1.58
AWR1page
file: awrKC.txt
platform: Linux x86 64-bit cores: 36
RAC: NO cpus: 72
release: 12.1.0.2.0 threads/core: 2
elapsed: 2.02 (min) sessions(end): 56
snaps: 1
========================================================================================================================
measure | OSSSTAT | TIME MODEL | ASH | WAIT CLASS
========================================================================================================================
HOST LOAD [7.80:0.22]
CPU BUSY [5.99:0.17]
USER 2.27
SYS 3.72
IOWAIT [3.00:0.08]
OS_CPU_WAIT N/A
........................................................................................................................
ORACLE
AVERAGE ACTIVE SESSIONS (BG+FG) [4.98:0.14] [4.58:0.13]
CPU [2.02:0.06] [0.50:0.01]
FG 2.00
BG 0.01
RSRC_MGR_CPU_WAIT N/A
WAIT [2.96:0.08] [4.08:0.11] [4.32:0.12]
FG 2.96 4.32
BG 0.00 *0.00
IOWAIT 4.32
FG 4.32
Scheduler 0.00
........................................................................................................................
MISC
CPU per call (ms) 3781.98 10.50 312.50
user calls/sec 1.58
Decent-sized Linux system running Oracle 12
DB Time < DB CPU + Wait => CPU under (IO) wait
nontrivial IO wait
CPU ok
bedrock
IO wait = 1 aas CPU + 3 aas wait
Case #2
AWR1page
file: QS02FNT_AWR_AskTom.txt
platform: AIX-Based Systems (64-bit) cores: 2
RAC: NO cpus: 8
release: 12.1.0.2.0 threads/core: 4
elapsed: 44.22 (min) sessions(end): 91
snaps: 3
========================================================================================================================
measure | OSSSTAT | TIME MODEL | ASH | WAIT CLASS
========================================================================================================================
HOST LOAD [4.12:2.06]
CPU BUSY [1.13:0.57]
USER 0.66
SYS 0.47
IOWAIT [0.07:0.03]
OS_CPU_WAIT [4.06:2.03]
........................................................................................................................
ORACLE
AVERAGE ACTIVE SESSIONS (BG+FG) [0.62:0.31] [0.72:0.36]
CPU [0.13:0.07] [0.66:0.33]
FG 0.13
BG 0.01
RSRC_MGR_CPU_WAIT 0.00
WAIT [0.48:0.24] [0.06:0.03] [0.05:0.03]
FG 0.42 0.01
BG 0.07 *0.05
IOWAIT 0.03
FG 0.00
Scheduler 0.00
........................................................................................................................
MISC
CPU per call (ms) 115.47 0.01 60.02
user calls/sec 9.80
AWR1page
file: QS02FNT_AWR_AskTom.txt
platform: AIX-Based Systems (64-bit) cores: 2
RAC: NO cpus: 8
release: 12.1.0.2.0 threads/core: 4
elapsed: 44.22 (min) sessions(end): 91
snaps: 3
========================================================================================================================
measure | OSSSTAT | TIME MODEL | ASH | WAIT CLASS
========================================================================================================================
HOST LOAD [4.12:2.06]
CPU BUSY [1.13:0.57]
USER 0.66
SYS 0.47
IOWAIT [0.07:0.03]
OS_CPU_WAIT [4.06:2.03]
........................................................................................................................
ORACLE
AVERAGE ACTIVE SESSIONS (BG+FG) [0.62:0.31] [0.72:0.36]
CPU [0.13:0.07] [0.66:0.33]
FG 0.13
BG 0.01
RSRC_MGR_CPU_WAIT 0.00
WAIT [0.48:0.24] [0.06:0.03] [0.05:0.03]
FG 0.42 0.01
BG 0.07 *0.05
IOWAIT 0.03
FG 0.00
Scheduler 0.00
........................................................................................................................
MISC
CPU per call (ms) 115.47 0.01 60.02
user calls/sec 9.80
AIX = CPU red fag
CPU bound? maybe
small system

SMT = 4
TM ~ ASH
ASH ~ Wait
DB Time > DB CPU + Wait => CPU under-report or run-queue
0.56
0.06
??
end of part 2

More Related Content

What's hot

Oracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersOracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersKyle Hailey
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsEnkitec
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsJohn Beresniewicz
 
How to find what is making your Oracle database slow
How to find what is making your Oracle database slowHow to find what is making your Oracle database slow
How to find what is making your Oracle database slowSolarWinds
 
Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014John Beresniewicz
 
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Kristofferson A
 
Analyzing and Interpreting AWR
Analyzing and Interpreting AWRAnalyzing and Interpreting AWR
Analyzing and Interpreting AWRpasalapudi
 
Oracle performance tuning_sfsf
Oracle performance tuning_sfsfOracle performance tuning_sfsf
Oracle performance tuning_sfsfMao Geng
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And Whatudaymoogala
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
 
Whitepaper: Mining the AWR repository for Capacity Planning and Visualization
Whitepaper: Mining the AWR repository for Capacity Planning and VisualizationWhitepaper: Mining the AWR repository for Capacity Planning and Visualization
Whitepaper: Mining the AWR repository for Capacity Planning and VisualizationKristofferson A
 
VirtaThon 2011 - Mining the AWR
VirtaThon 2011 - Mining the AWRVirtaThon 2011 - Mining the AWR
VirtaThon 2011 - Mining the AWRKristofferson A
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAiougVizagChapter
 
Advanced tips for making Oracle databases faster
Advanced tips for making Oracle databases fasterAdvanced tips for making Oracle databases faster
Advanced tips for making Oracle databases fasterSolarWinds
 
Oracle Database Performance Tuning Concept
Oracle Database Performance Tuning ConceptOracle Database Performance Tuning Concept
Oracle Database Performance Tuning ConceptChien Chung Shen
 
AWR DB performance Data Mining - Collaborate 2015
AWR DB performance Data Mining - Collaborate 2015AWR DB performance Data Mining - Collaborate 2015
AWR DB performance Data Mining - Collaborate 2015Yury Velikanov
 
Whitepaper: Where did my CPU go?
Whitepaper: Where did my CPU go?Whitepaper: Where did my CPU go?
Whitepaper: Where did my CPU go?Kristofferson A
 
Oracle Database Performance Tuning Basics
Oracle Database Performance Tuning BasicsOracle Database Performance Tuning Basics
Oracle Database Performance Tuning Basicsnitin anjankar
 

What's hot (20)

Oracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersOracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmasters
 
Intro to ASH
Intro to ASHIntro to ASH
Intro to ASH
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
 
How to find what is making your Oracle database slow
How to find what is making your Oracle database slowHow to find what is making your Oracle database slow
How to find what is making your Oracle database slow
 
Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014
 
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
 
Analyzing and Interpreting AWR
Analyzing and Interpreting AWRAnalyzing and Interpreting AWR
Analyzing and Interpreting AWR
 
Ash and awr deep dive hotsos
Ash and awr deep dive hotsosAsh and awr deep dive hotsos
Ash and awr deep dive hotsos
 
Oracle performance tuning_sfsf
Oracle performance tuning_sfsfOracle performance tuning_sfsf
Oracle performance tuning_sfsf
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
Whitepaper: Mining the AWR repository for Capacity Planning and Visualization
Whitepaper: Mining the AWR repository for Capacity Planning and VisualizationWhitepaper: Mining the AWR repository for Capacity Planning and Visualization
Whitepaper: Mining the AWR repository for Capacity Planning and Visualization
 
VirtaThon 2011 - Mining the AWR
VirtaThon 2011 - Mining the AWRVirtaThon 2011 - Mining the AWR
VirtaThon 2011 - Mining the AWR
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_features
 
Advanced tips for making Oracle databases faster
Advanced tips for making Oracle databases fasterAdvanced tips for making Oracle databases faster
Advanced tips for making Oracle databases faster
 
Oracle Database Performance Tuning Concept
Oracle Database Performance Tuning ConceptOracle Database Performance Tuning Concept
Oracle Database Performance Tuning Concept
 
AWR DB performance Data Mining - Collaborate 2015
AWR DB performance Data Mining - Collaborate 2015AWR DB performance Data Mining - Collaborate 2015
AWR DB performance Data Mining - Collaborate 2015
 
Whitepaper: Where did my CPU go?
Whitepaper: Where did my CPU go?Whitepaper: Where did my CPU go?
Whitepaper: Where did my CPU go?
 
Oracle Database Performance Tuning Basics
Oracle Database Performance Tuning BasicsOracle Database Performance Tuning Basics
Oracle Database Performance Tuning Basics
 

Viewers also liked

The Most Important Things You Should Know about Oracle®
The Most Important Things You Should Know about Oracle®The Most Important Things You Should Know about Oracle®
The Most Important Things You Should Know about Oracle®Cary Millsap
 
Agile Data Warehousing: Using SDDM to Build a Virtualized ODS
Agile Data Warehousing: Using SDDM to Build a Virtualized ODSAgile Data Warehousing: Using SDDM to Build a Virtualized ODS
Agile Data Warehousing: Using SDDM to Build a Virtualized ODSKent Graziano
 
History of database monitoring
History of database monitoringHistory of database monitoring
History of database monitoringKyle Hailey
 
Accenture Enkitec Group: Oracle database and Engineered Systems
Accenture Enkitec Group: Oracle database and Engineered SystemsAccenture Enkitec Group: Oracle database and Engineered Systems
Accenture Enkitec Group: Oracle database and Engineered SystemsAccenture Operations
 
10 Ways to Improve Your Social Media Strategy Immediately
10 Ways to Improve Your Social Media Strategy Immediately10 Ways to Improve Your Social Media Strategy Immediately
10 Ways to Improve Your Social Media Strategy ImmediatelyRebekah Radice
 
Teaching the Rx Narrative; Story as Medicine
Teaching the Rx Narrative; Story as MedicineTeaching the Rx Narrative; Story as Medicine
Teaching the Rx Narrative; Story as MedicineMarie Ennis-O'Connor
 
進化したのはサーバだけじゃない!〜DBA の毎日をもっと豊かにするユーティリティのすすめ〜
進化したのはサーバだけじゃない!〜DBA の毎日をもっと豊かにするユーティリティのすすめ〜進化したのはサーバだけじゃない!〜DBA の毎日をもっと豊かにするユーティリティのすすめ〜
進化したのはサーバだけじゃない!〜DBA の毎日をもっと豊かにするユーティリティのすすめ〜Michitoshi Yoshida
 
Human toxicity, environmental impact and legal implications of water fluorida...
Human toxicity, environmental impact and legal implications of water fluorida...Human toxicity, environmental impact and legal implications of water fluorida...
Human toxicity, environmental impact and legal implications of water fluorida...Declan Waugh
 
These words I share, written from despair, read them, speak them, but do so w...
These words I share, written from despair, read them, speak them, but do so w...These words I share, written from despair, read them, speak them, but do so w...
These words I share, written from despair, read them, speak them, but do so w...Blair Stuart
 
正規言語について
正規言語について正規言語について
正規言語についてJumpei Ogawa
 
Isu isu trenda terkini dalam teknologi pendidikan
Isu isu trenda terkini dalam teknologi pendidikanIsu isu trenda terkini dalam teknologi pendidikan
Isu isu trenda terkini dalam teknologi pendidikanRenee Evelyn
 
Hazop gijutsushikai chubu koukuukai
Hazop gijutsushikai chubu koukuukai Hazop gijutsushikai chubu koukuukai
Hazop gijutsushikai chubu koukuukai Kiyoshi Ogawa
 
Yapc Asia 2009 ペパボでのPerlの使い方
Yapc Asia 2009 ペパボでのPerlの使い方Yapc Asia 2009 ペパボでのPerlの使い方
Yapc Asia 2009 ペパボでのPerlの使い方hiboma
 
Ruby HTTP clients comparison
Ruby HTTP clients comparisonRuby HTTP clients comparison
Ruby HTTP clients comparisonHiroshi Nakamura
 
The New Framework for Information Literacy for Higher Education
The New Framework for Information Literacy for Higher EducationThe New Framework for Information Literacy for Higher Education
The New Framework for Information Literacy for Higher EducationTrudi Jacobson
 
GBM Group Based Marketing: Marketing to Groups
GBM Group Based Marketing: Marketing to GroupsGBM Group Based Marketing: Marketing to Groups
GBM Group Based Marketing: Marketing to GroupsScott Levine
 
好みや多数決で決めない、デザインとの正しい付き合い方
好みや多数決で決めない、デザインとの正しい付き合い方好みや多数決で決めない、デザインとの正しい付き合い方
好みや多数決で決めない、デザインとの正しい付き合い方Yasuhisa Hasegawa
 

Viewers also liked (20)

The Most Important Things You Should Know about Oracle®
The Most Important Things You Should Know about Oracle®The Most Important Things You Should Know about Oracle®
The Most Important Things You Should Know about Oracle®
 
Agile Data Warehousing: Using SDDM to Build a Virtualized ODS
Agile Data Warehousing: Using SDDM to Build a Virtualized ODSAgile Data Warehousing: Using SDDM to Build a Virtualized ODS
Agile Data Warehousing: Using SDDM to Build a Virtualized ODS
 
History of database monitoring
History of database monitoringHistory of database monitoring
History of database monitoring
 
Accenture Enkitec Group: Oracle database and Engineered Systems
Accenture Enkitec Group: Oracle database and Engineered SystemsAccenture Enkitec Group: Oracle database and Engineered Systems
Accenture Enkitec Group: Oracle database and Engineered Systems
 
10 Ways to Improve Your Social Media Strategy Immediately
10 Ways to Improve Your Social Media Strategy Immediately10 Ways to Improve Your Social Media Strategy Immediately
10 Ways to Improve Your Social Media Strategy Immediately
 
Teaching the Rx Narrative; Story as Medicine
Teaching the Rx Narrative; Story as MedicineTeaching the Rx Narrative; Story as Medicine
Teaching the Rx Narrative; Story as Medicine
 
Growth Hacking at SPN
Growth Hacking at SPNGrowth Hacking at SPN
Growth Hacking at SPN
 
進化したのはサーバだけじゃない!〜DBA の毎日をもっと豊かにするユーティリティのすすめ〜
進化したのはサーバだけじゃない!〜DBA の毎日をもっと豊かにするユーティリティのすすめ〜進化したのはサーバだけじゃない!〜DBA の毎日をもっと豊かにするユーティリティのすすめ〜
進化したのはサーバだけじゃない!〜DBA の毎日をもっと豊かにするユーティリティのすすめ〜
 
Human toxicity, environmental impact and legal implications of water fluorida...
Human toxicity, environmental impact and legal implications of water fluorida...Human toxicity, environmental impact and legal implications of water fluorida...
Human toxicity, environmental impact and legal implications of water fluorida...
 
These words I share, written from despair, read them, speak them, but do so w...
These words I share, written from despair, read them, speak them, but do so w...These words I share, written from despair, read them, speak them, but do so w...
These words I share, written from despair, read them, speak them, but do so w...
 
正規言語について
正規言語について正規言語について
正規言語について
 
Isu isu trenda terkini dalam teknologi pendidikan
Isu isu trenda terkini dalam teknologi pendidikanIsu isu trenda terkini dalam teknologi pendidikan
Isu isu trenda terkini dalam teknologi pendidikan
 
C# & AWS Lambda
C# & AWS LambdaC# & AWS Lambda
C# & AWS Lambda
 
Hazop gijutsushikai chubu koukuukai
Hazop gijutsushikai chubu koukuukai Hazop gijutsushikai chubu koukuukai
Hazop gijutsushikai chubu koukuukai
 
Yapc Asia 2009 ペパボでのPerlの使い方
Yapc Asia 2009 ペパボでのPerlの使い方Yapc Asia 2009 ペパボでのPerlの使い方
Yapc Asia 2009 ペパボでのPerlの使い方
 
Ruby HTTP clients comparison
Ruby HTTP clients comparisonRuby HTTP clients comparison
Ruby HTTP clients comparison
 
The New Framework for Information Literacy for Higher Education
The New Framework for Information Literacy for Higher EducationThe New Framework for Information Literacy for Higher Education
The New Framework for Information Literacy for Higher Education
 
GBM Group Based Marketing: Marketing to Groups
GBM Group Based Marketing: Marketing to GroupsGBM Group Based Marketing: Marketing to Groups
GBM Group Based Marketing: Marketing to Groups
 
How to Kill a Word
How to Kill a WordHow to Kill a Word
How to Kill a Word
 
好みや多数決で決めない、デザインとの正しい付き合い方
好みや多数決で決めない、デザインとの正しい付き合い方好みや多数決で決めない、デザインとの正しい付き合い方
好みや多数決で決めない、デザインとの正しい付き合い方
 

Similar to Awr1page - Sanity checking time instrumentation in AWR reports

Analyze database system using a 3 d method
Analyze database system using a 3 d methodAnalyze database system using a 3 d method
Analyze database system using a 3 d methodAjith Narayanan
 
Right-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual MachineRight-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual Machineheraflux
 
Cassandra and drivers
Cassandra and driversCassandra and drivers
Cassandra and driversBen Bromhead
 
ASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdfASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdftricantino1973
 
How should I monitor my idaa
How should I monitor my idaaHow should I monitor my idaa
How should I monitor my idaaCuneyt Goksu
 
Oracle Database : Addressing a performance issue the drilldown approach
Oracle Database : Addressing a performance issue the drilldown approachOracle Database : Addressing a performance issue the drilldown approach
Oracle Database : Addressing a performance issue the drilldown approachLaurent Leturgez
 
Client Drivers and Cassandra, the Right Way
Client Drivers and Cassandra, the Right WayClient Drivers and Cassandra, the Right Way
Client Drivers and Cassandra, the Right WayDataStax Academy
 
Performance Analysis: new tools and concepts from the cloud
Performance Analysis: new tools and concepts from the cloudPerformance Analysis: new tools and concepts from the cloud
Performance Analysis: new tools and concepts from the cloudBrendan Gregg
 
Velocity 2015 linux perf tools
Velocity 2015 linux perf toolsVelocity 2015 linux perf tools
Velocity 2015 linux perf toolsBrendan Gregg
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsCarlos Sierra
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACKristofferson A
 
KoprowskiT - SQLBITS X - 2am a disaster just began
KoprowskiT - SQLBITS X - 2am a disaster just beganKoprowskiT - SQLBITS X - 2am a disaster just began
KoprowskiT - SQLBITS X - 2am a disaster just beganTobias Koprowski
 
AWS Redshift Introduction - Big Data Analytics
AWS Redshift Introduction - Big Data AnalyticsAWS Redshift Introduction - Big Data Analytics
AWS Redshift Introduction - Big Data AnalyticsKeeyong Han
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportAlfredo Krieg
 
iland Internet Solutions: Leveraging Cassandra for real-time multi-datacenter...
iland Internet Solutions: Leveraging Cassandra for real-time multi-datacenter...iland Internet Solutions: Leveraging Cassandra for real-time multi-datacenter...
iland Internet Solutions: Leveraging Cassandra for real-time multi-datacenter...DataStax Academy
 
Leveraging Cassandra for real-time multi-datacenter public cloud analytics
Leveraging Cassandra for real-time multi-datacenter public cloud analyticsLeveraging Cassandra for real-time multi-datacenter public cloud analytics
Leveraging Cassandra for real-time multi-datacenter public cloud analyticsJulien Anguenot
 
Benchmarking Solr Performance at Scale
Benchmarking Solr Performance at ScaleBenchmarking Solr Performance at Scale
Benchmarking Solr Performance at Scalethelabdude
 

Similar to Awr1page - Sanity checking time instrumentation in AWR reports (20)

Analyze database system using a 3 d method
Analyze database system using a 3 d methodAnalyze database system using a 3 d method
Analyze database system using a 3 d method
 
Right-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual MachineRight-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual Machine
 
Cassandra and drivers
Cassandra and driversCassandra and drivers
Cassandra and drivers
 
ASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdfASH Archit ecture and Advanced Usage.pdf
ASH Archit ecture and Advanced Usage.pdf
 
How should I monitor my idaa
How should I monitor my idaaHow should I monitor my idaa
How should I monitor my idaa
 
Oracle Database : Addressing a performance issue the drilldown approach
Oracle Database : Addressing a performance issue the drilldown approachOracle Database : Addressing a performance issue the drilldown approach
Oracle Database : Addressing a performance issue the drilldown approach
 
Client Drivers and Cassandra, the Right Way
Client Drivers and Cassandra, the Right WayClient Drivers and Cassandra, the Right Way
Client Drivers and Cassandra, the Right Way
 
Performance Analysis: new tools and concepts from the cloud
Performance Analysis: new tools and concepts from the cloudPerformance Analysis: new tools and concepts from the cloud
Performance Analysis: new tools and concepts from the cloud
 
Velocity 2015 linux perf tools
Velocity 2015 linux perf toolsVelocity 2015 linux perf tools
Velocity 2015 linux perf tools
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
 
Ash and awr performance data2
Ash and awr performance data2Ash and awr performance data2
Ash and awr performance data2
 
ASH and AWR on DB12c
ASH and AWR on DB12cASH and AWR on DB12c
ASH and AWR on DB12c
 
KoprowskiT - SQLBITS X - 2am a disaster just began
KoprowskiT - SQLBITS X - 2am a disaster just beganKoprowskiT - SQLBITS X - 2am a disaster just began
KoprowskiT - SQLBITS X - 2am a disaster just began
 
AWS Redshift Introduction - Big Data Analytics
AWS Redshift Introduction - Big Data AnalyticsAWS Redshift Introduction - Big Data Analytics
AWS Redshift Introduction - Big Data Analytics
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR Report
 
iland Internet Solutions: Leveraging Cassandra for real-time multi-datacenter...
iland Internet Solutions: Leveraging Cassandra for real-time multi-datacenter...iland Internet Solutions: Leveraging Cassandra for real-time multi-datacenter...
iland Internet Solutions: Leveraging Cassandra for real-time multi-datacenter...
 
Leveraging Cassandra for real-time multi-datacenter public cloud analytics
Leveraging Cassandra for real-time multi-datacenter public cloud analyticsLeveraging Cassandra for real-time multi-datacenter public cloud analytics
Leveraging Cassandra for real-time multi-datacenter public cloud analytics
 
Benchmarking Solr Performance at Scale
Benchmarking Solr Performance at ScaleBenchmarking Solr Performance at Scale
Benchmarking Solr Performance at Scale
 
01 oracle architecture
01 oracle architecture01 oracle architecture
01 oracle architecture
 

Recently uploaded

INTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingINTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingsocarem879
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Seán Kennedy
 
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一F La
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfchwongval
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our WorldEduminds Learning
 
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhhThiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhhYasamin16
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryJeremy Anderson
 
办美国加州大学伯克利分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
办美国加州大学伯克利分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree办美国加州大学伯克利分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
办美国加州大学伯克利分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPTBoston Institute of Analytics
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxdolaknnilon
 
MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxUnduhUnggah1
 
Business Analytics using Microsoft Excel
Business Analytics using Microsoft ExcelBusiness Analytics using Microsoft Excel
Business Analytics using Microsoft Excelysmaelreyes
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
Real-Time AI Streaming - AI Max Princeton
Real-Time AI  Streaming - AI Max PrincetonReal-Time AI  Streaming - AI Max Princeton
Real-Time AI Streaming - AI Max PrincetonTimothy Spann
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queensdataanalyticsqueen03
 
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesConf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesTimothy Spann
 

Recently uploaded (20)

INTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingINTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processing
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...
 
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdf
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our World
 
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhhThiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhh
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data Story
 
办美国加州大学伯克利分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
办美国加州大学伯克利分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree办美国加州大学伯克利分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
办美国加州大学伯克利分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptx
 
MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docx
 
Business Analytics using Microsoft Excel
Business Analytics using Microsoft ExcelBusiness Analytics using Microsoft Excel
Business Analytics using Microsoft Excel
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
Real-Time AI Streaming - AI Max Princeton
Real-Time AI  Streaming - AI Max PrincetonReal-Time AI  Streaming - AI Max Princeton
Real-Time AI Streaming - AI Max Princeton
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queens
 
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesConf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
 

Awr1page - Sanity checking time instrumentation in AWR reports

  • 1. AWR1page Sanity checking time instrumentation in AWR Reports By: JB (part 1)
  • 2. Acknowledgements • Kevin Closson / Connor McDonald • Graham Wood • Lothar Flatz / Wolfgang Breitling / Alberto Dell’Era • Toon Koppelaars
  • 3. Origins of AWR1page • OakTable inquiries about unusual AWR reports • What to do when people smarter than you ask your help making sense of something? • first time: do a presentation • AWR Ambiguity, OTW 2015 • second time: write a program • AWR1page, OTW 2016
  • 4. OTW 2015: AWR Ambiguity Instrumentation issues and symptoms Symptom Possible issue DB CPU >> ASH CPU (and significant wait time) CPU used within wait (this was the issue here) ASH CPU >> DB CPU System CPU-bound (ASH includes run-queue) DB Time >> DB CPU + Wait (and not CPU-bound) Un-instrumented wait (in call, not in wait, not on CPU) DB Time >> ASH DB Time 1. Double-counted DB Time 2. ASH dropped samples
  • 5. Model: Oracle Time = CPU + Wait • Account for time spent executing Oracle code by either background or foreground processes • Oracle processes are either ON CPU or Actively Waiting • Assuming DB Time is correct, two possible issues: • DB Time < CPU + Wait • DB Time > CPU + Wait Oracle Time CPU Time Wait Time
  • 6. Oracle Time < CPU + Wait • Issue is CPU under Wait: time is being double- counted • TM CPU + WT wait > DB Time; ASH wait ~ WT wait Oracle Time CPU Time Wait Time Oracle Time CPU Time Wait TimeCPU under wait
  • 7. Oracle Time > CPU + Wait • Is Wait under-counted? un-instrumented wait? • ASH CPU > TM CPU; TM CPU ~ OS CPU • Is CPU under-counted? AIX? course timers? • ASH CPU > TM CPU; ASH wait ~ WT wait Oracle Time CPU Time Wait Time
  • 8. The AIX CPU problem • AIX with SMT turned on reports CPU strangely • I don’t understand it quite • According to Graham: “it’s just broken” • OakTable blog reference: Marcin Przepiorowski • http://oracleprof.blogspot.it/2013/02/oracle-on-aix- wheres-my-cpu-time.html • Graham: Increase reported CPU values by 50% for SMT=4 for more realistic picture
  • 9. Checking Model Consistency • Consistency checking is very difficult • AWR reports are massive
 (most of it irrelevant for any specific situation) • Data scattered about in report • Timing info is difficult to compare • Units vary, breakdowns inconsistent
  • 10. Objectives for AWR1page • Facilitate high-level assessment of Oracle instrumentation consistency with respect to timing information: CPU and Wait time • Facilitate high-level insight into Oracle system size and utilization levels • In 1 page, using only AWR text report as input
  • 11. Idea: Measure x Source Matrix INFO OSSTAT TIME MODEL ASH HOST CPU ORCL CPU WAIT MISC Compare rows for equality Columns should add upward measures data sources
  • 12. Values from AWR report INFO * cores cpus threads/core memory OSSTAT X X X* X TIME MODEL ASH ORCL . total . FG BG . . . .
 X X X . X X X* CPU load . . busy i/o wait scheduler ORCL . FG BG X X X X . . . . . . . X X X . . . . X X X* WAIT MISC
  • 13. Design Mockup AWR1page cores: nn cpus: nn threads: nn elapsed:nnnn.m measure OSSTAT TIME MODEL ASH WAIT CLASS HOST LOAD [nn:mm] CPU BUSY [nn:mm] USER nn SYS nn IOWAIT [nn:mm] OS_CPU_WAIT [nn:mm] ORACLE AVG ACTIVE SESSIONS (BG & FG) [nn:mm] [nn:mm] CPU [nn:mm] [nn:mm] FG nn BG nn RES_MGR_CPU_WAIT nn WAIT [nn:mm] [nn:mm] [nn:mm] FG nn nn nn BG nn dd* dd* Scheduler nn MISC: CPU per user call n.mmmm n.mmmm n.mmmm
  • 14. Design notes • AAS = Average Active [ Sessions | Processes | Threads| Cores ] • instrumentation time / elapsed time • All numbers on the sparse matrix are in AAS • Comparable measures from different sources on same line • Indentation and vertical position represent decomposition • Some cells show core-normalized AAS • [nn:mm] where nn=AAS, mm=AAS/cores
  • 15. version 2c: 634 lines of awk AWR1page file: awrKC.txt platform: Linux x86 64-bit cores: 36 RAC: NO cpus: 72 release: 12.1.0.2.0 threads/core: 2 elapsed: 2.02 (min) sessions(end): 56 snaps: 1 ======================================================================================================================== measure | OSSSTAT | TIME MODEL | ASH | WAIT CLASS ======================================================================================================================== HOST LOAD [7.80:0.22] CPU BUSY [5.99:0.17] USER 2.27 SYS 3.72 IOWAIT [3.00:0.08] OS_CPU_WAIT N/A ........................................................................................................................ ORACLE AVERAGE ACTIVE SESSIONS (BG+FG) [4.98:0.14] [4.58:0.13] CPU [2.02:0.06] [0.50:0.01] FG 2.00 BG 0.01 RSRC_MGR_CPU_WAIT N/A WAIT [2.96:0.08] [4.08:0.11] [4.32:0.12] FG 2.96 4.32 BG 0.00 *0.00 IOWAIT 4.32 FG 4.32 Scheduler 0.00 ........................................................................................................................ MISC CPU per call (ms) 3781.98 10.50 312.50 user calls/sec 1.58 CPU bound?
  • 17. AWR1page (part 2) Sanity checking time instrumentation in AWR Reports By: JB
  • 18. Two originating case studies • 1 : Benchmarking I/O subsystems with Oracle
 (aka “being a SLOB”) • 2 : Random question on AskTom about strange numbers in AWR
  • 20. AWR1page file: awrKC.txt platform: Linux x86 64-bit cores: 36 RAC: NO cpus: 72 release: 12.1.0.2.0 threads/core: 2 elapsed: 2.02 (min) sessions(end): 56 snaps: 1 ======================================================================================================================== measure | OSSSTAT | TIME MODEL | ASH | WAIT CLASS ======================================================================================================================== HOST LOAD [7.80:0.22] CPU BUSY [5.99:0.17] USER 2.27 SYS 3.72 IOWAIT [3.00:0.08] OS_CPU_WAIT N/A ........................................................................................................................ ORACLE AVERAGE ACTIVE SESSIONS (BG+FG) [4.98:0.14] [4.58:0.13] CPU [2.02:0.06] [0.50:0.01] FG 2.00 BG 0.01 RSRC_MGR_CPU_WAIT N/A WAIT [2.96:0.08] [4.08:0.11] [4.32:0.12] FG 2.96 4.32 BG 0.00 *0.00 IOWAIT 4.32 FG 4.32 Scheduler 0.00 ........................................................................................................................ MISC CPU per call (ms) 3781.98 10.50 312.50 user calls/sec 1.58
  • 21. AWR1page file: awrKC.txt platform: Linux x86 64-bit cores: 36 RAC: NO cpus: 72 release: 12.1.0.2.0 threads/core: 2 elapsed: 2.02 (min) sessions(end): 56 snaps: 1 ======================================================================================================================== measure | OSSSTAT | TIME MODEL | ASH | WAIT CLASS ======================================================================================================================== HOST LOAD [7.80:0.22] CPU BUSY [5.99:0.17] USER 2.27 SYS 3.72 IOWAIT [3.00:0.08] OS_CPU_WAIT N/A ........................................................................................................................ ORACLE AVERAGE ACTIVE SESSIONS (BG+FG) [4.98:0.14] [4.58:0.13] CPU [2.02:0.06] [0.50:0.01] FG 2.00 BG 0.01 RSRC_MGR_CPU_WAIT N/A WAIT [2.96:0.08] [4.08:0.11] [4.32:0.12] FG 2.96 4.32 BG 0.00 *0.00 IOWAIT 4.32 FG 4.32 Scheduler 0.00 ........................................................................................................................ MISC CPU per call (ms) 3781.98 10.50 312.50 user calls/sec 1.58 Decent-sized Linux system running Oracle 12 DB Time < DB CPU + Wait => CPU under (IO) wait nontrivial IO wait CPU ok bedrock IO wait = 1 aas CPU + 3 aas wait
  • 23. AWR1page file: QS02FNT_AWR_AskTom.txt platform: AIX-Based Systems (64-bit) cores: 2 RAC: NO cpus: 8 release: 12.1.0.2.0 threads/core: 4 elapsed: 44.22 (min) sessions(end): 91 snaps: 3 ======================================================================================================================== measure | OSSSTAT | TIME MODEL | ASH | WAIT CLASS ======================================================================================================================== HOST LOAD [4.12:2.06] CPU BUSY [1.13:0.57] USER 0.66 SYS 0.47 IOWAIT [0.07:0.03] OS_CPU_WAIT [4.06:2.03] ........................................................................................................................ ORACLE AVERAGE ACTIVE SESSIONS (BG+FG) [0.62:0.31] [0.72:0.36] CPU [0.13:0.07] [0.66:0.33] FG 0.13 BG 0.01 RSRC_MGR_CPU_WAIT 0.00 WAIT [0.48:0.24] [0.06:0.03] [0.05:0.03] FG 0.42 0.01 BG 0.07 *0.05 IOWAIT 0.03 FG 0.00 Scheduler 0.00 ........................................................................................................................ MISC CPU per call (ms) 115.47 0.01 60.02 user calls/sec 9.80
  • 24. AWR1page file: QS02FNT_AWR_AskTom.txt platform: AIX-Based Systems (64-bit) cores: 2 RAC: NO cpus: 8 release: 12.1.0.2.0 threads/core: 4 elapsed: 44.22 (min) sessions(end): 91 snaps: 3 ======================================================================================================================== measure | OSSSTAT | TIME MODEL | ASH | WAIT CLASS ======================================================================================================================== HOST LOAD [4.12:2.06] CPU BUSY [1.13:0.57] USER 0.66 SYS 0.47 IOWAIT [0.07:0.03] OS_CPU_WAIT [4.06:2.03] ........................................................................................................................ ORACLE AVERAGE ACTIVE SESSIONS (BG+FG) [0.62:0.31] [0.72:0.36] CPU [0.13:0.07] [0.66:0.33] FG 0.13 BG 0.01 RSRC_MGR_CPU_WAIT 0.00 WAIT [0.48:0.24] [0.06:0.03] [0.05:0.03] FG 0.42 0.01 BG 0.07 *0.05 IOWAIT 0.03 FG 0.00 Scheduler 0.00 ........................................................................................................................ MISC CPU per call (ms) 115.47 0.01 60.02 user calls/sec 9.80 AIX = CPU red fag CPU bound? maybe small system
 SMT = 4 TM ~ ASH ASH ~ Wait DB Time > DB CPU + Wait => CPU under-report or run-queue 0.56 0.06 ??