sql server 2008 & solid state drives jon reade sql server consultant sql server 2008 mcitp, mcts...
TRANSCRIPT
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
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 !
SQL Server 2008 & Solid State Drives
►MythsMyths They don’t last longThey don’t last long
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
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
0
10
20
30
40
50
60
70
80
90
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
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
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
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
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
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
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
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
SQL Server 2008 & Solid State Drives
►Demo 1 : HDSpeedDemo 1 : HDSpeed
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
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
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
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
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
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
SQL Server 2008 & Solid State Drives
Give me a proper database demo !Give me a proper database demo !
SQL Server 2008 & Solid State Drives
►Demo 2 : QueryingDemo 2 : Querying SELECTsSELECTs INSERTsINSERTs UPDATEsUPDATEs
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.
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
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
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 ? :-
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 ? :-
SQL Server 2008 & Solid State Drives
►MD1000 disk array : £2,069 +VATMD1000 disk array : £2,069 +VAT
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
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
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
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
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
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
SQL Server 2008 & Solid State Drives
►Database MaintenanceDatabase Maintenance DBCC SHOWCONTIGDBCC SHOWCONTIG 600Gb database600Gb database Heavily indexedHeavily indexed
SQL Server 2008 & Solid State Drives
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
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
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
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 dbcc shrinkfile – 3h02m51s vs 17m36
10x10x►dbcc showcontig – 2h16m vs 4m48s 28xdbcc showcontig – 2h16m vs 4m48s 28x
SQL Server 2008 & Solid State Drives
►ConclusionsConclusions Very fast – especially random I/OVery fast – especially random I/O
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
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
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
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
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
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=96dWOEa4Djs
http://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
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
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