SlideShare a Scribd company logo
Unit of Work
Time Based
  Analysis


  Craig A. Shallahamer
 Founder - OraPub, Inc.
   craig@orapub.com


                SQL	
  Elapsed	
  Time	
  Analysis	
  
OraPub is about Oracle performance.
•  OraPub is all about Oracle performance           Resources	
  
   management; systematic and quantitative
   firefighting and predictive analysis.
                                                    • 	
  Training	
  
•  Web site started in 1995 and the company was
   founded in 1998 by Craig Shallahamer.            • 	
  Unique	
  Blog	
  
•  OraPub has always been about disseminating       • 	
  Free	
  Tools	
  
   Oracle database centric technical information.

•  Consulting, training, books, papers, and         • 	
  Free	
  Papers	
  
   products are now being offered.
                                                    • 	
  Books	
  
•  We have been on-site in 24 countries and our
   resources have been received in probably         • 	
  Products	
  
   every country where there are DBAs.
                                                    • 	
  Consul8ng	
  
                                                               SQL	
  Elapsed	
  Time	
  Analysis	
  
Short resume...kind of...
•  Studies economics, mathematics, and computer science at
   university in California, US.
•  Started working with Oracle technology in 1989 as a Forms 2.3
   developer on Oracle version 5.
•  Soon after started performance firefighting...daily!
•  Co-found both Oracle’s Core Technology and System
   Performance Groups.
•  Left Oracle to start OraPub, Inc. in 1998.
•  Authored 24 technical papers and worked in 24 countries.
•  Authors and teaches his classes Oracle Performance
   Firefighting, Adv Oracle Performance Analysis, and Oracle
   Forecasting & Predictive Analysis.
•  Authored the books, Forecasting Oracle Performance and
   Oracle Performance Firefighting.
•  Oracle ACE Director.
•  Frequent blog contributor: A Wider View

                                                                   SQL	
  Elapsed	
  Time	
  Analysis	
  
My two books...




      OraPub	
  discount	
  code:	
  IS11	
  




                                                SQL	
  Elapsed	
  Time	
  Analysis	
  
Performance analysis philosophies.
•  Ratio Analysis is the traditional method relying on simple
   calculations leading one to the problem area. “When the ratios are
   right, then so is performance.”...not always!
•  Wait Event Analysis (WEA) listens to where Oracle says it’s not
   consuming CPU resources. “When I bring down the top wait event,
   users are happier.” ...not always!
•  Time Based Analysis (TBA) is centred on interval time, elapsed
   time, and quantifying the users’ experience, at least in part. TBA is
   relative to ones perspective and should include CPU time. “When
   total time is decreases, performance increases.”...not always!
•  Unit of Work Time Based Analysis unites Oracle TBA with
   Operations Research by creatively using the time it takes to process
   a single unit of work. The benefits are a deep understanding of cause
   and effect, solution comparison and evaluation, anticipating
   performance, complete analysis quantification, and enhanced visuals.
   “When LIO RT decreases, LIO dependent elapsed times also
   decrease until the workload increases too much.”
                                                          SQL	
  Elapsed	
  Time	
  Analysis	
  
Situation, over a time interval(s).




                                                                         Other
                                   Non-Idle
Time related to all the            Wait Time                             IO
 work occurred for a
specific period of time.
                                                                        Srvr Prc
                                    CPU Time

    Perhaps 1.8M PIOs occurred                                           BG Prc
        during this interval.
                                 Source: Confio Software’s Igniter product.
                                                          SQL	
  Elapsed	
  Time	
  Analysis	
  
Representing time associated with
      a single unit of work.

  If	
  1.8M	
  PIOs	
  occurred	
  during	
  a	
  one	
  hour	
  
   interval	
  and	
  there	
  was	
  3500	
  seconds	
  of	
  
   associated	
  CPU	
  and	
  non-­‐idle	
  wait	
  Lme,	
  
 then	
  on	
  average,	
  each	
  PIO	
  took	
  1.94	
  ms	
  to	
  
                          complete.	
  
                               	
  

                                                           SQL	
  Elapsed	
  Time	
  Analysis	
  
Contrasting RT based approaches

                              Non-­‐Idle	
  
                              Wait	
  Time	
  
    Total	
                   1500s	
  
Response	
  
    Time	
                     CPU	
  
   3500s	
                     Time	
  
                               2000s	
  




                  Focus:	
                                               Focus:	
  
  “This	
  is	
  what	
  occurred.”	
             	
  “This	
  is	
  what	
  we	
  can	
  expect	
  this	
  
  “This	
  is	
  what	
  we	
  should	
                              soluLon	
  to	
  do.”	
  
                   do.”	
                        “This	
  is	
  the	
  elapsed	
  Lme	
  change.”	
  

                                                                                           SQL	
  Elapsed	
  Time	
  Analysis	
  
Poor	
  Performing	
  System	
  
                                                        Classic	
  
  Fully	
  
                         Key	
  Parameter	
          Performance	
  
QuanLfied	
  
                           DerivaLon   	
            MathemaLcs     	
  
  ORTA  	
  




          Proposed	
                        Performance	
  
          SoluLons	
                           Model	
  




                      ObjecLve	
  SoluLon	
  
                           Analysis  	
  
                                                                SQL	
  Elapsed	
  Time	
  Analysis	
  
First, plot a performance situation.




                               SQL	
  Elapsed	
  Time	
  Analysis	
  
Second combine respected disciplines.


                       St
       Rt:cpu   =
                     ⎛ St λ ⎞
                              M

                  1− ⎜
                     ⎝ M⎟   ⎠




                                  SQL	
  Elapsed	
  Time	
  Analysis	
  
Third, objectively evaluate.




                           SQL	
  Elapsed	
  Time	
  Analysis	
  
Keep it as simple as possible.
                                                                            Detail	
  how	
  to	
  move	
  from	
  
                                                                                    red	
  to	
  blue…	
  




Provide	
  just	
  enough	
  informaLon	
  to	
  get	
  your	
  point	
  
across	
  and	
  saLsfy	
  your	
  audience.	
  


                                                                                           SQL	
  Elapsed	
  Time	
  Analysis	
  
Situation, time per work unit.

                               Time	
  
                            related	
  to	
  
                           compleLng	
  
                             a	
  single	
  
                              unit	
  of	
  
                              work.	
  




                           Graph created using
                           OraPub’s RT Graph
                               Template.
                              SQL	
  Elapsed	
  Time	
  Analysis	
  
Moving: interval time to RT analysis.
•  Notice the focus change: From total interval time, to time per unit of
   work.
•  Situation. Over a 30 minute interval, 5000 PIOs occurred, 250
   seconds of CPU was consumed, and sessions waited for 2000
   seconds. Key performance areas degraded as PIOs increased.
•  Unit of work. We must choose an appropriate unit of work. (e.g.,
   physical IO read requests)
•  Service Time. How much CPU is consumed per unit of work. (e.g.,
   250 sec / 5000 pio = 0.050 sec/pio)
•  Queue Time. How much non-idle wait time per unit of work. (e.g.,
   2000 sec / 5000 pio = 0.400 sec/pio)
•  Arrival Rate. How much work arrives per unit of time. (e.g., 5000
   pio / 1800 sec = 2.778 pio/sec)
•  Response Time. Simply, service time plus queue time. (e.g., 0.050
   sec/pio + 0.40 sec/pio = 0.45 sec/pio)

                                                            SQL	
  Elapsed	
  Time	
  Analysis	
  
Creating the RT graph using M-Solver.

               http://filezone.orapub.com/cgi-bin/msolve.cgi!




                                               SQL	
  Elapsed	
  Time	
  Analysis	
  
All the key
 parameters
  are now
 available to
  create a
  clean RT
 graph, plus
the M-Solver
   details.


     SQL	
  Elapsed	
  Time	
  Analysis	
  
Got
 the
graph
   !




        SQL	
  Elapsed	
  Time	
  Analysis	
  
Reality Check: A clear RT curve.




                           SQL	
  Elapsed	
  Time	
  Analysis	
  
Reality Check: A clear RT curve.




                           SQL	
  Elapsed	
  Time	
  Analysis	
  
Reality Check: Production system.




source: http://aberdave.blogspot.com/2011/03/response-time-analysis-based-on-awr.html!

                                                                          SQL	
  Elapsed	
  Time	
  Analysis	
  
Reality	
  Check:	
  Altering	
  insert	
  batch	
  size	
  


                 work: insert!
                 time: ms!

                                                                                      Batch	
  
                                          Batch	
                                     size	
  2	
  
                                          size	
  1	
  




                                                               28%!



More? http://shallahamer-orapub.blogspot.com/2010/05/insert-batch-size-performance-effects.html!
                                                                               SQL	
  Elapsed	
  Time	
  Analysis	
  
In summary…step by step.
•  Perform an Oracle response time analysis (ORTA).
•  Pick a good workload metric.
•  Gather the total workload.
•  Calculate the key and classic performance
   parameters.
•  Plot single point.
•  Create response time curve by combining
   performance situation with classic performance
   mathematics.
•  Objectively and scientifically compare alternative
   solutions!
                                             SQL	
  Elapsed	
  Time	
  Analysis	
  
Let’s Do
       It!
http://filebank.orapub.com/perf_stats/SP_PDXPROD.txt!


                                            SQL	
  Elapsed	
  Time	
  Analysis	
  
Want to dig deeper?
•  Craig’s Blog – A W i d e r V i e w
•  Paper: Evaluating Alternative Performance Solutions
•  Training from OraPub
                                               Melbourne	
  
   –  Oracle Performance Firefighting (I)
                                               &	
  Perth	
  in	
  
   –  Adv Oracle Performance Analysis (II)      Q2	
  2012    	
  
•  Books
   –  Oracle Performance Firefighting (C. Shallahamer)
      •  Chapter 9 is FREE to download




                                                      SQL	
  Elapsed	
  Time	
  Analysis	
  
Thank
 You!
    SQL	
  Elapsed	
  Time	
  Analysis	
  

More Related Content

PDF
Database & Technology 1 _ Craig Shallahamer _ SQL Elapsed Time Analhysis.pdf
PPTX
DIY Java Profiling
PPTX
Dev nexus 2017
PPTX
Devnexus 2018
PDF
Performance Test Driven Development with Oracle Coherence
ODP
An Introduction To Java Profiling
PPTX
Apache Storm
PPTX
Past, Present, and Future of Apache Storm
Database & Technology 1 _ Craig Shallahamer _ SQL Elapsed Time Analhysis.pdf
DIY Java Profiling
Dev nexus 2017
Devnexus 2018
Performance Test Driven Development with Oracle Coherence
An Introduction To Java Profiling
Apache Storm
Past, Present, and Future of Apache Storm

What's hot (11)

PDF
Effective testing for spark programs Strata NY 2015
PPTX
Smart Data Conference: DL4J and DataVec
PPTX
Python Raster Function - Esri Developer Conference - 2015
PDF
Machine Learning With H2O vs SparkML
PDF
Storm Real Time Computation
PDF
All Your IOPS Are Belong To Us - A Pinteresting Case Study in MySQL Performan...
PDF
Adding Transparency and Automation into the Galaxy Tool Installation Process
PPTX
Prometheus (Monitorama 2016)
PDF
Search-time Parallelism: Presented by Shikhar Bhushan, Etsy
PPTX
Effectiveness and code optimization in Java
PPSX
Survey of task scheduler
Effective testing for spark programs Strata NY 2015
Smart Data Conference: DL4J and DataVec
Python Raster Function - Esri Developer Conference - 2015
Machine Learning With H2O vs SparkML
Storm Real Time Computation
All Your IOPS Are Belong To Us - A Pinteresting Case Study in MySQL Performan...
Adding Transparency and Automation into the Galaxy Tool Installation Process
Prometheus (Monitorama 2016)
Search-time Parallelism: Presented by Shikhar Bhushan, Etsy
Effectiveness and code optimization in Java
Survey of task scheduler
Ad

Similar to Database & Technology 1 _ Craig Shallahamer _ Unit of work time based performance analytics.pdf (20)

PDF
How to find what is making your Oracle database slow
PPTX
Analyze database system using a 3 d method
PDF
Oracle trace data collection errors: the story about oceans, islands, and rivers
PPT
Oracle 10g Performance: chapter 00 statspack
PDF
pdf-download-db-time-based-oracle-performance-tuning-theory-and.pdf
PDF
Ebs dba con4696_pdf_4696_0001
PDF
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
PDF
Collaborate 2019 - How to Understand an AWR Report
PDF
Oracle database performance diagnostics - before your begin
PDF
Oracle analysis 101_v1.0_ext
PDF
Presentation maximizing database performance performance tuning with db time
PDF
Ebs performance tune_con9030_pdf_9030_0001
DOC
Analyzing awr report
PDF
Ebs performance tune2_con9030_pdf_9030_0002
PDF
Methodology Of Enterprise Applications Capacity Planning
PDF
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
PDF
Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear re...
PDF
“Performance” - Dallas Oracle Users Group 2019-01-29 presentation
DOC
Early watch report
PDF
VirtaThon 2011 - Mining the AWR
How to find what is making your Oracle database slow
Analyze database system using a 3 d method
Oracle trace data collection errors: the story about oceans, islands, and rivers
Oracle 10g Performance: chapter 00 statspack
pdf-download-db-time-based-oracle-performance-tuning-theory-and.pdf
Ebs dba con4696_pdf_4696_0001
Hotsos 2011: Mining the AWR repository for Capacity Planning, Visualization, ...
Collaborate 2019 - How to Understand an AWR Report
Oracle database performance diagnostics - before your begin
Oracle analysis 101_v1.0_ext
Presentation maximizing database performance performance tuning with db time
Ebs performance tune_con9030_pdf_9030_0001
Analyzing awr report
Ebs performance tune2_con9030_pdf_9030_0002
Methodology Of Enterprise Applications Capacity Planning
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear re...
“Performance” - Dallas Oracle Users Group 2019-01-29 presentation
Early watch report
VirtaThon 2011 - Mining the AWR
Ad

More from InSync2011 (20)

PDF
Developer & Fusion Middleware 2 _ Scott Robertson _ SOA, Portals and Enterpri...
PDF
New & Emerging _ KrisDowney _ Simplifying the Change Process.pdf
PDF
Oracle Systems _ Kevin McIsaac _The IT landscape has changed.pdf
PDF
Reporting _ Scott Tunbridge _ Op Mgmt to Perf Excel.pdf
PDF
Developer and Fusion Middleware 2 _ Scott Robertson _ SOA, portals and entepr...
PDF
Primavera _ Loretta Bayliss _ Implementing EPPM in rapidly changing and compe...
PDF
Database & Technology 1 _ Martin Power _ Delivering Oracles hight availabilit...
PDF
Database & Technology 1 _ Marcelle Kratchvil _ Why you should be storing unst...
PDF
Database & Technology 1 _ Milina Ristic _ Why use oracle data guard.pdf
PDF
Database & Technology 1 _ Tom Kyte _ SQL Techniques.pdf
PDF
Database & Technology 1 _ Clancy Bufton _ Flashback Query - oracle total reca...
PDF
Databse & Technology 2 _ Francisco Munoz Alvarez _ Oracle Security Tips - Som...
PDF
Databse & Technology 2 _ Francisco Munoz alvarez _ 11g new functionalities fo...
PDF
Databse & Technology 2 | Connor McDonald | Managing Optimiser Statistics - A ...
PDF
Databse & Technology 2 _ Shan Nawaz _ Oracle 11g Top 10 features - not your u...
PDF
Databse & Technology 2 _ Paul Guerin _ The biggest looser database - a boot c...
PDF
Developer and Fusion Middleware 1 _ Kevin Powe _ Log files - a wealth of fore...
PDF
Developer and Fusion Middleware 2 _ Aaron Blishen _ Event driven SOA Integrat...
PDF
Developer and Fusion Middleware 2 _Greg Kirkendall _ How Australia Post teach...
PDF
Developer and Fusion Middleware 1 _ Paul Ricketts _ Paper Process Automation ...
Developer & Fusion Middleware 2 _ Scott Robertson _ SOA, Portals and Enterpri...
New & Emerging _ KrisDowney _ Simplifying the Change Process.pdf
Oracle Systems _ Kevin McIsaac _The IT landscape has changed.pdf
Reporting _ Scott Tunbridge _ Op Mgmt to Perf Excel.pdf
Developer and Fusion Middleware 2 _ Scott Robertson _ SOA, portals and entepr...
Primavera _ Loretta Bayliss _ Implementing EPPM in rapidly changing and compe...
Database & Technology 1 _ Martin Power _ Delivering Oracles hight availabilit...
Database & Technology 1 _ Marcelle Kratchvil _ Why you should be storing unst...
Database & Technology 1 _ Milina Ristic _ Why use oracle data guard.pdf
Database & Technology 1 _ Tom Kyte _ SQL Techniques.pdf
Database & Technology 1 _ Clancy Bufton _ Flashback Query - oracle total reca...
Databse & Technology 2 _ Francisco Munoz Alvarez _ Oracle Security Tips - Som...
Databse & Technology 2 _ Francisco Munoz alvarez _ 11g new functionalities fo...
Databse & Technology 2 | Connor McDonald | Managing Optimiser Statistics - A ...
Databse & Technology 2 _ Shan Nawaz _ Oracle 11g Top 10 features - not your u...
Databse & Technology 2 _ Paul Guerin _ The biggest looser database - a boot c...
Developer and Fusion Middleware 1 _ Kevin Powe _ Log files - a wealth of fore...
Developer and Fusion Middleware 2 _ Aaron Blishen _ Event driven SOA Integrat...
Developer and Fusion Middleware 2 _Greg Kirkendall _ How Australia Post teach...
Developer and Fusion Middleware 1 _ Paul Ricketts _ Paper Process Automation ...

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Big Data Technologies - Introduction.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
cuic standard and advanced reporting.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Cloud computing and distributed systems.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
KodekX | Application Modernization Development
Teaching material agriculture food technology
Understanding_Digital_Forensics_Presentation.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Network Security Unit 5.pdf for BCA BBA.
Big Data Technologies - Introduction.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Spectral efficient network and resource selection model in 5G networks
Agricultural_Statistics_at_a_Glance_2022_0.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
Diabetes mellitus diagnosis method based random forest with bat algorithm
cuic standard and advanced reporting.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MYSQL Presentation for SQL database connectivity
KodekX | Application Modernization Development

Database & Technology 1 _ Craig Shallahamer _ Unit of work time based performance analytics.pdf

  • 1. Unit of Work Time Based Analysis Craig A. Shallahamer Founder - OraPub, Inc. craig@orapub.com SQL  Elapsed  Time  Analysis  
  • 2. OraPub is about Oracle performance. •  OraPub is all about Oracle performance Resources   management; systematic and quantitative firefighting and predictive analysis. •   Training   •  Web site started in 1995 and the company was founded in 1998 by Craig Shallahamer. •   Unique  Blog   •  OraPub has always been about disseminating •   Free  Tools   Oracle database centric technical information. •  Consulting, training, books, papers, and •   Free  Papers   products are now being offered. •   Books   •  We have been on-site in 24 countries and our resources have been received in probably •   Products   every country where there are DBAs. •   Consul8ng   SQL  Elapsed  Time  Analysis  
  • 3. Short resume...kind of... •  Studies economics, mathematics, and computer science at university in California, US. •  Started working with Oracle technology in 1989 as a Forms 2.3 developer on Oracle version 5. •  Soon after started performance firefighting...daily! •  Co-found both Oracle’s Core Technology and System Performance Groups. •  Left Oracle to start OraPub, Inc. in 1998. •  Authored 24 technical papers and worked in 24 countries. •  Authors and teaches his classes Oracle Performance Firefighting, Adv Oracle Performance Analysis, and Oracle Forecasting & Predictive Analysis. •  Authored the books, Forecasting Oracle Performance and Oracle Performance Firefighting. •  Oracle ACE Director. •  Frequent blog contributor: A Wider View SQL  Elapsed  Time  Analysis  
  • 4. My two books... OraPub  discount  code:  IS11   SQL  Elapsed  Time  Analysis  
  • 5. Performance analysis philosophies. •  Ratio Analysis is the traditional method relying on simple calculations leading one to the problem area. “When the ratios are right, then so is performance.”...not always! •  Wait Event Analysis (WEA) listens to where Oracle says it’s not consuming CPU resources. “When I bring down the top wait event, users are happier.” ...not always! •  Time Based Analysis (TBA) is centred on interval time, elapsed time, and quantifying the users’ experience, at least in part. TBA is relative to ones perspective and should include CPU time. “When total time is decreases, performance increases.”...not always! •  Unit of Work Time Based Analysis unites Oracle TBA with Operations Research by creatively using the time it takes to process a single unit of work. The benefits are a deep understanding of cause and effect, solution comparison and evaluation, anticipating performance, complete analysis quantification, and enhanced visuals. “When LIO RT decreases, LIO dependent elapsed times also decrease until the workload increases too much.” SQL  Elapsed  Time  Analysis  
  • 6. Situation, over a time interval(s). Other Non-Idle Time related to all the Wait Time IO work occurred for a specific period of time. Srvr Prc CPU Time Perhaps 1.8M PIOs occurred BG Prc during this interval. Source: Confio Software’s Igniter product. SQL  Elapsed  Time  Analysis  
  • 7. Representing time associated with a single unit of work. If  1.8M  PIOs  occurred  during  a  one  hour   interval  and  there  was  3500  seconds  of   associated  CPU  and  non-­‐idle  wait  Lme,   then  on  average,  each  PIO  took  1.94  ms  to   complete.     SQL  Elapsed  Time  Analysis  
  • 8. Contrasting RT based approaches Non-­‐Idle   Wait  Time   Total   1500s   Response   Time   CPU   3500s   Time   2000s   Focus:   Focus:   “This  is  what  occurred.”    “This  is  what  we  can  expect  this   “This  is  what  we  should   soluLon  to  do.”   do.”   “This  is  the  elapsed  Lme  change.”   SQL  Elapsed  Time  Analysis  
  • 9. Poor  Performing  System   Classic   Fully   Key  Parameter   Performance   QuanLfied   DerivaLon   MathemaLcs   ORTA   Proposed   Performance   SoluLons   Model   ObjecLve  SoluLon   Analysis   SQL  Elapsed  Time  Analysis  
  • 10. First, plot a performance situation. SQL  Elapsed  Time  Analysis  
  • 11. Second combine respected disciplines. St Rt:cpu = ⎛ St λ ⎞ M 1− ⎜ ⎝ M⎟ ⎠ SQL  Elapsed  Time  Analysis  
  • 12. Third, objectively evaluate. SQL  Elapsed  Time  Analysis  
  • 13. Keep it as simple as possible. Detail  how  to  move  from   red  to  blue…   Provide  just  enough  informaLon  to  get  your  point   across  and  saLsfy  your  audience.   SQL  Elapsed  Time  Analysis  
  • 14. Situation, time per work unit. Time   related  to   compleLng   a  single   unit  of   work.   Graph created using OraPub’s RT Graph Template. SQL  Elapsed  Time  Analysis  
  • 15. Moving: interval time to RT analysis. •  Notice the focus change: From total interval time, to time per unit of work. •  Situation. Over a 30 minute interval, 5000 PIOs occurred, 250 seconds of CPU was consumed, and sessions waited for 2000 seconds. Key performance areas degraded as PIOs increased. •  Unit of work. We must choose an appropriate unit of work. (e.g., physical IO read requests) •  Service Time. How much CPU is consumed per unit of work. (e.g., 250 sec / 5000 pio = 0.050 sec/pio) •  Queue Time. How much non-idle wait time per unit of work. (e.g., 2000 sec / 5000 pio = 0.400 sec/pio) •  Arrival Rate. How much work arrives per unit of time. (e.g., 5000 pio / 1800 sec = 2.778 pio/sec) •  Response Time. Simply, service time plus queue time. (e.g., 0.050 sec/pio + 0.40 sec/pio = 0.45 sec/pio) SQL  Elapsed  Time  Analysis  
  • 16. Creating the RT graph using M-Solver. http://filezone.orapub.com/cgi-bin/msolve.cgi! SQL  Elapsed  Time  Analysis  
  • 17. All the key parameters are now available to create a clean RT graph, plus the M-Solver details. SQL  Elapsed  Time  Analysis  
  • 18. Got the graph ! SQL  Elapsed  Time  Analysis  
  • 19. Reality Check: A clear RT curve. SQL  Elapsed  Time  Analysis  
  • 20. Reality Check: A clear RT curve. SQL  Elapsed  Time  Analysis  
  • 21. Reality Check: Production system. source: http://aberdave.blogspot.com/2011/03/response-time-analysis-based-on-awr.html! SQL  Elapsed  Time  Analysis  
  • 22. Reality  Check:  Altering  insert  batch  size   work: insert! time: ms! Batch   Batch   size  2   size  1   28%! More? http://shallahamer-orapub.blogspot.com/2010/05/insert-batch-size-performance-effects.html! SQL  Elapsed  Time  Analysis  
  • 23. In summary…step by step. •  Perform an Oracle response time analysis (ORTA). •  Pick a good workload metric. •  Gather the total workload. •  Calculate the key and classic performance parameters. •  Plot single point. •  Create response time curve by combining performance situation with classic performance mathematics. •  Objectively and scientifically compare alternative solutions! SQL  Elapsed  Time  Analysis  
  • 24. Let’s Do It! http://filebank.orapub.com/perf_stats/SP_PDXPROD.txt! SQL  Elapsed  Time  Analysis  
  • 25. Want to dig deeper? •  Craig’s Blog – A W i d e r V i e w •  Paper: Evaluating Alternative Performance Solutions •  Training from OraPub Melbourne   –  Oracle Performance Firefighting (I) &  Perth  in   –  Adv Oracle Performance Analysis (II) Q2  2012   •  Books –  Oracle Performance Firefighting (C. Shallahamer) •  Chapter 9 is FREE to download SQL  Elapsed  Time  Analysis  
  • 26. Thank You! SQL  Elapsed  Time  Analysis