Yiying Zhang
Andrea C. Arpaci-Dusseau Remzi H. Arpaci-Dusseau
Warped Mirrors for Flash Yiying Zhang Andrea C. Arpaci-Dusseau - - PowerPoint PPT Presentation
Warped Mirrors for Flash Yiying Zhang Andrea C. Arpaci-Dusseau Remzi H. Arpaci-Dusseau 2 3 Flash-based SSDs in Storage Systems Using commercial SSDs in storage layer Good performance Easy to use Relatively cheap Usage
Andrea C. Arpaci-Dusseau Remzi H. Arpaci-Dusseau
2
3
▫ Good performance ▫ Easy to use ▫ Relatively cheap
▫ MySpace, Facebook, Amazon, etc. ▫ All-flash storage, e.g., Pure Storage
4
▫ More writes => more erases ▫ FTL and wear leveling help
5
SSD SSD
Write Write
Replace Time
Write Write
6
SSD SSD
Write Write Write Write Write Write Write Write
Replace
7
▫ Approximated model + correcting method
8
9
SSDearly SSDlate
Write Write Dummy Write Write Write
FSI
Failure-Separation Interval
Dummy Write from RAID controller: Write the existing content From last write or a random page
10
▫ Set by administrator at initialization time ▫ Can be adjusted
▫ Long enough for recovery ▫ Short to avoid high performance cost
11
▫ No knowledge of underlying FTL
▫ FSI cannot be shorter than target (reliability) ▫ Performance overhead should be minimized
12
▫ Target FSI length ▫ SSD properties ▫ Workload properties
▫ Find dummy write percentage for a target FSI
13
early erases erase late erases
N R N
erase dummy dummy erase
Number of erases issued by SSDearly Number of erases issued by SSDlate
14
late late remaining worn erases
late worn erases erase
late worn remaining worn erase
N N N R
Maximum number of erases of an SSD block (SSDlate) Number of erases with SSDlate when SSDearly dies SSDearly
15
/ I Os r i
T N T T ( )
page total erases writes r i block
S T N T P T T S
1 ( )
page perblock erases writes r i block ssd
S T N T P T T S N
Workload dependent Knowledge of SSD parameters Perfect wear leveling
Avg Response Time Avg Idle Time Write Percentage Flash Page Size Flash Erase Block Size Num of Erase Blocks in SSD
16
(FSI)
late perblock remaining erase
N N
1
page worn worn writes erase r i block ssd
N N FSI N P R T T N N
1
worn erase page worn writes r i block ssd
N R N FSI N P T T N N
1
dummy erase
P R
17
▫ From device vendor or detect with tool
▫ Adjust model as workloads change
18
▫ Delay writes to the surviving SSD
▫ Performance cost ▫ Adjust in future WaM modeling
Target FSI
Write Write
_ _ late remaining target delay late remaining actual
N R N
SSDearly SSDlate
19
▫ Replace with a new SSD ▫ Reconstruct the data
▫ At the same time when first SSD fails (no reliability risk, slightly higher cost) ▫ When it fails (higher reliability risk, slightly low cost)
20
21
▫ Microbenchmark ▫ Macrobenchmark ▫ Trace ▫ No idle time
22
2000 4000 6000 8000 20 40 60 80 100 FSI (h) Dummy Write Percentage (%) Random Write 66% Random Write 33% Random Write Sequential Write
23
20 40 60 80 100 20 40 60 80 100 Avg Response Time Increase (%) Dummy Write Percentage (%) Random Write 66% Random Write 33% Random Write Sequential Write
24
10 20 30 40 50 60 10 20 30 40 50 FSI Delivered (h) FSI Target (h) Target WaM Without Delay WaM With Delay
25
10 20 30 40 50 60 10 20 30 40 50 FSI Delivered (h) FSI Target (h) Target WaM Without Delay WaM With Delay
26
50 100 150 200 250 300 20 40 60 80 100 FSI (h) Dummy Write Percentage (%) Postmark 500 1000 1500 2000 20 40 60 80 100 FSI (h) Dummy Write Percentage (%) TPC-C 5000 10000 15000 20000 25000 20 40 60 80 100 FSI (h) Dummy Write Percentage (%) WebSearch
27
20 40 60 80 100 20 40 60 80 100 Avg Response Time Increase (%) Dummy Write Percentage (%) Postmark TPC-C WebSearch
50-5000 hours of FSI
28
0.01 0.02 0.03 20 40 60 80 100 Cost (dollar/h) Dummy Write Percentage (%)
Cost with fixed replacement
3 years total ownership cost: Fixed replacement - $594 WaM - $275 - $366
29
30
31
▫ Wear our one SSD to some extent before using ▫ Stagger SSDs with different ages in a RAID ▫ Vendor control when SSDs in RAID fail
32
33