Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

7 吕智超-ssd101

SSD

  • Be the first to comment

7 吕智超-ssd101

  1. 1. Flash & SSD 101 Zhichao Lv
  2. 2. What is Flash • Obviously, The Flash we are talking about here is not an Player. • Here, Flash is short for Flash Memory • Flash memory is an electronic non-volatile computer storage media that can be electrically erased and reprogrammed. • Introduced by Toshiba in 1984
  3. 3. What is Flash • Flash Memory uses Floating-gate(FG) transistor • Categorized by the types of FG: • NOR( ) Flash • NAND( ) Flash • Today, When we talk about Flash, mostly it refers to NAND Flash. • NOR Flash ,
  4. 4. Flash Cell • Flash (NAND Flash) • Flash .(NAND Flash)
  5. 5. Flash Cell
  6. 6. Flash Cell • SLC: Single-Level Cell 1bit (0,1) • MLC:Multi-Level Cell 2bit (00,01,10,11) • TLC:Triple-Level Cell, And you got the idea.
  7. 7. Flash Cell
  8. 8. Flash Media • • Cell • Page/ (8KB 16KB , Cell , 16KB ) • Block/ (256 512 ,4~8MB) • Die/Lun/ (1024~4096 ,4GB~16GB) • Package/ (4 8 , 16GB~128GB)
  9. 9. Flash Media
  10. 10. Flash Media • Read/ , , 0, 1. Page/ (16KB) 40~80us • Write/Program/ , , (One Way). : Page/ (16KB) 0.5~2ms • Erase/ , Program Page, Program (Dirty->Clear), . :Block/ (4MB) 1~4ms
  11. 11. Flash Media It’s me
  12. 12. Flash Media
  13. 13. Flash Media
  14. 14. Cell
  15. 15. Cell
  16. 16. Cell
  17. 17. Cell
  18. 18. Flash Cell • Erase , ( ) • Erase • Cell —>Cell • Cell Cell ,Cell Erase • Flash P/E Cycle (Program/Erase)
  19. 19. Flash Cell • MLC • P/E Cycle:5000 • P/E Cycle Flash Media . • P/E Cycle, Flash (WA,WL) • Flash Media Flash Media
  20. 20. Flash
  21. 21. Flash
  22. 22. Flash • • Flash , . • , . • P/E Cycle=0 10 • P/E Cycle 5000 3
  23. 23. Flash • • Flash , . • , . • P/E Cycle=0 10 • P/E Cycle 5000 3
  24. 24. Flash • U • U • U •
  25. 25. Flash • SSD is short for Solid State Disk • Flash Media • Don’t Panic! • Flash Flash Media • Driver/FW( )
  26. 26. Flash • SSD is short for Solid State Disk • Flash Media • Don’t Panic! • Flash Flash Media • Driver/FW( )
  27. 27. Flash • FTL: Flash Translation Layer • Intel • Mapping Table + Flash Media • • ( )
  28. 28. Flash
  29. 29. FTL,RAID,OP,GC,WL • Mapping Table • , • DRAM •
  30. 30. FTL,RAID,OP,GC,WL • • RAID
  31. 31. FTL,RAID,GC,WL
  32. 32. FTL,RAID,OP,GC,WL • OP • OP , Flash , • GC, WL • • , • ,
  33. 33. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA 1 A1 2 A2 3 A3 4 A4 5 B1 6 B2 7 B3 8 B4 9 C1 10 C2 11 C3 12 C4 Over Provision page block Physical Capacity = 16page User Capacity = 12page OP = 25% FTL(Flash Translation Layer)Simple SSD
  34. 34. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 A1 xa 2 A2 xb 3 A3 xc 4 A4 xd 5 B1 xe 6 B2 xf 7 B3 xg 8 B4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl xa xb xc xd xe xf xg xh xi xj xk xl Whole Disk Write
  35. 35. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 A1->D1 xa ->ya 2 A2 xb 3 A3 xc 4 A4 xd 5 B1 xe 6 B2 xf 7 B3 xg 8 B4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl ya xe xf xg xh xi xj xk xl xa xb xc xd LBA 1 xa -> ya
  36. 36. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 D1 ya 2 A2->D2 xb->yb 3 A3 xc 4 A4 xd 5 B1 xe 6 B2 xf 7 B3 xg 8 B4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl ya xe xf xg xh xi xj xk xl xa xb xc xd yb LBA 2 xb -> yb
  37. 37. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 D1 ya 2 D2 yb 3 A3->D3 xc->yc 4 A4 xd 5 B1 xe 6 B2 xf 7 B3 xg 8 B4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl ya xe xf xg xh xi xj xk xl xa xb xc xd yb yc LBA 3xc -> yc
  38. 38. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 D1 ya 2 D2 yb 3 D3 yc 4 A4 xd 5 B1 xe 6 B2 xf 7 B3 xg 8 B4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl ya xe xf xg xh xi xj xk xl xa xb xc xd yb yc LBA 5 xe -> ye LBA 5 xe -> ye
  39. 39. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 D1 ya 2 D2 yb 3 D3 yc 4 A4 xd 5 B1->D4 xe->ye 6 B2 xf 7 B3 xg 8 B4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl ya xe xf xg xh xi xj xk xl xa xb xc xd yb yc ye OP free block LBA 5 xe -> ye (error)
  40. 40. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 D1 ya 2 D2 yb 3 D3 yc 4 A4->D4 xd 5 B1 xe 6 B2 xf 7 B3 xg 8 B4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl ya xe xf xg xh xi xj xk xl xa xb xc xd yb yc xd 5 4 3 2 1 life(A)=5 life(B)=5 life(C)=5 life(D)=5 5 4 3 2 1 5 4 3 2 1 5 4 3 2 1 Garbage Collection
  41. 41. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 D1 ya 2 D2 yb 3 D3 yc 4 D4 xd 5 B1 xe 6 B2 xf 7 B3 xg 8 B4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl ya xe xf xg xh xi xj xk xl yb yc xd 4 3 2 1 life(A)=4 life(B)=5 life(C)=5 life(D)=5 5 4 3 2 1 5 4 3 2 1 5 4 3 2 1 Over Provision Garbage Collection GC free block
  42. 42. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 D1 ya 2 D2 yb 3 D3 yc 4 D4 xd 5 B1->A1 xe->ye 6 B2 xf 7 B3 xg 8 B4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl ya xe xf xg xh xi xj xk xl yb yc xd 4 3 2 1 life(A)=4 life(B)=5 life(C)=5 life(D)=5 ye Host write = 16 page Flash write = 17 page = 1.0625 (Write Amplifier) 5 4 3 2 1 5 4 3 2 1 5 4 3 2 1 LBA 5 xe -> ye
  43. 43. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 D1 ya 2 D2 yb 3 D3 yc 4 D4 xd 5 A1 ye 6 B2->A2 xf 7 B3->A3 xg 8 B4->A4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl ya xe xf xg xh xi xj xk xl yb yc xd 4 3 2 1 life(A)=4 life(B)=5 life(C)=5 life(D)=5 ye 5 4 3 2 1 5 4 3 2 1 5 4 3 2 1 xf xg xh LBA 1 ya -> za LBA 1 ya -> za
  44. 44. A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 LBA PBA Data 1 D1 ya 2 D2 yb 3 D3 yc 4 D4 xd 5 A1 ye 6 A2 xf 7 A3 xg 8 A4 xh 9 C1 xi 10 C2 xj 11 C3 xk 12 C4 xl yaxi xj xk xl yb yc xd 4 3 2 1 life(A)=4 life(B)=4 life(C)=5 life(D)=5 ye 4 3 2 1 5 4 3 2 1 5 4 3 2 1 xf xg xh Wear Leveling
  45. 45. FTL,RAID,OP,GC,WL • GC/WL • • • • • •
  46. 46. Thx.
  47. 47. Q&A

    Be the first to comment

    Login to see the comments

  • zx1986

    Dec. 25, 2015
  • mshang5

    Dec. 25, 2015
  • FelixYang

    Dec. 25, 2015
  • alxcho

    Dec. 25, 2015
  • rickhwang

    Dec. 26, 2015

SSD

Views

Total views

806

On Slideshare

0

From embeds

0

Number of embeds

8

Actions

Downloads

24

Shares

0

Comments

0

Likes

5

×