SlideShare a Scribd company logo
1 of 25
Download to read offline
Oracle Database Capacity Analysis
Using Statistical Methods
Ajith Narayanan
Dell IT
Nuremberg, Germany, 19th Nov 2013
Disclaimer
The views/contents in this slides are those of the author and do not necessarily
reflect that of Oracle Corporation and/or its affiliates/subsidiaries.
The material in this document is for informational purposes only and is published
with no guarantee or warranty, express or implied..
Who Am I?
Ajith Narayanan
Dell IT
Bangalore, India
9 years of Oracle [APPS] DBA experience.
Blogger :- http://oracledbascriptsfromajith.blogspot.com
Website Chair:- http://www.oracleracsig.org – Oracle RAC SIG (Sep 2011 –
Sep 2013)
Member:- IOUG, OAUG & AIOUG
Agenda
Why system capacity? Are you being served properly?
What Are The Different Statistical Methods Of Analyzing The System Capacity Of Database Tier
Simple Math – CPU Analysis.
Linear Regression Model for CPU.
Queuing Theory – CPU or I/O Subsystems.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Q&A~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Why System Capacity? Are You Being Served Properly?
How long can you wait to have your favorite
dish at your favorite restaurant ? Waiter says
you will have to wait for another 1 hour to be
served.
Imagine a angry waiter on your table, refusing
to serve you. (No Service)
Obviously, you are not happy !!
Any computer system serves you in similar
fashion if not properly sized.
Capacity Planning plays a vital role in such
situations.
Proper capacity analysis done by restaurant
owner could have helped the waiter serve you
your favorite dish faster .
What are the different statistical methods of analyzing the system
capacity a database server?
Introduction of Capacity Analysis Methods
Simple Math - This model can take single component inputs either application or technical metrics. This method
is usually involved with short-duration projects, The precision is usually low, but sufficient when used appropriately.
Linear Regression Analysis – This method is typically used to determine how much of some business activity
can occur before the system runs out of gas.
Queuing Theory – This method uses Queuing theory used in telecom networks for high precision capacity base
lining & forecasting.
SIMPLE MATH
Simple Math - CPU
Scenario:- The customer wants to downsize the infrastructure and check
the CPU requirements for a 4-node 16 CPU Database tier.
On Host1 , during peak utilization timings (1/5/09 3:00 AM- 4:00 AM), CPU utilization was 39.27%.
CPU consumption = 0.3927 X 14,400 s (per hour available capacity) = 5654.88s
Similarly, on Host2, Host3, Host4 observed Peak CPU consumption were 43.87% (Avg) 6173.28 s,
41.22 %(Avg) 5935.68 s and 53.11% (Avg) 7503.84s respectively.
Total CPU requirement = 25267.68 s/Hour
Calculate Utilization with 16 CPU’s
~~~~~~~~~~~~~~~~~~~~~~~~
Considering 10% overhead for OS, estimated CPU utilization on 8-core (Dell 1950 QC)
Physical Server = (25267.68 + 25267.68 *10%) / (16*60*60) = 0.4825425 = 48.25%
Calculate Utilization with 12 CPU’s
~~~~~~~~~~~~~~~~~~~~~~~~
Considering 10% overhead for OS , estimated CPU utilization on 4-core (Dell 1950 QC)
Physical Server = (25267.68 + 25267.68 *10%)/ (12*60*60) = 0.64339 = 64.33%
Calculate Utilization with 8 CPU’s
~~~~~~~~~~~~~~~~~~~~~~~~
Considering 10% overhead for OS , estimated CPU utilization on 4-core (Dell 1950 QC)
Physical Server = (25267.68 + 25267.68 *10%)/ (8*60*60) = 0.87735 = 87.73%
Simple Math - CPU
LINEAR REGRESSION
How many of you think RAM access is 10,000 times faster than Physical disk access?
In real world, LIO is only 25-100 times cheaper than PIO
- …not 1,000s or 10,ooos
Reason – Internal locks & latch serialization mechanisms involved.
Targeting only PIO counts(or high cache hit ratios) during SQL optimization is an important pitfall to
avoid.
Even with no PIOs, a query can still be outrageously inefficient
-LIO are a critical component of query cost
LIO is Expensive?
Oracle Logical I/O (LIO)
- Oracle requests a block from the database buffer cache
-LIO statistics are captured in db block gets, consistent gets, session logical reads & buffer is
pinned count statistics
- In raw trace data, It’s cr + cu
Oracle physical I/O (PIO)
Oracle requests one or more blocks from the operating system
Might be “physical,” might not be
PIO statistics are captured in the physical reads statistics
In raw trace data, it’s p or pr
Note:- There are occasions were Oracle manipulates database blocks without using the database buffer
cache (e.g. blocks read by PQO access paths, and blocks read from temporary segments)
Definitions: LIO and PIO
Linear Regression Analysis
WHAT IS LINEAR REGRESSION
========================
Linear regression analysis is a method for investigating relationships among variables.
eg. Logical Rds Vs CPU utilization
Relation is y=mx +c (equation of straight line), Here c represents the y-intercept of the line and m
represents the slope.
Here the variable “LIO" is used to predict the value of CPU Utilization .So, “LIO" becomes the explanatory
variable. On the other hand, the variable whose value is to be predicted is known as response or
dependent variable
Generally response variable is denoted as Y & predicted variable denoted as X
Linear Regression Analysis
Scenario:- Database capacity forecasting
Observations:
•CPU utilization is highly correlated with Logical Reads. Correlation coefficient 0.98 in (ideal 1.0) . Both the CPU usage & Logical
Reads trend line are similar. (Spikes are matching 98%)
Linear Regression Analysis
Scenario:- Database capacity forecasting
Observations:
• Current Capacity can handle additional 2000%
workload by maintaining CPU utilization at 38.62%
(Considering additional OS overhead etc.)
• Moreover, there is a downsizing possibility seen for
reducing the box capacity from 8 CPU to 4 CPU (As
indicated by rightmost column)
QUEUING THEORY
Queuing Structure of CPU & IO Subsystems
Queuing Theory
Queuing Theory
Queuing Theory is basically an upgrade to essential forecasting
mathematics. This method can do a baseline of the current capacity along
with its forecasting(Scalability/Downgrading possibility)
Erlang C Forecasting
===============
Agner Krarup Erlang(1878-1929) is the man behind this math. He studied the performance of
telephone networks.
When Erlang C function is used, we do not apply the essential forecasting response time formulas,
Instead, we have a single new queue time formula that can be applied to both CPU & I/O
subsystem.
For CPU subsystems, there is only one queue, So the entire system arrival rate is (λsys), But for IO
subsystems, the arrival rate at each queue (λq) is the system arrival rate(λsys) divided by the number of
I/O devices.
U= St λq Q= λq Qt Ec= Erlang(m, St, λq) Qt= Ec St
--------- -----------
m m(1-U)
Queuing Theory
Example CPU Subsystem Modelling
Example IO Subsystem Modelling
Wider Approach of Analysis
Create An Impact With Capacity Analysis
So let’s see an example of 4-cpu Intel boxes and put them together in a cluster with Oracle11G and RAC
on top:
Price for the hardware: About US$15,000 or so.
Price for the OS (Linux): About US$ 0.5- or thereabout (it depends!)
Price for Oracle w/ RAC: US$480,000,-
So that’s half a million to Oracle. Put another way: It’s 1 dollar to the box movers for every 32 dollars paid
for Oracle RAC.
Psychologically it’s hard for the customers to understand that they have to buy something that expensive
to run on such cheap hardware. The gap is too big, and Oracle will need to address it soon.
There’s nothing like RAC on the market, but that doesn’t mean you have to buy RAC. A usual joke exists
that it’s like buying a car for US$10,000,- that has all the facilities you need from a good and stable car.
Airbags and ABS brakes are US$500,000,- extra, by the way. Well, airbags and ABS are wonderful to have
and they increase your security. But it’s a lot of money compared to the basic car price.
Q&A
References
References
1. Forecasting Oracle Performance by Craig Shallahamer (Apress, 2007)
Thank You

More Related Content

What's hot

How oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalHow oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalAjith Narayanan
 
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
 
Oracle Rac Performance Tunning Tips&Tricks
Oracle Rac Performance Tunning Tips&TricksOracle Rac Performance Tunning Tips&Tricks
Oracle Rac Performance Tunning Tips&TricksZekeriya Besiroglu
 
Analyzing and Interpreting AWR
Analyzing and Interpreting AWRAnalyzing and Interpreting AWR
Analyzing and Interpreting AWRpasalapudi
 
Performance Tuning Oracle Weblogic Server 12c
Performance Tuning Oracle Weblogic Server 12cPerformance Tuning Oracle Weblogic Server 12c
Performance Tuning Oracle Weblogic Server 12cAjith Narayanan
 
Trivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert Bialek
Trivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert BialekTrivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert Bialek
Trivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert BialekTrivadis
 
Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014John Beresniewicz
 
OOUG - Oracle Performance Tuning with AAS
OOUG - Oracle Performance Tuning with AASOOUG - Oracle Performance Tuning with AAS
OOUG - Oracle Performance Tuning with AASKyle Hailey
 
Oracle Oracle Performance Tuning
Oracle Oracle Performance Tuning Oracle Oracle Performance Tuning
Oracle Oracle Performance Tuning Kernel Training
 
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
 
Oracle Database Performance Tuning Concept
Oracle Database Performance Tuning ConceptOracle Database Performance Tuning Concept
Oracle Database Performance Tuning ConceptChien Chung Shen
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuningAbishek V S
 
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
 
Oracle performance tuning_sfsf
Oracle performance tuning_sfsfOracle performance tuning_sfsf
Oracle performance tuning_sfsfMao Geng
 
Oracle Database Performance Tuning Basics
Oracle Database Performance Tuning BasicsOracle Database Performance Tuning Basics
Oracle Database Performance Tuning Basicsnitin anjankar
 
Best Practices for Oracle Exadata and the Oracle Optimizer
Best Practices for Oracle Exadata and the Oracle OptimizerBest Practices for Oracle Exadata and the Oracle Optimizer
Best Practices for Oracle Exadata and the Oracle OptimizerEdgar Alejandro Villegas
 
Whitepaper: Exadata Consolidation Success Story
Whitepaper: Exadata Consolidation Success StoryWhitepaper: Exadata Consolidation Success Story
Whitepaper: Exadata Consolidation Success StoryKristofferson A
 
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12sidg75
 
Fatkulin hotsos 2014
Fatkulin hotsos 2014Fatkulin hotsos 2014
Fatkulin hotsos 2014Enkitec
 

What's hot (20)

How oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalHow oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 final
 
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, ...
 
Oracle Rac Performance Tunning Tips&Tricks
Oracle Rac Performance Tunning Tips&TricksOracle Rac Performance Tunning Tips&Tricks
Oracle Rac Performance Tunning Tips&Tricks
 
Analyzing and Interpreting AWR
Analyzing and Interpreting AWRAnalyzing and Interpreting AWR
Analyzing and Interpreting AWR
 
Performance Tuning Oracle Weblogic Server 12c
Performance Tuning Oracle Weblogic Server 12cPerformance Tuning Oracle Weblogic Server 12c
Performance Tuning Oracle Weblogic Server 12c
 
Trivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert Bialek
Trivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert BialekTrivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert Bialek
Trivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert Bialek
 
Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014
 
OOUG - Oracle Performance Tuning with AAS
OOUG - Oracle Performance Tuning with AASOOUG - Oracle Performance Tuning with AAS
OOUG - Oracle Performance Tuning with AAS
 
Oracle Oracle Performance Tuning
Oracle Oracle Performance Tuning Oracle Oracle Performance Tuning
Oracle Oracle Performance Tuning
 
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
 
Oracle Database Performance Tuning Concept
Oracle Database Performance Tuning ConceptOracle Database Performance Tuning Concept
Oracle Database Performance Tuning Concept
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuning
 
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
 
Oracle performance tuning_sfsf
Oracle performance tuning_sfsfOracle performance tuning_sfsf
Oracle performance tuning_sfsf
 
Using Statspack and AWR for Memory Monitoring and Tuning
Using Statspack and AWR for Memory Monitoring and TuningUsing Statspack and AWR for Memory Monitoring and Tuning
Using Statspack and AWR for Memory Monitoring and Tuning
 
Oracle Database Performance Tuning Basics
Oracle Database Performance Tuning BasicsOracle Database Performance Tuning Basics
Oracle Database Performance Tuning Basics
 
Best Practices for Oracle Exadata and the Oracle Optimizer
Best Practices for Oracle Exadata and the Oracle OptimizerBest Practices for Oracle Exadata and the Oracle Optimizer
Best Practices for Oracle Exadata and the Oracle Optimizer
 
Whitepaper: Exadata Consolidation Success Story
Whitepaper: Exadata Consolidation Success StoryWhitepaper: Exadata Consolidation Success Story
Whitepaper: Exadata Consolidation Success Story
 
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12
Garbage Collection, Tuning And Monitoring JVM In EBS 11i And R12
 
Fatkulin hotsos 2014
Fatkulin hotsos 2014Fatkulin hotsos 2014
Fatkulin hotsos 2014
 

Similar to Oracle databasecapacityanalysisusingstatisticalmethods

CS 301 Computer ArchitectureStudent # 1 EID 09Kingdom of .docx
CS 301 Computer ArchitectureStudent # 1 EID 09Kingdom of .docxCS 301 Computer ArchitectureStudent # 1 EID 09Kingdom of .docx
CS 301 Computer ArchitectureStudent # 1 EID 09Kingdom of .docxfaithxdunce63732
 
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
 
Systems oracle overview_hardware
Systems oracle overview_hardwareSystems oracle overview_hardware
Systems oracle overview_hardwareFran Navarro
 
Strata + Hadoop 2015 Slides
Strata + Hadoop 2015 SlidesStrata + Hadoop 2015 Slides
Strata + Hadoop 2015 SlidesJun Liu
 
Applyinga blockcentricapproach
Applyinga blockcentricapproachApplyinga blockcentricapproach
Applyinga blockcentricapproachoracle documents
 
Performance Characterization of the Pentium Pro Processor
Performance Characterization of the Pentium Pro ProcessorPerformance Characterization of the Pentium Pro Processor
Performance Characterization of the Pentium Pro ProcessorDileep Bhandarkar
 
Oracle Performance Tuning DE(v1.2)-part2.ppt
Oracle Performance Tuning DE(v1.2)-part2.pptOracle Performance Tuning DE(v1.2)-part2.ppt
Oracle Performance Tuning DE(v1.2)-part2.pptVenugopalChattu1
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Aaron Shilo
 
Interface for Performance Environment Autoconfiguration Framework
Interface for Performance Environment Autoconfiguration FrameworkInterface for Performance Environment Autoconfiguration Framework
Interface for Performance Environment Autoconfiguration FrameworkLiang Men
 
Affect of parallel computing on multicore processors
Affect of parallel computing on multicore processorsAffect of parallel computing on multicore processors
Affect of parallel computing on multicore processorscsandit
 
AFFECT OF PARALLEL COMPUTING ON MULTICORE PROCESSORS
AFFECT OF PARALLEL COMPUTING ON MULTICORE PROCESSORSAFFECT OF PARALLEL COMPUTING ON MULTICORE PROCESSORS
AFFECT OF PARALLEL COMPUTING ON MULTICORE PROCESSORScscpconf
 
DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...
DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...
DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...Ilango Jeyasubramanian
 
שבוע אורקל 2016
שבוע אורקל 2016שבוע אורקל 2016
שבוע אורקל 2016Aaron Shilo
 
Neurosynaptic chips
Neurosynaptic chipsNeurosynaptic chips
Neurosynaptic chipsJeffrey Funk
 
Oracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningOracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningScott Jenner
 
참여기관_발표자료-국민대학교 201301 정기회의
참여기관_발표자료-국민대학교 201301 정기회의참여기관_발표자료-국민대학교 201301 정기회의
참여기관_발표자료-국민대학교 201301 정기회의DzH QWuynh
 

Similar to Oracle databasecapacityanalysisusingstatisticalmethods (20)

CS 301 Computer ArchitectureStudent # 1 EID 09Kingdom of .docx
CS 301 Computer ArchitectureStudent # 1 EID 09Kingdom of .docxCS 301 Computer ArchitectureStudent # 1 EID 09Kingdom of .docx
CS 301 Computer ArchitectureStudent # 1 EID 09Kingdom of .docx
 
Whitepaper: Where did my CPU go?
Whitepaper: Where did my CPU go?Whitepaper: Where did my CPU go?
Whitepaper: Where did my CPU go?
 
Systems oracle overview_hardware
Systems oracle overview_hardwareSystems oracle overview_hardware
Systems oracle overview_hardware
 
Strata + Hadoop 2015 Slides
Strata + Hadoop 2015 SlidesStrata + Hadoop 2015 Slides
Strata + Hadoop 2015 Slides
 
Applyinga blockcentricapproach
Applyinga blockcentricapproachApplyinga blockcentricapproach
Applyinga blockcentricapproach
 
Performance Characterization of the Pentium Pro Processor
Performance Characterization of the Pentium Pro ProcessorPerformance Characterization of the Pentium Pro Processor
Performance Characterization of the Pentium Pro Processor
 
Oracle Performance Tuning DE(v1.2)-part2.ppt
Oracle Performance Tuning DE(v1.2)-part2.pptOracle Performance Tuning DE(v1.2)-part2.ppt
Oracle Performance Tuning DE(v1.2)-part2.ppt
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
 
Interface for Performance Environment Autoconfiguration Framework
Interface for Performance Environment Autoconfiguration FrameworkInterface for Performance Environment Autoconfiguration Framework
Interface for Performance Environment Autoconfiguration Framework
 
Affect of parallel computing on multicore processors
Affect of parallel computing on multicore processorsAffect of parallel computing on multicore processors
Affect of parallel computing on multicore processors
 
AFFECT OF PARALLEL COMPUTING ON MULTICORE PROCESSORS
AFFECT OF PARALLEL COMPUTING ON MULTICORE PROCESSORSAFFECT OF PARALLEL COMPUTING ON MULTICORE PROCESSORS
AFFECT OF PARALLEL COMPUTING ON MULTICORE PROCESSORS
 
DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...
DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...
DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...
 
שבוע אורקל 2016
שבוע אורקל 2016שבוע אורקל 2016
שבוע אורקל 2016
 
Neurosynaptic chips
Neurosynaptic chipsNeurosynaptic chips
Neurosynaptic chips
 
PPC 750
PPC 750PPC 750
PPC 750
 
Siem tools
Siem toolsSiem tools
Siem tools
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Oversimplified CA
Oversimplified CAOversimplified CA
Oversimplified CA
 
Oracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningOracle R12 EBS Performance Tuning
Oracle R12 EBS Performance Tuning
 
참여기관_발표자료-국민대학교 201301 정기회의
참여기관_발표자료-국민대학교 201301 정기회의참여기관_발표자료-국민대학교 201301 정기회의
참여기관_발표자료-국민대학교 201301 정기회의
 

Recently uploaded

Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Salam Al-Karadaghi
 
Event 4 Introduction to Open Source.pptx
Event 4 Introduction to Open Source.pptxEvent 4 Introduction to Open Source.pptx
Event 4 Introduction to Open Source.pptxaryanv1753
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Pooja Nehwal
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfhenrik385807
 
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...NETWAYS
 
Philippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptPhilippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptssuser319dad
 
Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSimulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSebastiano Panichella
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfhenrik385807
 
The 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software EngineeringThe 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software EngineeringSebastiano Panichella
 
Work Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxWork Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxmavinoikein
 
Mathan flower ppt.pptx slide orchids ✨🌸
Mathan flower ppt.pptx slide orchids ✨🌸Mathan flower ppt.pptx slide orchids ✨🌸
Mathan flower ppt.pptx slide orchids ✨🌸mathanramanathan2005
 
Genshin Impact PPT Template by EaTemp.pptx
Genshin Impact PPT Template by EaTemp.pptxGenshin Impact PPT Template by EaTemp.pptx
Genshin Impact PPT Template by EaTemp.pptxJohnree4
 
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...marjmae69
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@vikas rana
 
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...henrik385807
 
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...NETWAYS
 
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)Basil Achie
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...NETWAYS
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Krijn Poppe
 

Recently uploaded (20)

Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
 
Event 4 Introduction to Open Source.pptx
Event 4 Introduction to Open Source.pptxEvent 4 Introduction to Open Source.pptx
Event 4 Introduction to Open Source.pptx
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
 
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
 
Philippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptPhilippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.ppt
 
Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSimulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
 
The 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software EngineeringThe 3rd Intl. Workshop on NL-based Software Engineering
The 3rd Intl. Workshop on NL-based Software Engineering
 
Work Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxWork Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptx
 
Mathan flower ppt.pptx slide orchids ✨🌸
Mathan flower ppt.pptx slide orchids ✨🌸Mathan flower ppt.pptx slide orchids ✨🌸
Mathan flower ppt.pptx slide orchids ✨🌸
 
Genshin Impact PPT Template by EaTemp.pptx
Genshin Impact PPT Template by EaTemp.pptxGenshin Impact PPT Template by EaTemp.pptx
Genshin Impact PPT Template by EaTemp.pptx
 
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...
Gaps, Issues and Challenges in the Implementation of Mother Tongue Based-Mult...
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@
 
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
 
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
 
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝
 
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
 

Oracle databasecapacityanalysisusingstatisticalmethods

  • 1. Oracle Database Capacity Analysis Using Statistical Methods Ajith Narayanan Dell IT Nuremberg, Germany, 19th Nov 2013
  • 2. Disclaimer The views/contents in this slides are those of the author and do not necessarily reflect that of Oracle Corporation and/or its affiliates/subsidiaries. The material in this document is for informational purposes only and is published with no guarantee or warranty, express or implied..
  • 3. Who Am I? Ajith Narayanan Dell IT Bangalore, India 9 years of Oracle [APPS] DBA experience. Blogger :- http://oracledbascriptsfromajith.blogspot.com Website Chair:- http://www.oracleracsig.org – Oracle RAC SIG (Sep 2011 – Sep 2013) Member:- IOUG, OAUG & AIOUG
  • 4. Agenda Why system capacity? Are you being served properly? What Are The Different Statistical Methods Of Analyzing The System Capacity Of Database Tier Simple Math – CPU Analysis. Linear Regression Model for CPU. Queuing Theory – CPU or I/O Subsystems. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Q&A~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • 5. Why System Capacity? Are You Being Served Properly? How long can you wait to have your favorite dish at your favorite restaurant ? Waiter says you will have to wait for another 1 hour to be served. Imagine a angry waiter on your table, refusing to serve you. (No Service) Obviously, you are not happy !! Any computer system serves you in similar fashion if not properly sized. Capacity Planning plays a vital role in such situations. Proper capacity analysis done by restaurant owner could have helped the waiter serve you your favorite dish faster .
  • 6. What are the different statistical methods of analyzing the system capacity a database server? Introduction of Capacity Analysis Methods Simple Math - This model can take single component inputs either application or technical metrics. This method is usually involved with short-duration projects, The precision is usually low, but sufficient when used appropriately. Linear Regression Analysis – This method is typically used to determine how much of some business activity can occur before the system runs out of gas. Queuing Theory – This method uses Queuing theory used in telecom networks for high precision capacity base lining & forecasting.
  • 8. Simple Math - CPU Scenario:- The customer wants to downsize the infrastructure and check the CPU requirements for a 4-node 16 CPU Database tier. On Host1 , during peak utilization timings (1/5/09 3:00 AM- 4:00 AM), CPU utilization was 39.27%. CPU consumption = 0.3927 X 14,400 s (per hour available capacity) = 5654.88s Similarly, on Host2, Host3, Host4 observed Peak CPU consumption were 43.87% (Avg) 6173.28 s, 41.22 %(Avg) 5935.68 s and 53.11% (Avg) 7503.84s respectively. Total CPU requirement = 25267.68 s/Hour Calculate Utilization with 16 CPU’s ~~~~~~~~~~~~~~~~~~~~~~~~ Considering 10% overhead for OS, estimated CPU utilization on 8-core (Dell 1950 QC) Physical Server = (25267.68 + 25267.68 *10%) / (16*60*60) = 0.4825425 = 48.25% Calculate Utilization with 12 CPU’s ~~~~~~~~~~~~~~~~~~~~~~~~ Considering 10% overhead for OS , estimated CPU utilization on 4-core (Dell 1950 QC) Physical Server = (25267.68 + 25267.68 *10%)/ (12*60*60) = 0.64339 = 64.33% Calculate Utilization with 8 CPU’s ~~~~~~~~~~~~~~~~~~~~~~~~ Considering 10% overhead for OS , estimated CPU utilization on 4-core (Dell 1950 QC) Physical Server = (25267.68 + 25267.68 *10%)/ (8*60*60) = 0.87735 = 87.73%
  • 11. How many of you think RAM access is 10,000 times faster than Physical disk access? In real world, LIO is only 25-100 times cheaper than PIO - …not 1,000s or 10,ooos Reason – Internal locks & latch serialization mechanisms involved. Targeting only PIO counts(or high cache hit ratios) during SQL optimization is an important pitfall to avoid. Even with no PIOs, a query can still be outrageously inefficient -LIO are a critical component of query cost LIO is Expensive?
  • 12. Oracle Logical I/O (LIO) - Oracle requests a block from the database buffer cache -LIO statistics are captured in db block gets, consistent gets, session logical reads & buffer is pinned count statistics - In raw trace data, It’s cr + cu Oracle physical I/O (PIO) Oracle requests one or more blocks from the operating system Might be “physical,” might not be PIO statistics are captured in the physical reads statistics In raw trace data, it’s p or pr Note:- There are occasions were Oracle manipulates database blocks without using the database buffer cache (e.g. blocks read by PQO access paths, and blocks read from temporary segments) Definitions: LIO and PIO
  • 13. Linear Regression Analysis WHAT IS LINEAR REGRESSION ======================== Linear regression analysis is a method for investigating relationships among variables. eg. Logical Rds Vs CPU utilization Relation is y=mx +c (equation of straight line), Here c represents the y-intercept of the line and m represents the slope. Here the variable “LIO" is used to predict the value of CPU Utilization .So, “LIO" becomes the explanatory variable. On the other hand, the variable whose value is to be predicted is known as response or dependent variable Generally response variable is denoted as Y & predicted variable denoted as X
  • 14. Linear Regression Analysis Scenario:- Database capacity forecasting Observations: •CPU utilization is highly correlated with Logical Reads. Correlation coefficient 0.98 in (ideal 1.0) . Both the CPU usage & Logical Reads trend line are similar. (Spikes are matching 98%)
  • 15. Linear Regression Analysis Scenario:- Database capacity forecasting Observations: • Current Capacity can handle additional 2000% workload by maintaining CPU utilization at 38.62% (Considering additional OS overhead etc.) • Moreover, there is a downsizing possibility seen for reducing the box capacity from 8 CPU to 4 CPU (As indicated by rightmost column)
  • 17. Queuing Structure of CPU & IO Subsystems
  • 19. Queuing Theory Queuing Theory is basically an upgrade to essential forecasting mathematics. This method can do a baseline of the current capacity along with its forecasting(Scalability/Downgrading possibility) Erlang C Forecasting =============== Agner Krarup Erlang(1878-1929) is the man behind this math. He studied the performance of telephone networks. When Erlang C function is used, we do not apply the essential forecasting response time formulas, Instead, we have a single new queue time formula that can be applied to both CPU & I/O subsystem. For CPU subsystems, there is only one queue, So the entire system arrival rate is (λsys), But for IO subsystems, the arrival rate at each queue (λq) is the system arrival rate(λsys) divided by the number of I/O devices. U= St λq Q= λq Qt Ec= Erlang(m, St, λq) Qt= Ec St --------- ----------- m m(1-U)
  • 20. Queuing Theory Example CPU Subsystem Modelling Example IO Subsystem Modelling
  • 21. Wider Approach of Analysis
  • 22. Create An Impact With Capacity Analysis So let’s see an example of 4-cpu Intel boxes and put them together in a cluster with Oracle11G and RAC on top: Price for the hardware: About US$15,000 or so. Price for the OS (Linux): About US$ 0.5- or thereabout (it depends!) Price for Oracle w/ RAC: US$480,000,- So that’s half a million to Oracle. Put another way: It’s 1 dollar to the box movers for every 32 dollars paid for Oracle RAC. Psychologically it’s hard for the customers to understand that they have to buy something that expensive to run on such cheap hardware. The gap is too big, and Oracle will need to address it soon. There’s nothing like RAC on the market, but that doesn’t mean you have to buy RAC. A usual joke exists that it’s like buying a car for US$10,000,- that has all the facilities you need from a good and stable car. Airbags and ABS brakes are US$500,000,- extra, by the way. Well, airbags and ABS are wonderful to have and they increase your security. But it’s a lot of money compared to the basic car price.
  • 23. Q&A
  • 24. References References 1. Forecasting Oracle Performance by Craig Shallahamer (Apress, 2007)