SQL Server 2008 & Solid State Drives

49
SQL Server 2008 & Solid State Drives Jon Reade SQL Server Consultant SQL Server 2008 MCITP, MCTS Co-founder SQLServerClub.com, SSC Bristol @jonreade [email protected] linkedin.com/in/readejon

description

SQL Server 2008 & Solid State Drives. SQL Server 2008 & Solid State Drives. Why SSD ? Weight Space Power consumption DC event horizon Durability Less equipment to manage Less downtime IOPS – SPEED !. SQL Server 2008 & Solid State Drives. Myths They don’t last long. - PowerPoint PPT Presentation

Transcript of SQL Server 2008 & Solid State Drives

Page 1: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

Jon ReadeSQL Server ConsultantSQL Server 2008 MCITP, MCTSCo-founder SQLServerClub.com, SSC [email protected]@live.co.uklinkedin.com/in/readejon

Page 2: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Why SSD ?Why SSD ? WeightWeight SpaceSpace Power consumptionPower consumption DC event horizonDC event horizon DurabilityDurability Less equipment to manageLess equipment to manage Less downtimeLess downtime IOPS – SPEED !IOPS – SPEED !

Page 3: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MythsMyths They don’t last longThey don’t last long

Page 4: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►20Gb backup20Gb backup► ioDrive filled to 97% full before backupioDrive filled to 97% full before backup►Repeatedly written into same spaceRepeatedly written into same space►2,000 x = over 5 years daily backups2,000 x = over 5 years daily backups►Slow down after 4.5 yearsSlow down after 4.5 years►BUT – no wear load balancingBUT – no wear load balancing►Still longer than a typical hard diskStill longer than a typical hard disk

Page 5: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

► DurabilityDurability

► Step at 4.5 years of daily backupsStep at 4.5 years of daily backups► Write load balancing effectively turned off Write load balancing effectively turned off

5 years - Simulated Backups

01020304050

60708090

100

1 68 135 202 269 336 403 470 537 604 671 738 805 872 939 1006 1073 1140 1207 1274 1341 1408 1475 1542 1609 1676 1743 1810 1877 1944 2011

Number of backups

Bac

kup

time,

sec

onds

Page 6: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MythsMyths They don’t last long XThey don’t last long X They don’t retain data when you remove They don’t retain data when you remove

power power

Page 7: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MythsMyths They don’t last long XThey don’t last long X They don’t retain data when you remove They don’t retain data when you remove

power Xpower X They’re not very quick at write operationsThey’re not very quick at write operations

Page 8: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MythsMyths They don’t last long XThey don’t last long X They don’t retain data when you remove They don’t retain data when you remove

power Xpower X They’re not very quick at write operations XThey’re not very quick at write operations X They’re difficult to configureThey’re difficult to configure

Page 9: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MythsMyths They don’t last long XThey don’t last long X They don’t retain data when you remove They don’t retain data when you remove

power Xpower X They’re not very quick at write operations XThey’re not very quick at write operations X They’re difficult to configure XThey’re difficult to configure X You need special hardwareYou need special hardware

Page 10: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MythsMyths They don’t last long XThey don’t last long X They don’t retain data when you remove They don’t retain data when you remove

power Xpower X They’re not very quick at write operations XThey’re not very quick at write operations X They’re difficult to configure XThey’re difficult to configure X You need special hardware XYou need special hardware X They run hotThey run hot

Page 11: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MythsMyths They don’t last long XThey don’t last long X They don’t retain data when you remove They don’t retain data when you remove

power Xpower X They’re not very quick at write operations XThey’re not very quick at write operations X They’re difficult to configure XThey’re difficult to configure X You need special hardware XYou need special hardware X They run hot XThey run hot X They’re expensiveThey’re expensive

Page 12: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MythsMyths They don’t last long XThey don’t last long X They don’t retain data when you remove They don’t retain data when you remove

power Xpower X They’re not very quick at write operations XThey’re not very quick at write operations X They’re difficult to configure XThey’re difficult to configure X You need special hardware XYou need special hardware X They run hot XThey run hot X They’re expensive XThey’re expensive X

Page 13: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Demo 1 : HDSpeedDemo 1 : HDSpeed

Page 14: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Demo 1 : HDSpeed – SSD vs HDDDemo 1 : HDSpeed – SSD vs HDD►64Kb block size (extent) : 64Kb block size (extent) :

SSD : 597 MBytes/secSSD : 597 MBytes/sec HDD : 104 Mbytes/sec avgHDD : 104 Mbytes/sec avg

►512Kb block size :512Kb block size : SSD: 730 Mbytes/sec avgSSD: 730 Mbytes/sec avg HDD : 105 Mbytes/sec avgHDD : 105 Mbytes/sec avg

Page 15: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►How are FusionIO drives different to How are FusionIO drives different to normal SSDs and HDDs?normal SSDs and HDDs?

►Bypass the traditional storage Bypass the traditional storage controllercontroller

►Takes the SATA bus out of the Takes the SATA bus out of the equationequation

Page 16: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►How are FusionIO drives different to How are FusionIO drives different to normal SSDs and HDDs?normal SSDs and HDDs?

►Bypass the traditional storage Bypass the traditional storage controllercontroller

►Takes the SATA bus out of the Takes the SATA bus out of the equationequation

►SATA III – 6Gbits (0.6Gbyte) per SATA III – 6Gbits (0.6Gbyte) per secondsecond

Page 17: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►How are FusionIO drives different to normal How are FusionIO drives different to normal SSDs and HDDs?SSDs and HDDs?

►Bypass the traditional storage controllerBypass the traditional storage controller►Takes the SATA bus out of the equationTakes the SATA bus out of the equation►SATA III – 6Gbits (0.6Gbyte) per secondSATA III – 6Gbits (0.6Gbyte) per second►PCI Express x4 – 1GByte per secondPCI Express x4 – 1GByte per second►1.6x faster – for sequential operations1.6x faster – for sequential operations

Page 18: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►DMA access to memoryDMA access to memory►CPU not involvedCPU not involved►Less latency. Completely re-Less latency. Completely re-

architected storage - no hardware architected storage - no hardware bottleneckbottleneck

►Fundamental problem at the end of Fundamental problem at the end of the chain – HDD is the chain – HDD is reallyreally bad at bad at random i/orandom i/o

Page 19: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

► InstallationInstallation►Hardware - five minutes out of the boxHardware - five minutes out of the box►Drivers - five minutes Drivers - five minutes

Page 20: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

Give me a proper database demo !Give me a proper database demo !

Page 21: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Demo 2 : QueryingDemo 2 : Querying SELECTsSELECTs INSERTsINSERTs UPDATEsUPDATEs

Page 22: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Things to be aware ofThings to be aware of Asymmetric read/write characteristicsAsymmetric read/write characteristics Periodic consistency checksPeriodic consistency checks Denali CTP1 can take different times to Denali CTP1 can take different times to

execute the same task, with the same execute the same task, with the same load.load.

Page 23: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MigrationMigration Backup, copy and restoreBackup, copy and restore Detach, copy and re-attachDetach, copy and re-attach Mirror, break, bring online and re-point Mirror, break, bring online and re-point

DNSDNS

Page 24: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Pros and ConsPros and Cons CostCost CapacityCapacity DurabilityDurability Random IO SpeedRandom IO Speed Power usagePower usage Heat dissipationHeat dissipation WeightWeight SizeSize

Page 25: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Pros and ConsPros and Cons►Cost – or is it ?Cost – or is it ?►How much does this cost ? :-How much does this cost ? :-

Page 26: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Pros and ConsPros and Cons►Cost – or is it? Cost – or is it? ►How much does this cost ? :-How much does this cost ? :-

Page 27: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MD1000 disk array : £2,069 +VATMD1000 disk array : £2,069 +VAT

Page 28: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MD1000 disk array : £2,069 +VATMD1000 disk array : £2,069 +VAT►With disks : 15 x 15kRPM 300Gb With disks : 15 x 15kRPM 300Gb

£5,839+vat£5,839+vat

Page 29: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MD1000 disk array : £2,069 +VATMD1000 disk array : £2,069 +VAT►With disks : 15 x 15kRPM 300Gb With disks : 15 x 15kRPM 300Gb

£5,839+vat£5,839+vat►With controller card : £6,189 + VATWith controller card : £6,189 + VAT

Page 30: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MD1000 disk array : £2,069 +VATMD1000 disk array : £2,069 +VAT►With disks : 15 x 15kRPM 300Gb With disks : 15 x 15kRPM 300Gb

£5,839+vat£5,839+vat►With controller card : £6,189 + VATWith controller card : £6,189 + VAT►FusionIO ioDrive : £8,000 + VATFusionIO ioDrive : £8,000 + VAT

Page 31: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MD1000 disk array : £2,069 +VATMD1000 disk array : £2,069 +VAT►With disks : 15 x 15kRPM 300Gb With disks : 15 x 15kRPM 300Gb

£5,839+vat£5,839+vat►With controller card : £6,189 + VATWith controller card : £6,189 + VAT►FusionIO ioDrive : £8,000 + VATFusionIO ioDrive : £8,000 + VAT►MD1000 : 4.2Tb 2,800 iopsMD1000 : 4.2Tb 2,800 iops

Page 32: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►MD1000 disk array : £2,069 +VATMD1000 disk array : £2,069 +VAT►With disks : 15 x 15kRPM 300Gb With disks : 15 x 15kRPM 300Gb

£5,839+vat£5,839+vat►With controller card : £6,189 + VATWith controller card : £6,189 + VAT►FusionIO ioDrive : £8,000 + VATFusionIO ioDrive : £8,000 + VAT►MD1000 : 4.2Tb 2,800 iopsMD1000 : 4.2Tb 2,800 iops► ioDrive : 0.6Tb 150,000 iopsioDrive : 0.6Tb 150,000 iops

Page 33: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Cost comparisonCost comparison MD1000 : 4.2Tb 2,800 iops MD1000 : 4.2Tb 2,800 iops

►£1.50/Gb , £2.21/iops£1.50/Gb , £2.21/iops ioDrive : 0.6Tb 150,000 iops ioDrive : 0.6Tb 150,000 iops

►£13.30/Gb , £0.05/iops£13.30/Gb , £0.05/iops►15% capacity, 53x faster 15% capacity, 53x faster ►10x cost for capacity10x cost for capacity►1/451/45thth cost for speed cost for speed

Page 34: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Database MaintenanceDatabase Maintenance DBCC SHOWCONTIGDBCC SHOWCONTIG 600Gb database600Gb database Heavily indexedHeavily indexed

Page 35: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

Page 36: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

Page 37: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Results HDD vs SSD : 600Gb databaseResults HDD vs SSD : 600Gb database►190Gb backup file copy – 5m vs < 1m 190Gb backup file copy – 5m vs < 1m

5x 5x

Page 38: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Results HDD vs SSD : 600Gb databaseResults HDD vs SSD : 600Gb database►190Gb backup file copy – 5m vs < 1m 190Gb backup file copy – 5m vs < 1m

5x5x►sp_updatestats – 23m12s vs 3m35 sp_updatestats – 23m12s vs 3m35

6x6x

Page 39: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Results HDD vs SSD : 600Gb databaseResults HDD vs SSD : 600Gb database►190Gb backup file copy – 5m vs < 1m 190Gb backup file copy – 5m vs < 1m

5x5x►sp_updatestats – 23m12s vs 3m35 sp_updatestats – 23m12s vs 3m35

6x6x►dbcc shrinkfile – 3h02m51s vs 17m36 dbcc shrinkfile – 3h02m51s vs 17m36

10x10x

Page 40: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►Results HDD vs SSD : 600Gb databaseResults HDD vs SSD : 600Gb database►190Gb backup file copy – 5m vs < 1m 5x190Gb backup file copy – 5m vs < 1m 5x►sp_updatestats – 23m12s vs 3m35 6xsp_updatestats – 23m12s vs 3m35 6x►dbcc shrinkfile – 3h02m51s vs 17m36 10xdbcc shrinkfile – 3h02m51s vs 17m36 10x►dbcc showcontig – 2h16m vs 4m48s 28xdbcc showcontig – 2h16m vs 4m48s 28x

Page 41: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►ConclusionsConclusions Very fast – especially random I/OVery fast – especially random I/O

Page 42: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►ConclusionsConclusions Very fast – especially random I/OVery fast – especially random I/O Easy to implement operationallyEasy to implement operationally

Page 43: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►ConclusionsConclusions Very fast – especially random I/OVery fast – especially random I/O Easy to implement operationallyEasy to implement operationally Long operational life even at 100% Long operational life even at 100%

capacitycapacity

Page 44: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►ConclusionsConclusions Very fast – especially random I/OVery fast – especially random I/O Easy to implement operationallyEasy to implement operationally Long operational life even at 100% Long operational life even at 100%

capacitycapacity Reduce query time, reduced contentionReduce query time, reduced contention

Page 45: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►ConclusionsConclusions Very fast – especially random I/OVery fast – especially random I/O Easy to implement operationallyEasy to implement operationally Long operational life even at 100% Long operational life even at 100%

capacitycapacity Reduce query time, reduced contentionReduce query time, reduced contention Shorten database maintenance windowsShorten database maintenance windows

Page 46: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

►ConclusionsConclusions Very fast – especially random I/OVery fast – especially random I/O Easy to implement operationallyEasy to implement operationally Long operational life even at 100% capacityLong operational life even at 100% capacity Reduce query time, reduced contentionReduce query time, reduced contention Shorten database maintenance windowsShorten database maintenance windows Few problems with Denali CTP1Few problems with Denali CTP1 Worthy of consideration for storage Worthy of consideration for storage

upgrades & storage/SAN replacementupgrades & storage/SAN replacement

Page 47: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

Interesting linksInteresting links

http://www.fusionio.com/products/iodrive/http://www.designmind.com/blog/?p=1325 http://www.youtube.com/watch?v=96dWOEa4Djshttp://www.youtube.com/watch?v=96dWOEa4Djshttp://www.dvnation.com/Fusion-IO-IODrive-SSD-Solid-http://www.dvnation.com/Fusion-IO-IODrive-SSD-Solid-State-Disk-Drive-Review.htmlState-Disk-Drive-Review.html

Page 48: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

Very special thanks to Mat Young and Very special thanks to Mat Young and FusionIO for the loan of the ioDrive FusionIO for the loan of the ioDrive cardscards

Big thank you to all of our SQLBits Big thank you to all of our SQLBits sponsors sponsors

Page 49: SQL Server 2008  & Solid State Drives

SQL Server 2008 & Solid State Drives

Jon ReadeSQL Server ConsultantSQL Server 2008 MCITP, MCTSCo-founder SQLServerClub.com, SSC [email protected]@live.co.uklinkedin.com/in/readejon