18
Solid State Drives by: Sicheng Xu, Matt Warner

by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Solid State Drivesby: Sicheng Xu, Matt Warner

Page 2: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Overview

● SSD Overview● History of flash memory storage

○ Focus on SSDs● SSD Components

○ Controller○ Memory cell structure

● SSD vs other methods of storage

Page 3: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

What is an SSD?

● No moving parts a la the traditional hard-disk drive

● Usually uses NAND-based flash memory as opposed to electromechanical storage○ Can use other types of flash memory as well

● Awesome beyond belief

Page 4: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

History of Flash memory

1980 2015

1984Flash memory created

1988Intel creates first commercial NOR type flash chip

1995First NAND-based removable media format

1999BitMICRO introduced 18GB SSD

2007Fusion-io introduce SSD with 320 GB

2009OCZ Technology demo a 1 TB flash SSD

2009Micro Technology announce SSD using 6 gigabits/sec interface

Page 5: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Memory Hierarchy

● Retains data after power off● Faster access speeds than

mechanical HDD storage● Lower storage density than

mechanical hard drive and other tertiary storage

● Slower access speeds than random access memory

● Trade storage size for performance?

● Sony magnetic tape can hold 148 GB per square inch

Page 6: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Component Overview

● Interface with PC○ SATA, SAS, PCI-e, etc

● Controller○ Error correction/recovery○ Wear leveling (prolong life)○ Caching○ Garbage collection

● Memory Structure○ Single-Layer, Multi-Layer,

“Triple-Layer”● Cache/Buffer● NAND Memory

Page 7: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Memory Elements

● SLC: Single-Layer Cell○ 1-bit per cell (0/1)

● MLC: Multi-Layer Cell○ 2-bits per cell (00-11)

● TLC: Triple-Layer Cell○ 3-bits per cell (000-111)

● SLC most reliable and fastest, but most expensive

● MLC/TLC trade speed and reliability for higher storage density and cheaper costs

Page 8: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

NAND and NOR Flash

● NOR-based flash memory tend to have longer life cycles and better reliability compared to NAND

● NAND memory usually has higher storage densities

● NAND has faster sequential access speeds while NOR has better random access speeds

● NAND requires controller management

Page 9: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Controller

● Performs wear-leveling to ensure longer SSD lifespan● Deals with bad sectors

○ Identifies and maps them to ensure minimal data corruption● Error Code correction● Manages the buffer within the SSD● Garbage collection● Interfacing with host● Sets up read/write accesses

Page 10: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Wear Leveling

● Reduces premature wear in NAND flash devices, i.e. failure times for all cells should be around equal instead of any one failing early

● Dynamic Wear Leveling○ Pools available free data blocks and selects block with lowest erase

count for next write○ Good for dynamic data that is often overwritten or modified

● Static Wear Leveling○ Similarly chooses block with least wear○ Monitors erase count and moves static data to blocks with high erase

counts periodically to free up blocks with low erase counts for other data

Page 11: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

DRAM/Cache

● Keeps data on wear-leveling and block placement

● Same function as cache on mechanical HDD● Can be used to accelerate write speeds

Page 12: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Trim

● Over time data will be written to and removed from an SSD. Which data should we keep and which should we remove?

● SSDs store data in flash memory cells that are grouped into pages, which are then grouped into blocks. These cells can only be written to when they are empty.

● Trim allows an operating system to inform a SSD which blocks of data are no longer considered in use. This effectively enables garbage collection for the SSD.

Page 13: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

SSD vs. HDDHDD SSD

Price per GB $0.033 $0.50

Capacity (Consumer) 6 TB 1 TB

Random Read Latency 6ms - 8ms ~0.1 ms

Fragmentation All over Irrelevant

Power Usage 4W idle, 6W load 0.5W idle, < 2W load

Noise Sad Silent

Page 14: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Storage Density and Prices

● Currently:○ 3TB HDD: $100

■ $0.033/GB○ 1TB SSD: $500

■ $0.50/GB● Consumer SSDs not available in

capacities beyond 1TB per drive○ More drives leads to higher

overall failure rate● HDDs readily available up to 6TB

per drive

Page 15: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

SSD Vs. HDD Performance

● The SSD outperforms the HDD by a large margin in random access time because all data can be retrieved directly from various locations.

● HDDs must spin up before they can access most data which contributes to the large latency.

Page 16: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Gotta Go Fast (Increasing R/W speeds in solid state technology)

● RAID 0 SSD configurations can increase R/W speeds up to 2x○ Decreases reliability

● Use volatile memory (e.g. RAM) as secondary storage○ RAM drives/disks

● Integrating DRAM into an SSD● Need to ensure host interface

has enough bandwidth○ PCI-e x16 v4.0: 31 GB/s○ SATA 3: 6 Gbps = 750 MB/s○ Thunderbolt: 20 Gbps

Page 17: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

Applications

● Shorter application launch times, boot times, load times, etc. for impatient people like us

● Usage in databases and servers to utilize as secondary cache to minimize response time

● Downloading data with a gigabit connection requires fast write speeds as to not bottleneck the data transfer

Page 18: by: Sicheng Xu, Matt Warnermeseec.ce.rit.edu/551-Projects/Spring2014/4-4.PdfSSD vs. HDD HDD SSD Price per GB $0.033 $0.50 Capacity (Consumer) 6 TB 1 TB Random Read Latency 6ms - 8ms

References● http://media.kingston.com/pdfs/FlashMemGuide.pdf● http://www.anandtech.com/show/5067/understanding-tlc-nand/1● http://www.micron.com/-/media/Documents/Products/Technical%20Note/NAND%

20Flash/tn2961_wear_leveling_in_nand.pdf● http://www.micron.com/-/media/Documents/Products/Technical%20Note/NAND%

20Flash/tn2942_nand_wear_leveling.pdf● http://www.micron.com/-/media/Documents/Products/Product%20Flyer/NOR_NAND_Flash_Guide_lo.pdf● http://www.bswd.com/FMS09/FMS09-201-Duann.pdf● http://www.eetimes.com/document.asp?doc_id=1272118● http://ocz.com/consumer/ssd-guide/ssd-vs-hdd● http://www.storagerealm.net/the-best-and-fastest-hard-disk-drive-hdd/● http://arstechnica.com/information-technology/2012/06/inside-the-ssd-revolution-how-solid-state-disks-

really-work/● http://www.pcmag.com/article2/0,2817,2404260,00.asp● http://computer.howstuffworks.com/solid-state-drive.htm