Documente Academic
Documente Profesional
Documente Cultură
Agenda
SQL Server Consolidation
Virtualization & Microsoft Hyper-V
Architecture
Consolidation Performance
High Availability & Manageability offerings
Achieving scalability with Virtualization
Key Takeaways
rd
a
H
re
a
w
m
co
er o
b
Num
t in
u
p
p
ca
ity
c
a
pps
a
e
s
aba
t
a
fd
DBAs
Number of
1990
2000
2010
Underutiliz
Underutiliz
ed
ed
hardware
hardware
Overburden
Overburden
ed
ed
Administrat
Administrat
ors
ors
Reduce Op-Ex
Improve Hardware
Utilization Efficiency
Improve Management
Efficiency
Lowered cost and
complexity for High
Availability
Infrastructure Agility
Load Balancing &
Dynamic Provisioning
Standardization of
services
Virtual
IT Managed
Environment Machines
Instances
Sales_1
Databases
Consolidate_1
Marketing_1
Online_Sale
s
ERP_10
ERP_10
DB_1
DB_2
DB_3
Schemas
Costs
Lower Costs
Density, Lower
Higher
Higher Density,
Higher
Higher Isolation,
Isolation, Higher
Higher Costs
Costs
Consolidate_1
Marketing_1
Online_Sale
s
ERP_10
ERP_10
DB_1
DB_2
DB_3
Lower
Density, Lower
Higher
Higher Density,
Costs
Costs
Higher
Higher Isolation,
Isolation, Higher
Higher Costs
Costs
Instances
Sales_1
Databases
Consolidate_1
Marketing_1
Online_Sale
s
ERP_10
ERP_10
DB_1
DB_2
DB_3
Lower
Density, Lower
Higher
Higher Density,
Costs
Costs
Higher
Higher Isolation,
Isolation, Higher
Higher Costs
Costs
Virtual
Machines
Instances
Sales_1
Databases
Consolidate_1
Marketing_1
Online_Sale
s
ERP_10
ERP_10
DB_1
DB_2
DB_3
Costs
Lower Costs
Density, Lower
Higher
Higher Density,
Higher
Higher Isolation,
Isolation, Higher
Higher Costs
Costs
Reduce
Op-Ex
Agile IT
Security isolation
HA : Failure isolation
Density of apps
Manageability Impact
Time to Market
Agenda
SQL Server Consolidation
Virtualization & Microsoft Hyper-V
Architecture
Consolidation Performance
High Availability & Manageability offerings
Achieving scalability with Virtualization
Key Takeaways
I/O
Stack
s
Child
Partition
Enlightened OS
NonEnlightened OS
Server
Server
Applications
Child
Partition
Windows Server
2008
I/O Stacks
TCP/IP , File
systems
Fast Path
Virtual
Service
Clients
Drivers
VMBus
Child
Partition
VMBus
I/O Stacks
TCP/IP , File
systems
Device
Emulation
Device
Emulation
Drivers
Drivers
Hypervisor
Devices
Processo
rs
Hardwa
re
User
Mode
Memory
Kernel
Mode
Hypervisor
Mode
Agenda
SQL Server Consolidation
Virtualization & Microsoft Hyper-V
Architecture
Consolidation Performance
High Availability & Manageability offerings
Achieving scalability with Virtualization
Key Takeaways
% Processor Time
% Processor Time counters in
either guest or root may not be
accurate
Configura
tion
Considerations
Guest VM w/
Passthrough
Disks
Passthrough Disk:
disks
Guest VM w/
VHD
Dynamic VHD :
Expand on demand
configuration
2500
60
55
50
2000
45
Batches/sec_Na
tive
Batches/sec_VM
40
1500
35
30
25
1000
20
15
500
10
5
0
0
1Instances
2Instances
3Instances
4Instances
Batches/sec/Inst
_Native
Batches/sec/Inst
_VM
%
Processor_Nativ
e
% Processor_VM
Results
%Processor
Same throughput attainable with CPU
2000
100
1800
90
1600
80
1400
70
1200
60
1000
50
800
40
Batches/sec_Na
tive
Batches/sec_VM
Batches/sec/Inst
_Native
Batches/sec/Inst
_VM
20
400
%
Processor_Nativ
e
10
200
% Processor_VM
600
30
0
1 Inst
2 Inst
3 Inst
4 Inst
Measuring
VHDs
8,000
Total
Read IOs per Second
6,000
4,000
0.01
0.01
0.01
0
2,000
Total
Reads/sec
(Dedicated
LUNs)
Results:
% P ro c e s s o r t im e
R e s p o n s e T im e ( s e c )
Configuration:
Response Time_VM
Response Time_Native
%Processor_VM
%Processor_Native
Agenda
SQL Server Consolidation
Virtualization & Microsoft Hyper-V
Architecture
Consolidation Performance
High Availability & Manageability offerings
Achieving scalability with Virtualization
Key Takeaways
Virtualization
Benefits:
VM
Guest
Cluste
r
Guest
Cluste
r
Redundant
Paths to storage
Shared
Storage
iSCSI
Virtualization
Benefits:
1
1
Live
Migration
Host cluster
Shared
Storage
iSCSI, SAS,
Fibre
Maximize Resources
Centralized virtual machine deployment and
management for Hyper-V, Virtual Server,
and VMware ESX servers
Intelligent placement of Virtual Machines
Fast and reliable P2V and V2V conversion
Comprehensive application and service-level
monitoring with Operations Manager
Integrated Performance and Resource
Optmization (PRO) of VMs
Increase Agility
Rapid provisioning of new virtual machines
with templates
Centralized library of infrastructure
components
Leverage and extend existing storage
infrastructure and clusters
Allow for delegated management and
access of VMs
Leverage Skills
Familiar interface, common foundation ,
powershell scripting
Agenda
SQL Server Consolidation
Key Takeaways
SMP
CPU
CPU 0
0
CPU
CPU 1
1
CPU
CPU 2
2
CPU
CPU 3
3
CPU
CPU 4
4
NUMA
NUMA NODE
NODE 0
0
NUMA
CPU
CPU 6
6
CPU
CPU 7
7
NUMA
NUMA NODE
NODE 1
1
CPU
CPU 0
0
CPU
CPU 2
2
CPU
CPU 1
1
CPU
CPU 3
3
CPU
CPU 5
5
Foreign
Memory
Access
4x local
CPU
CPU 4
4
CPU
CPU 6
6
CPU
CPU 5
5
CPU
CPU 7
7
Memory
Memory
Guest
Guest Physical
Physical
Guest
Memory
view
Guest Physical
Physical
Memory
view
Pages
Guest
Pages
Guest Physical
Physical
Guest
Memory
view
Guest Physical
Physical
Memory
view
Pages
Guest
Pages
Guest Physical
Physical
view
view Memory
Guest
Guest Physical
Physical
Memory
Pages
Pages
Virtual
Virtual Machine
Machine 3
3
Virtual
Virtual Machine
Machine 1
1
Host
Host Physical
Physical // real
real view
view
Physical
Physical Memory
Memory Pages
Pages
Hyper
Hyper Visor
Visor
Operating
Operating System
System
Results:
CPU over-commit
Improved performance with Windows
Server 2008 R2 and SLAT processor
architecture
Almost
Almost Linear
Linear Scale
Scale
No
CPU
over-commit
No CPU over-commit
70
Throughput
(Batch
requests/sec)
3500
CPU over-commit
3000
60
2500
50
Heavy
Load
2000
40
30
1500
1000
20
500
10
0
Modera
te
Load
Low
Load
0
1VM
2VM
Batch req/sec
3VM
4VM
%CPU
5VM
6VM
7VM
Relative Throughput
8VM
Relative Throughput for
Windows Server 2008
NUMA
NUMA NODE
NODE 1
1
CPU
CPU 0
0
CPU
CPU 2
2
CPU
CPU 4
4
CPU
CPU 6
6
CPU
CPU 1
1
CPU
CPU 3
3
CPU
CPU 5
5
CPU
CPU 7
7
Memory
Memory
C0
C1
C2
C7 MCH1
C3
MCH0
C4
C5
Memory
Memory
Memory
NUMA
NUMA NODE
NODE 1
1
CPU
CPU 0
0
CPU
CPU 2
2
CPU
CPU 4
4
CPU
CPU 6
6
CPU
CPU 1
1
CPU
CPU 3
3
CPU
CPU 5
5
CPU
CPU 7
7
Memory
Memory
Snoop Filter
reduces
internode
traffic
Fetch addr (first
C3
MCH0
C4
C5
Memory
time)
1. Issue Fetch to
Memory
Controller Hub
(MCH)
2. Check local
snoop filter
3. Check foreign
snoop filter
4. Get data from
memory
controller
C0
C1
C2
C6
C7 MCH1
Memory
Memory
90.28
93.12
91.70
5000
94.05
4500
82.12
80
70
60
4000
55%
57.84
42%
60.15
57.84
59.79
60.67
3500
3000
50
2500
40
2000
30
1500
20
1000
10
500
0
VM1
VM2
VM4
VM6
VM8
Batches/sec_Ist
anbul
Batches/sec_Sh
anghai
%Processor
Time_Istanbul
%Processor
Time_Shanghai
Relative
Throughput_Ista
nbul
Agenda
SQL Server Consolidation
Key Takeaways
Consolidation Approach
Consolidation Approach
Legacy
Consolidated
$50,000
$40,000
$30,000
$20,000
$10,000
$0
Legacy
Consolidated
Legacy
Consolidated
Key Takeaways
No One-size Solution for Consolidation
Hyper-V is a solid platform for SQL Server, both for scalability and
performance
Understand performance and functional needs of workloads being
consolidated
If possible, avoid consolidation of heterogeneous workloads on the
same Windows Server
Key Takeaways
Resource Management
Hyper-V CPU management tools to manage CPU resources at VM
Level
WSRM to manage multiple instances CPU resource
Resource Governor to manage within an instance
Microsoft Assessment
and Planning Toolkit
Identify SQL instances
automatically
Assess Hyper-V virtualization
candidates for server
consolidation
Download at
www.microsoft.com/MAP
question &
answer
Resources
www.microsoft.com/teched
www.microsoft.com/learning
http://microsoft.com/techne
t
http://microsoft.com/ms
dn
References
Running SQL 2008 in Hyper-V Environment
http://sqlcat.com/whitepapers/archive/2008/10/03/running-sql-server-2008-ina-hyper-v-environment-best-practices-and-performancerecommendations.aspx
www.moresqlserver.com
Complete an
evaluation on
CommNet and enter
to win an Xbox 360
Elite!
2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S.
and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must
respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information
provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.