black and white energy savings tuning truths
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
1
The Black, White, and GREEN Truths
The Ripple Effect Value
Of Database Tuning
2
GREEN IT Mandates…
3
CPU Busy & Power Consumption
100 tx/sec
200 tx/sec
400 tx/sec
idle
600 tx/sec
800 tx/sec
4
The Ripple Effects of DatabasePerformance Tuning & Optimization…
View Video: http://www.youtube.com/watch?v=qWfgYOtYfOk
Click filmStrip to watch movie locally
5
Demonstrated Truths
• Optimized Database Tuning Provides– Better Response Times– Improved Ability to Add more Users– Lower Energy Consumption
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
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
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
9
IBM San Mateo Innovation Center
10
Let’s START!
11
System is Idle
12
Power Used @ System Idle
13
1 User Response Times
14
50 Users – Hit the Wall
15
101 Users 43 Sec Response Time
16
101 Users – Power Consumed
17
Tune with DBI Brother-Panther®
Find the tables with highest I/O rates
18
Tune with DBI Brother-Panther®
Find the statements (SQL) driving I/O to the table…
19
Tune with DBI Brother-Panther®
20
IBM Design Advisor advice
21
Implement new Indexes
22
After Adding Indexes (Tuning)…
23
Power after Tuning
24
Double # Users
25
Power: 201 Users after Tuning
26
401 Users
RESPONSE TIME:0.0018 seconds!
27
743 Users
28
743 Users
29
10-1,400 TX/Sec
18,200 SQL/Second!!!
30
Overall - SLA Attainment
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
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!
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
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
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
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
37
Your Choice?HIGH COSTS, INADEQUATE PERFORMANCE
LOW COSTS, HIGH PERFORMANCE
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
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.
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
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
42
Simple Analogy
You can get more people into, and onto, a VW Beetlewhen the people are smaller…
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!
44
Case Study: Cost Problems
70% of CPU timeAttributable to 3
SQL Statements!
45
Case Study: Big Cost Problems
74% of CPU timeAttributable to 3
SQL Statements!
46
Case Study: BIG Cost Problems
97% of CPU timeattributable to 1SQL Statement!
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
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
49
Your Choice for RESULTS
1-866-773-8789