16
Storage Caching Tim Fletcher Brighter Connections

Why flash storage caching

Embed Size (px)

Citation preview

Page 1: Why flash storage caching

Storage CachingTim Fletcher

Brighter Connections

Page 2: Why flash storage caching

Who are we?

15+ year Linux experience13 years work in educationRHCE since 1999 (RedHat 6.1)

Joined Brighter Connections in OctoberIT Practise in HuddersfieldSpecialise in innovative solutions

Page 3: Why flash storage caching

Why your SAN is slow

Centralised storage, good for cost bad for performance

Lots of different competing workloads mean disks "thrash"

Page 4: Why flash storage caching

Making your SAN faster

HardwareSpindlesRAM

SoftwareCopy on WriteQuality of Service

Page 5: Why flash storage caching

Hard Drives

Technology basically the same for over 30 years, known as "Spinning Rust".

Good for cheap bulk storageGood at linear access

Bad at random accessPower hungryFragile

Page 6: Why flash storage caching

Memory

Very fast accessVery good random accessDirectly connected to the CPU

ExpensiveVolatilePower Hungry

Page 7: Why flash storage caching

Flash

Very fast, especially at random accessCan be connected directly to the PCI-e busNon volatileLow powerMassive drops in price, but still expensiveCells can wear outIncludes firmware

Page 8: Why flash storage caching

Storage Speeds

Page 9: Why flash storage caching

PCIe vs Hard disk emulation

Hard disk emulationEasy to deployWell understoodCheapMany layers of translation

PCIeExpensive, or is it?Higher power drawDirectly attached to the CPU bus

Page 10: Why flash storage caching

Caching - Why does it matter

Flash is expensive and wears outThe closer the data is to the CPU the betterKeep your SAN arrayLeverages the best of both worlds

Page 11: Why flash storage caching

Caching - Where do your blocks go?

Page 12: Why flash storage caching

Flashcache

Fully open source, released by FacebookKernel module, based in the device mapper layerStarting to appear in distrosError resistantCache can be added and removed from storageUsed by Facebook in production

Page 13: Why flash storage caching

Bcache

Fully Open SourceDesigned from the ground up to cacheDesigned with an understanding of flashHigher performance

Requires devices to be rebuilt as "bcache" devicesRequires full kernel rebuild

Page 14: Why flash storage caching

ZFS

Not just a filesystemIncludes device management, RAID and filesystem management.Open Source but license incompatible with GPLWritten by Sun, available in FreeBSD, Solaris derivatives, and LinuxCan use SSDs as L2ARC and as SLOGCache devices can be live added and removedCache does not persist over reboots

Page 15: Why flash storage caching

Closed Source Options

Hook in to VMware

FusionIO - ioTurbineSanDisk - FlashSoft

Page 16: Why flash storage caching

Questions?tim@brighter-connections.comwww.brighter-connections.com

@timjdfletcher