41
vSphere Flash Read Cache Technical Overview Kiran Madnani, VMware Rawlinson Rivera, VMware STO5588 #STO5588

VMworld 2013: vSphere Flash Read Cache Technical Overview

  • Upload
    vmworld

  • View
    1.446

  • Download
    1

Embed Size (px)

DESCRIPTION

VMworld 2013 Kiran Madnani, VMware Rawlinson Rivera, VMware Learn more about VMworld and register at http://www.vmworld.com/index.jspa?src=socmed-vmworld-slideshare

Citation preview

Page 1: VMworld 2013: vSphere Flash Read Cache Technical Overview

vSphere Flash Read Cache Technical Overview

Kiran Madnani, VMware

Rawlinson Rivera, VMware

STO5588

#STO5588

Page 2: VMworld 2013: vSphere Flash Read Cache Technical Overview

2

Agenda

VMware and SDS

The importance of Flash

vSphere Platform – Flash Functions and Considerations

What is vSphere Flash Read Cache

vSphere Flash Read Cache Configuration Options

vSphere Flash Read Cache vSphere Features

Interoperability

Performance and Monitoring

Packaging

Summary

Page 3: VMworld 2013: vSphere Flash Read Cache Technical Overview

3

Software-Defined Data Center

Software-Defined Storage

SDDC | SDS

All infrastructure is virtualized

and delivered as a service, and

the control of this data center is

entirely automated by software.

Heterogeneous storage resources

are abstracted into logical pools,

consumed and managed through

app-centric policy-based

automation

Page 4: VMworld 2013: vSphere Flash Read Cache Technical Overview

5

VMware Approach To Software-Defined Storage

vSphere

App-centric

Data Services

Policy-Driven Control Plane

Virtual Data Plane

External storage Pool

Converged Infrastructure Pool

Backup

VM Storage Policy

Capacity

Performance

Availability

BLOB

Page 5: VMworld 2013: vSphere Flash Read Cache Technical Overview

6

The Importance of Flash

Page 6: VMworld 2013: vSphere Flash Read Cache Technical Overview

7

The Importance of Flash Based Devices

Moore’s Law will continue to improve

CPU performance

Disk drive performance remains flat. Time

Perf

orm

ance

FLASH

Page 7: VMworld 2013: vSphere Flash Read Cache Technical Overview

8

vSphere Platform – Flash

Functions and Considerations

Page 8: VMworld 2013: vSphere Flash Read Cache Technical Overview

9

Leveraging Flash Based Devices in vSphere

Key Feature vSphere Functionality Considerations

• Must be simple to configure, and manage

• Work with any flash based device – SAS, SATA, or PCIe

• Support all types of vSphere datastore – VMFS and NFS

• Must be agentless and transparent to the guess OS/App

• Support granular allocation – not all disks are the same!

• Significantly improve application performance

• Seamlessly work with other vSphere features:

• vMotion

• DRS,

• HA

Page 9: VMworld 2013: vSphere Flash Read Cache Technical Overview

10

vSphere Flash Read Cache: Accelerate VM Performance

• Pools multiple flash devices as a resource

• Hypervisor-based caching solution

• Per-VMDK granular allocation

• Compatible with vMotion, DRS & HA

• VMFS and NFS data stores supported

• Supports PCIe, SAS, SATA interfaces

• Accelerates performance for business

critical applications

• Enables efficient use of server flash in

virtual environments

• Fully transparent read-caching – no host

agents or application changes

Overview

Benefits

vSphere

SAN/NAS

CPU Pool Memory Pool Flash Pool

New

Accelerate

performance

Page 10: VMworld 2013: vSphere Flash Read Cache Technical Overview

11

Components of the solution

Virtual Flash Resource

vSphere Flash Read Cache

Pools multiple flash

devices to present a

single resource;

seamlessly integrates

with vSphere capabilities

Provides per-VMDK

caching

vSphere

Page 11: VMworld 2013: vSphere Flash Read Cache Technical Overview

12

vSphere Flash Read Cache

Configuration Options

Page 12: VMworld 2013: vSphere Flash Read Cache Technical Overview

13

Configure Virtual Flash Resource

• vSphere Admin configures Virtual Flash Resource by combining local flash

devices on a single or across multiple hosts

Page 13: VMworld 2013: vSphere Flash Read Cache Technical Overview

14

Configure vSphere Flash Read Cache for VMDKs

• vSphere Admin configures virtual machines to use vSphere Flash Read

Cache for VMDKs.

Page 14: VMworld 2013: vSphere Flash Read Cache Technical Overview

15

Use of Virtual Flash Resource

Virtual Flash Resource

VMDK1 without

vFRC

VMDK2 with

vFRC

vSphere Flash Read Cache

SSD

vSphere

SSD

• VMs transparently use the Virtual Flash Resource without modifying

any of the virtual machines operations

Page 15: VMworld 2013: vSphere Flash Read Cache Technical Overview

16

vSphere Flash Read Cache in Action – vMotion, DRS, HA

Virtual Flash Resource

vSphere Flash Read Cache vSphere Flash Read Cache vSphere Flash Read Cache

Flash

Resource

Caching

Module

Page 16: VMworld 2013: vSphere Flash Read Cache Technical Overview

17

vSphere Flash Read Cache

and

vSphere Features Interoperability

Page 17: VMworld 2013: vSphere Flash Read Cache Technical Overview

18

vSphere Flash Read Cache – vMotion Options

vMotion workflows have been modified to include a new set of checkpoints

applicable to the validation of cache contents.

Advanced setting allow the selection of cache migration setting for individual VMDKs

Page 18: VMworld 2013: vSphere Flash Read Cache Technical Overview

19

vSphere Flash Read Cache – vMotion Options

vMotion

vFRC vFRC

XvMotion

vMotion Migration

if migrateCache is true, in

order to effectively transfer

the Cache content from

source to the destination

host, vMotion migration

process is converted into

XvMotion.

VC compatibility check

Sufficient Virtual Flash

Resource on destination host

Page 19: VMworld 2013: vSphere Flash Read Cache Technical Overview

20

vSphere Flash Read Cache – vMotion Options

Migrate Rebuild

Always

migrate the

cache contents

Do not

migrate the

cache contents

Migration Setting

Virtual Flash Cache State

Page 20: VMworld 2013: vSphere Flash Read Cache Technical Overview

21

vSphere Flash Read Cache – SvMotion

vSphere Flash Read Cache migrations impose zero impact to the SvMotion

Workflow

Page 21: VMworld 2013: vSphere Flash Read Cache Technical Overview

22

vSphere Flash Read Cache – XvMotion

In case of manual XvMotion migrations, the flash cache contents options are

the same as vMotion migrations

Page 22: VMworld 2013: vSphere Flash Read Cache Technical Overview

23

vSphere Flash Read Cache - High Availability (HA)

vFlash Cache vFlash Cache

Restart

vFRC vFRC

Failed

Virtual Flash Cache state is

not persistent across Guest

OS and host lifecycle.

In the event a VM crashes,

since HA will restart the VM

on the same host the cache

will be rebuilt.

For host crashes, the VM

is restarted on a different

host:

Admission control will

apply.

Page 23: VMworld 2013: vSphere Flash Read Cache Technical Overview

24

vSphere Flash Read Cache - Distributed Resource Scheduler

XvMotion

vFRC vFRC

Currently virtual flash

resources are managed on

host level only.

No automatic host migration

for resource optimization.

DRS will perform placement

constraints for vMotion and

HA.

Page 24: VMworld 2013: vSphere Flash Read Cache Technical Overview

25

vSphere Flash Read Cache - Resource Management

• Virtual Flash Resources

• provisioned dynamically across

all the running VMs

• Virtual Machine Failure

• fails to power on if host runs out

of Virtual Flash resource

• Resource Attributes

• Reservations = Limit (no

expandable reservations)

• Shares not supported

• No oversubscription (No thin

provisioning)

• Resource Consumption

• Created only when VM is powered on

• Reclaimed when VM is powered off

• Resized when necessary

• Migrated when VM moves to a different host

Page 25: VMworld 2013: vSphere Flash Read Cache Technical Overview

26

vSphere Flash Read Cache – Cache Contents is/is Not Preserved

Across disk close/reopen

Fast Suspend/Resume (FSR)

Snapshot

Clone

svMotion, XvMotion

When VM is migrated

(vMotion) using following

option:

Always migrate vFlash Cache

Preserved

Suspend

During vFlash Cache hot

reconfigure

VM and Host reboot

Restore Snapshot

When VM is migrated using

following option:

Do not migrate vFlash

Cache

Not Preserved

Page 26: VMworld 2013: vSphere Flash Read Cache Technical Overview

27

Performance & Monitoring

Page 27: VMworld 2013: vSphere Flash Read Cache Technical Overview

28

vFRC Performance

What workloads can benefit from vFRC ?

• Read-dominated I/O pattern

• High repeated access of data (E.g. 20% of working set accessed 80% of time)

• Sufficient flash capacity to hold data that is accessed repeatedly

Page 28: VMworld 2013: vSphere Flash Read Cache Technical Overview

29

vSphere Flash Read Cache Sizing Guidelines

Define virtual cache working set based on:

• % of VMDK or workload size (for e.g. 20% of database size)

Once workload is stable, monitor vFRC stats for the following:

• numBlocksCurrentlyCached

• numBlocks

Define Cache Block Size

• Use vscsiStats to gather workload statistics

• Use the ioLength histogram to identify suitable block size based on the largest

number of I/O operations

rawlinson

Page 29: VMworld 2013: vSphere Flash Read Cache Technical Overview

30

vSphere Flash Read Cache Monitoring Performance Statistics Counters

A new set of performance statistics counters for Virtual Flash Read

Cache are available in vCenter Server performance manager.

Page 30: VMworld 2013: vSphere Flash Read Cache Technical Overview

31

vSphere Flash Read Cache – Performance Statistics Counters

v F l a s h C a c h e I o p s

Monitors the average number of I/O requests per second to the virtual

disk cache.

Unit – Number

v F l a s h C a c h e L a t e n c y

Monitors the average number of microseconds to complete I/O to the

virtual disk cache.

Unit – Microsecond

v F l a s h C a c h e T h r o u g h p u t

Monitors the average of caches currently controlled by the module.

Unit – Number

Page 31: VMworld 2013: vSphere Flash Read Cache Technical Overview

32

vSphere Flash Read Cache – Cache Statistics in ESXCLI

esxcli storage vflash cache stats get –m <module > - c <cache file>

vFRC Statistics: esxcli storage vflash cache stats reset

–m <module> -c <cache file>

Virtual Flash Read Cache performance statistics can be retrieved in

greater details utilizing ESXCLI framework

Page 32: VMworld 2013: vSphere Flash Read Cache Technical Overview

33

Data Warehousing Application

Benchmark : Swingbench 2.4 using ‘Sales History’ Schema on

Oracle 11g R2 database

vFRC Configuration: 8GB Cache Size and 8KB Cache block size

Up to 2X improvement in transactions/min, with a 2X reduction in

latency

61.7

112.9

0

20

40

60

80

100

120

Baseline VFRC

TPM

Transac onsPerMinute

20.389

10.859

0

5

10

15

20

25

Baseline VFRC

ResponseTIm

e(s)

AverageResponseTime

Page 33: VMworld 2013: vSphere Flash Read Cache Technical Overview

34

Database Transaction Application

Benchmark Used : DVDStore

Simulates online e-commerce site operations

Database : MS SQL Server 2008

Database Size : 15 GB

Workload Characteristics

• 60% reads

• Mostly random I/Os

• Predominant I/O size : 8KB 8802 8937

12319

0

2000

4000

6000

8000

10000

12000

14000

Baseline vFRC-10GB vFRC-15GB

OrdersPerMinute

Up to 39% improvement in application throughput

Page 34: VMworld 2013: vSphere Flash Read Cache Technical Overview

35

License & Packaging

Page 35: VMworld 2013: vSphere Flash Read Cache Technical Overview

36

Licensing

Page 36: VMworld 2013: vSphere Flash Read Cache Technical Overview

37

Summary

Page 37: VMworld 2013: vSphere Flash Read Cache Technical Overview

38

Summary

Simple to use

Works with any Flash device

type

Flexible deployment - Flash

not required in every server

Support for VMFS and NFS

No agents - Transparent to

the guest OS/App

Supports VMDK granular

allocation

Seamlessly work with other

vSphere features

Significantly improve

application performance

Virtual Flash Resource

vSphere Flash Read Cache

vSphere

Page 38: VMworld 2013: vSphere Flash Read Cache Technical Overview

39

Other VMware Activities Related to This Session

HOL:

HOL-SDC-1308

Virtual Storage Solutions

Group Discussions:

STO1004-GD

vSphere Flash Read Cache, VSAN, VMware Virsto, Software Defined

Storage Architecture with Rawlinson Rivera and Vmware

R&D Engineers

Page 39: VMworld 2013: vSphere Flash Read Cache Technical Overview

THANK YOU

Page 40: VMworld 2013: vSphere Flash Read Cache Technical Overview
Page 41: VMworld 2013: vSphere Flash Read Cache Technical Overview

vSphere Flash Read Cache Technical Overview

Kiran Madnani, VMware

@kmadnani

Rawlinson Rivera, VMware

@punchingclouds

STO5588

#STO5588