oracle closed world 2010: graphing the aas ala em + doing some cool linear regression

48
Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Upload: karlarao

Post on 17-Jun-2015

1.542 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Oracle Closed World 2010: Graphing the AAS ala EM + doing 

some cool linear regression

Page 2: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Who am I?

• Karl Arao, Oracle ACE, OCP‐DBA, RHCT• Solutions Architect / Principal Consultant @ SQL*Wizard

• Blog: http://karlarao.wordpress.com• Wiki: http://karlarao.tiddlyspot.com

Page 3: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

DBA_HIST_* tables

Page 4: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

My first close encounter

Page 5: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

gc block lost

http://karlarao.wordpress.com/2009/06/07/diagnosing-and-resolving-gc-block-lost

Page 6: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

AWR Scripts

Page 7: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Visualization

Page 8: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Can’t go back in time?

Page 9: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

AAS – Average Active SessionsKyle Hailey: http://www.perfvision.com/ftp/emea_2010_may/02_AAS.ppt

Max CPU

Max CPU

Page 10: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

AAS – the Golden Metric

AAS & CPU count as a yardstick for a possible performance problem (I suggest reading Kyle's 

stuff about this):

if AAS < 1 

‐‐

Database is not blocked

AAS ~= 0 

‐‐

Database basically idle

‐‐

Problems are in the APP not DB

AAS < # of CPUs

‐‐

CPU available

‐‐

Database is probably not blocked

‐‐

Are any single sessions 100% active?

AAS > # of CPUs

‐‐

Could have performance problems

AAS >> # of CPUS

‐‐

There is a bottleneck

Page 11: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

awr_topevents.sql

Page 12: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Textual trends

Page 13: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 14: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 15: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 16: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

AAS throughout the AWR retention  period!

http://karlarao.wordpress.com/2010/07/25/graphing-the-aas-with-perfsheet-a-la-enterprise-manager

Page 17: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Capacity Planning

Page 18: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

awr_genwl.sql

Page 19: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

http://karlarao.wordpress.com/2010/01/31/workload-characterization-using-dba_hist-tables-and-ksar

Page 20: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

U = R / C

Page 21: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

where aas > 1

Page 22: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Filter the data points• AAS range

aas > 1

• Per SNAP_ID or range of SNAP_IDsid in (336)where id >= 336 and  id <= 340

• Oracle CPU Utilizationoracpupct > 50

• OS CPU Utilizationoscpupct > 50

• Workload periods

AND TO_CHAR(s0.END_INTERVAL_TIME,'D') >= 1     ‐‐

Day of week: 1=Sunday 7=SaturdayAND TO_CHAR(s0.END_INTERVAL_TIME,'D') <= 7AND TO_CHAR(s0.END_INTERVAL_TIME,'HH24MI') >= 0900     ‐‐

HourAND TO_CHAR(s0.END_INTERVAL_TIME,'HH24MI') <= 1800AND s0.END_INTERVAL_TIME >= TO_DATE('2010‐jan‐17 00:00:00','yyyy‐mon‐dd hh24:mi:ss')    ‐‐

Data rangeAND s0.END_INTERVAL_TIME <= TO_DATE('2010‐aug‐22 23:59:59','yyyy‐mon‐dd hh24:mi:ss‘)

Page 23: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 24: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Straight line graph: Slope‐Intercept Form y = mx + b

Page 25: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

AAS vs. CPU% utilizationhttp://karlarao.tiddlyspot.com/#r2project

Page 26: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 27: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 28: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 29: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 30: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 31: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 32: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 33: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

“oracpupct”

column also has a good linear fit. Since the  server’s load is CPU centric (see top r2 stats from .92 and  above), why not use it? 

AAS(y) against CPU% Utilization(x) will be more 

meaningful/readable instead of “CPU used by this session”

Page 34: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

AAS vs. CPU% utilizationhttp://karlarao.tiddlyspot.com/#r2project

Page 35: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Drilling down on the peak workload...  with AAS of 10

Page 36: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

AAS vs. CPU% utilizationhttp://karlarao.tiddlyspot.com/#r2project

Page 37: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 38: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 39: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 40: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 41: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Now on the low workload period...  with AAS of 2.2

Page 42: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

AAS vs. CPU% utilizationhttp://karlarao.tiddlyspot.com/#r2project

Page 43: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 44: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 45: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression
Page 46: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Conclusion

Page 47: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

References and Tools• http://karlarao.wordpress.com

– http://karlarao.tiddlyspot.com/#%5B%5BStorage%20IOPS%2Ccapacity%2Cperformance

%2Ccost%5D%5D

– http://karlarao.tiddlyspot.com/#Statistics– http://karlarao.tiddlyspot.com/#OraclePerformance

• Tanel

Poder

@ http://blog.tanelpoder.com– http://www.tanelpoder.com/files/TPT_public.zip– http://www.tanelpoder.com/files/PerfSheet.zip– Neil Gunther

& Tanel

Poder

Multidimensional Visualization of Oracle Performance 

using Barry007 http://arxiv.org/pdf/0809.2532

• Kyle Hailey @ http://ashmasters.com

, http://www.perfvision.com• Craig Shallahamer

@ orapub.com– Introduction To Oracle Server Consolidationhttp://resources.orapub.com/product_p/server_consolidation_ppt.htm

• Husnu

Sensoy

@ husnusensoy.wordpress.com– Database Consolidation Best Practiceshttp://husnusensoy.files.wordpress.com/2010/05/database‐consolidation‐best‐

practices.pdf

• Andy Rivenes

@ http://www.appsdba.com/pubs.htm• Neeraj

Bhatia @ www.nioug.org/files/Linear_Regression.pdf

Page 48: Oracle Closed World 2010: Graphing the AAS ala EM + doing some cool linear regression

Contact me through:

[email protected]