black and white energy savings tuning truths

49
1 The Black, White, and GREEN Truths The Ripple Effect Value Of Database Tuning

Upload: scott-hayes

Post on 20-May-2015

313 views

Category:

Technology


0 download

DESCRIPTION

This presentation shows research completed at the San Mateo IBM Innovation Center - it demonstrates how database tuning and optimization can save $1,000's/year in energy costs on a single server, and save $M's on database license costs - plus performance and productivity will improve as well.

TRANSCRIPT

Page 1: Black and White Energy Savings Tuning Truths

1

The Black, White, and GREEN Truths

The Ripple Effect Value

Of Database Tuning

Page 2: Black and White Energy Savings Tuning Truths

2

GREEN IT Mandates…

Page 3: Black and White Energy Savings Tuning Truths

3

CPU Busy & Power Consumption

100 tx/sec

200 tx/sec

400 tx/sec

idle

600 tx/sec

800 tx/sec

Page 4: Black and White Energy Savings Tuning Truths

4

The Ripple Effects of DatabasePerformance Tuning & Optimization…

View Video: http://www.youtube.com/watch?v=qWfgYOtYfOk

Click filmStrip to watch movie locally

Page 5: Black and White Energy Savings Tuning Truths

5

Demonstrated Truths

• Optimized Database Tuning Provides– Better Response Times– Improved Ability to Add more Users– Lower Energy Consumption

Page 6: Black and White Energy Savings Tuning Truths

6

Seeing is BELIEVING• San Mateo IIC

– IBM p570 with 16 CPUs, 36 GB Memory– DB2 LUW 9.5.3 with Automatic Tuning

Enabled– IBM Tivoli for Energy Management

• DBI Brother-Panther® – Rapidly ISOLATES performance issues– Automates optimized solutions– Trend Charts verify Tuning Success

Page 7: Black and White Energy Savings Tuning Truths

7

PROOF• Show Power Used @ CPU idle• Drive CPUs to 100% busy by simulating 100+

OLTP Web Users– Show SQL & TX Response Times

• Show Power Used @ 100% CPU busy• Tune Database with Brother-Panther• See RESULTS

– Lower CPU Utilization– Measurably Lower Power Consumption– SQL & TX Response Time Improvements

Page 8: Black and White Energy Savings Tuning Truths

8

Scalability Demonstrated

• MORE PROOF– With CPU Capacity Restored, we’ll add more

users!– Database Tuning Facilitates Server

Consolidation & Virtualization • More “Well Tuned” virtualized database servers

can be located within a given Frame

Page 9: Black and White Energy Savings Tuning Truths

9

IBM San Mateo Innovation Center

Page 10: Black and White Energy Savings Tuning Truths

10

Let’s START!

Page 11: Black and White Energy Savings Tuning Truths

11

System is Idle

Page 12: Black and White Energy Savings Tuning Truths

12

Power Used @ System Idle

Page 13: Black and White Energy Savings Tuning Truths

13

1 User Response Times

Page 14: Black and White Energy Savings Tuning Truths

14

50 Users – Hit the Wall

Page 15: Black and White Energy Savings Tuning Truths

15

101 Users 43 Sec Response Time

Page 16: Black and White Energy Savings Tuning Truths

16

101 Users – Power Consumed

Page 17: Black and White Energy Savings Tuning Truths

17

Tune with DBI Brother-Panther®

Find the tables with highest I/O rates

Page 18: Black and White Energy Savings Tuning Truths

18

Tune with DBI Brother-Panther®

Find the statements (SQL) driving I/O to the table…

Page 19: Black and White Energy Savings Tuning Truths

19

Tune with DBI Brother-Panther®

Page 20: Black and White Energy Savings Tuning Truths

20

IBM Design Advisor advice

Page 21: Black and White Energy Savings Tuning Truths

21

Implement new Indexes

Page 22: Black and White Energy Savings Tuning Truths

22

After Adding Indexes (Tuning)…

Page 23: Black and White Energy Savings Tuning Truths

23

Power after Tuning

Page 24: Black and White Energy Savings Tuning Truths

24

Double # Users

Page 25: Black and White Energy Savings Tuning Truths

25

Power: 201 Users after Tuning

Page 26: Black and White Energy Savings Tuning Truths

26

401 Users

RESPONSE TIME:0.0018 seconds!

Page 27: Black and White Energy Savings Tuning Truths

27

743 Users

Page 28: Black and White Energy Savings Tuning Truths

28

743 Users

Page 29: Black and White Energy Savings Tuning Truths

29

10-1,400 TX/Sec

18,200 SQL/Second!!!

Page 30: Black and White Energy Savings Tuning Truths

30

Overall - SLA Attainment

Page 31: Black and White Energy Savings Tuning Truths

31

RESULTS OVERVIEW

• Un-Tuned Database

• 100 Users• CPU Busy 100%• 3300 Watts• 51 Second Response

Time

• Database Tuned with Brother-Panther®

• 200 Users• CPU Busy 6%• 2688 Watts• .0018 Second

Response Time

Page 32: Black and White Energy Savings Tuning Truths

32

Bright Idea - 10 60 Watt Bulbs

The tuning work we did with Brother-Panther®saved the same amount of energy asturning off TEN 60 Watt Light Bulbs!

Page 33: Black and White Energy Savings Tuning Truths

33

2087

2591

2111

0

500

1000

1500

2000

2500

3000

Energy Cost for Server

Idle

Un-Tuned

Tuned

Energy Cost @ $0.09/KwhD

oll

ars

per

Yea

r

Page 34: Black and White Energy Savings Tuning Truths

34

15

51

0.0018

0

10

20

30

40

50

60

Seconds

Idle, 1 User Un-Tuned, 100 Users Tuned, 200 Users

TX Response Times

Page 35: Black and White Energy Savings Tuning Truths

35

Myth Busters

• Throwing Money at more CPUs won’t solve performance & scalability problems if the database isn’t properly tuned

• Database AUTOMATIC Tuning only REACTS to workloads to COMPENSATE for inadequate tuning– Only proper tuning achieves optimization at

lowest possible costs

Page 36: Black and White Energy Savings Tuning Truths

36

Your Choice?

• 24% Higher Energy Costs

• Higher Hardware & Software Costs

• Slow Response Times

• Poor Productivity

• Lower Energy Costs for Servers & A/C

• Lower Hardware & Software Costs– Consolidate more

servers!

• Sub-Second Response Times

• Improved Productivity

Page 37: Black and White Energy Savings Tuning Truths

37

Your Choice?HIGH COSTS, INADEQUATE PERFORMANCE

LOW COSTS, HIGH PERFORMANCE

Page 38: Black and White Energy Savings Tuning Truths

38

The Ripple Effects of DatabasePerformance Tuning & Optimization…

• Queries Run Faster• Faster Transactions > People > Business• Faster Decisions > Agility• Improved Productivity

• Lower Cost/TX and CPU Utilization• Lower Energy Costs• Greater Performance Predictability & Reliability• Defer/Avoid Unnecessary Hardware Upgrades• Enable Successful Server Consolidation &

Virtualization

Page 39: Black and White Energy Savings Tuning Truths

39

Typical Scenario

4 CPUs600-800 Watts

Planned Utilization

Extra Capacity•Inefficiency•Peak Periods

According to one of DBI’slargest customers, stand alone

servers typically run 6-20% busy.

Page 40: Black and White Energy Savings Tuning Truths

40

Server Farms

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

48 CPUs, 10 Amps

Page 41: Black and White Energy Savings Tuning Truths

41

Virtual Server

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

4 CPUs800 Watts

8 CPUs, 44% Less Power

How Does This Magic Work?SECRET: Remove InefficiencyTune & Optimize to remove

Peaks and Waste

Database License Savings: $1.3MEnergy Savings: $6,636/yr @ $.09/Kwh

Page 42: Black and White Energy Savings Tuning Truths

42

Simple Analogy

You can get more people into, and onto, a VW Beetlewhen the people are smaller…

Page 43: Black and White Energy Savings Tuning Truths

43

Lower Costs (trust but) VERIFY!

Brother-Panther™ Performance Trend Chartwith integrated Change Events ( )

#1 – An INDEX recommendedby Brother-Panther was

ADDED

#2 – Cost of DB Instructions/CPUMeasurably reduced

This Blue Line representsthe ideal “tuned” database transaction cost.

All Costs that appearabove the blue line Represent WASTEDCPU cycles anddegraded performance!

Helps eliminate CPU waste andimprove performance predictabilityand reliability – so your businesscan run faster at lower costs!

Page 44: Black and White Energy Savings Tuning Truths

44

Case Study: Cost Problems

70% of CPU timeAttributable to 3

SQL Statements!

Page 45: Black and White Energy Savings Tuning Truths

45

Case Study: Big Cost Problems

74% of CPU timeAttributable to 3

SQL Statements!

Page 46: Black and White Energy Savings Tuning Truths

46

Case Study: BIG Cost Problems

97% of CPU timeattributable to 1SQL Statement!

Page 47: Black and White Energy Savings Tuning Truths

47

DBI Product Demos – Ask for One!• DBI DB2 LUW Performance Suite

• Brother-Panther® - SQL Workload Analysis, Tuning, & Trending

• Brother-Thoroughbred® - Response Time Analysis and SLA Attainment Tracking

• Brother-Eagle® - Real Time Monitoring & “Elephant Hunting”

• Brother-Hawk™ - Advanced, Flexible, Lights-Out Automated Alerting Solution

• www.DBIsoftware.com/db2_tools_comparison.php

Page 48: Black and White Energy Savings Tuning Truths

48

DBI DB2 LUW Tools Architecture

Monitored Database Server

Monitored Database Server

DBI Repository Server

DBA Desktop

MGR Desktop

DBA Desktop

1 DBICollector

Agent

1 DBICollector

Agent

DBI RepositoryDB2 LUW V8.2, V9+

ssh

ssh

EAGLE

HAWK

Thoroughbred

Multiple DB2Instances/Databases

Multiple DB2Instances/Databases PANTHER

Thoroughbred

DBA Login Credentials ALWAYS RespectedSecure Monitoring – Literal Values Tokenized

Page 49: Black and White Energy Savings Tuning Truths

49

Your Choice for RESULTS

1-866-773-8789