• No results found

Scaling in a Hypervisor Environment

N/A
N/A
Protected

Academic year: 2021

Share "Scaling in a Hypervisor Environment"

Copied!
18
0
0

Loading.... (view fulltext now)

Full text

(1)

Scaling in a Hypervisor

Environment

Richard McDougall

(2)

VMware ESX Hypervisor Architecture VMkernel Guest Physical Hardware Monitor (BT, HW, PV) Guest Memory Allocator NIC Drivers Virtual Switch I/O Drivers File System Monitor Scheduler

Virtual NIC Virtual SCSI

TCP/IP

File System

CPU is controlled by

scheduler and virtualized by monitor

Monitor supports:

BT (Binary Translation)

HW (Hardware assist)

PV (Paravirtualization) Memory is allocated by the VMkernel and virtualized by the monitor

Network and I/O devices are emulated and proxied though native device

(3)

Evolution of Performance for Large Apps on ESX

Ability to satisfy Performance Demands General Population Of Apps ESX 2.x Overhead:30-60% VCPUs: 2 VM RAM:3.6 GB Phys RAM:64GB PCPUs:16 core IOPS:<10,000 N/W:380 Mb/s Monitor Type: Binary Translation VI 3.0 Overhead:20-40% VCPUs:2 VM RAM:16 GB Phys RAM:64GB PCPUs:16 core IOPS:10,000 N/W:800 Mb/s Gen-1 HW Virtualization Monitor Type: VT / SVM Mission Critical Apps 100% VI 3.5 Overhead:10-30% VCPUs:4 VM RAM:64GB Phys RAM:256GB PCPUs:64 core IOPS:100,000 N/W:9 Gb/s 64-bit OS Support Gen-2 HW Virtualization Monitor Type: NPT vSphere 4.0 Overhead:2-15% VCPUs:8 VM RAM:255GB Phys RAM:1 TB PCPUs:64 core IOPS:350,000 N/W:20 Gb/s 64-bit OS Support 320 VMs per host 512 vCPUs per host

(4)

Databases: Why Use VMs Rather than DB Virtualization? Virtualization at hypervisor level provides the best

abstraction

Each DBA has their own hardened, isolated, managed sandbox Strong Isolation Security Performance/Resources Configuration Fault Isolation Scalable Performance

(5)

Large Oracle Transaction Workload: SwingBench Database: • # of Users = 5,011,872 • # of Products = 5,011,872 • Db size = 5.11GB Test

• Test duration = 10 mins • # of Users per run = 30 • Think time = 0 • New customer - 11% • Browse products - 28% • Order products - 28% • Process orders - 5% • Browse orders - 28% • RHEL5 U1 • 64 bit • 2.6.18-53.1.13.el5

• ESX version: 3.5 build# 60217 • Number of VMs: 1 • vCPU: 4 • Mem: 6GB • vDisk: 16GB • vNIC: 1 • Oracle 11g (11.1.0) • RHEL4 x86_64 • SGA: 3GB • PGA: 1GB • Dell PowerEdge 2950 • Mem: 8GB

• Two dual core) Intel(R) Xeon(R) CPU 5160 @ 3.00GHz processor 4GB cache

(6)

Measuring the Performance of DB Virtualization

Throughput Delivered

(7)

Single VM Performance: Well-Known Database OLTP Workload† T ra n s a ct io n R a te (R a ti o t o 1 -w a y VM)

Next Generation Intel®Xeon®based 8-pCPU server

RHEL 5.1 Oracle 11gR1 In-house ESX Server

A fair-use implementation of the

TPC-C workload; results are not TPC-C compliant

< 15% overhead for 8 vCPU VM

8,900 total DB transactions per second

Near-perfect scalability from 1 to 8 vCPUs

(8)

Sun Fire 15k (ca. 2002)

;)

=

(9)
(10)

The world changed @ 3Ghz: Multi-Core Focus

Scaling by clock frequency no-longer possible

Memory Latency Dominates

(11)

1,000 10,000 100,000 1,000,000 10,000,000 100,000,000 1,000,000,000 1970 1980 1990 2000 2010 4004 8080 8086 8008 Pentium 486 DX 386 286 Pentium II Pentium III Pentium 4

1 Billion transistors and growing

42 Million

(12)

Estimated Logical CPU Counts: 2-Socket Server (Assuming hardware threading is a given)

(13)

VMware vSphere enables you to use all those cores… 1 10 100 1000 1990 1995 2000 2005 2010 2015 Nu m b e r of Cor e s us e d Year Oracle SQL Server Exchange Avg. Cust, Application Avg. Four Socket Web Servers Most applications don’t scale beyond 4/8 way

Virtualization provides a means to exploit

the hardware’s

increasing parallelism

(14)

0 10 20 30 40 50 60 70 80 90 100 0 5000 10000 15000 20000 25000 30000 35000 40000 45000 1 2 3 4 5 6 7 # of VMs Aggregate TPM vs. Number of VMs Aggregate TPM CPU Utilization

“Large” Database Consolidation Study

(15)

Oracle Performance (Response time) 0 10 20 30 40 50 60 70 80 90 100 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18 0.20 1 2 3 4 5 6 7 A g g re g a te R e s p o n s e T im e (s e c s ) # of VMs

Average response time vs. Number of VMs

Average response time

(16)
(17)

MS Exchange VM Scaling

(18)

Balanced Cluster

Example migration scenario 4_4_0_0 with DRS

References

Related documents

By running a number of virtual machines simultaneously, we demonstrated how DB2 9 and VMware ESX Server running on a single AMD Opteron processor-based IBM System x3755 host could

2.2 Analysis on Problems of Bare Metal Hypervisor Host based Hypervisor uses VMM (virtual machine monitor) technology that controls data flow between user mode and kernel mode,