SlideShare une entreprise Scribd logo
1  sur  47
Télécharger pour lire hors ligne
Flash & SSD 101
Zhichao Lv
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
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 ,
Flash Cell
• Flash (NAND Flash)
• Flash
.(NAND Flash)
Flash Cell
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.
Flash Cell
Flash Media
•
• Cell
• Page/ (8KB 16KB , Cell ,
16KB )
• Block/ (256 512 ,4~8MB)
• Die/Lun/ (1024~4096 ,4GB~16GB)
• Package/ (4 8 , 16GB~128GB)
Flash Media
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
Flash Media
It’s me
Flash Media
Flash Media
Cell
Cell
Cell
Cell
Flash Cell
• Erase ,
( )
• Erase
• Cell —>Cell
• Cell Cell ,Cell Erase
• Flash P/E Cycle (Program/Erase)
Flash Cell
• MLC
• P/E Cycle:5000
• P/E Cycle Flash Media .
• P/E Cycle, Flash (WA,WL)
• Flash Media Flash Media
Flash
Flash
Flash
•
• Flash ,
.
• , .
• P/E Cycle=0 10
• P/E Cycle 5000 3
Flash
•
• Flash ,
.
• , .
• P/E Cycle=0 10
• P/E Cycle 5000 3
Flash
• U
• U
• U
•
Flash
• SSD is short for Solid State Disk
• Flash Media
• Don’t Panic!
• Flash Flash Media
• Driver/FW( )
Flash
• SSD is short for Solid State Disk
• Flash Media
• Don’t Panic!
• Flash Flash Media
• Driver/FW( )
Flash
• FTL: Flash Translation Layer
• Intel
• Mapping Table + Flash Media
•
• ( )
Flash
FTL,RAID,OP,GC,WL
• Mapping Table
• ,
• DRAM
•
FTL,RAID,OP,GC,WL
•
• RAID
FTL,RAID,GC,WL
FTL,RAID,OP,GC,WL
• OP
• OP , Flash ,
• GC, WL
•
• ,
• ,
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
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
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
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
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
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
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)
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
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
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
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
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
FTL,RAID,OP,GC,WL
• GC/WL
•
•
•
•
•
•
Thx.
Q&A

Contenu connexe

En vedette

Webinar: Getting Beyond Flash 101 - Flash 102 Selecting the Right Flash Array
Webinar: Getting Beyond Flash 101 - Flash 102 Selecting the Right Flash ArrayWebinar: Getting Beyond Flash 101 - Flash 102 Selecting the Right Flash Array
Webinar: Getting Beyond Flash 101 - Flash 102 Selecting the Right Flash ArrayStorage Switzerland
 
Company Snapshot
Company SnapshotCompany Snapshot
Company Snapshotwaldroncw
 
Social networking present 5 20
Social networking present 5 20Social networking present 5 20
Social networking present 5 20Victor Hurdle
 
FlashSystem February 2017
FlashSystem February 2017FlashSystem February 2017
FlashSystem February 2017Joe Krotz
 
MT48 A Flash into the future of storage….  Flash meets Persistent Memory: The...
MT48 A Flash into the future of storage….  Flash meets Persistent Memory: The...MT48 A Flash into the future of storage….  Flash meets Persistent Memory: The...
MT48 A Flash into the future of storage….  Flash meets Persistent Memory: The...Dell EMC World
 
Flash Storage Technology 101
Flash Storage Technology 101Flash Storage Technology 101
Flash Storage Technology 101Unitiv
 
07.flash memory technology
07.flash memory technology07.flash memory technology
07.flash memory technologyruchiusha
 

En vedette (9)

Flash 101
Flash 101Flash 101
Flash 101
 
Flash 101
Flash 101Flash 101
Flash 101
 
Webinar: Getting Beyond Flash 101 - Flash 102 Selecting the Right Flash Array
Webinar: Getting Beyond Flash 101 - Flash 102 Selecting the Right Flash ArrayWebinar: Getting Beyond Flash 101 - Flash 102 Selecting the Right Flash Array
Webinar: Getting Beyond Flash 101 - Flash 102 Selecting the Right Flash Array
 
Company Snapshot
Company SnapshotCompany Snapshot
Company Snapshot
 
Social networking present 5 20
Social networking present 5 20Social networking present 5 20
Social networking present 5 20
 
FlashSystem February 2017
FlashSystem February 2017FlashSystem February 2017
FlashSystem February 2017
 
MT48 A Flash into the future of storage….  Flash meets Persistent Memory: The...
MT48 A Flash into the future of storage….  Flash meets Persistent Memory: The...MT48 A Flash into the future of storage….  Flash meets Persistent Memory: The...
MT48 A Flash into the future of storage….  Flash meets Persistent Memory: The...
 
Flash Storage Technology 101
Flash Storage Technology 101Flash Storage Technology 101
Flash Storage Technology 101
 
07.flash memory technology
07.flash memory technology07.flash memory technology
07.flash memory technology
 

Similaire à 7 吕智超-ssd101

Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Hsien-Hsin Sean Lee, Ph.D.
 
Why Systolic Architectures
Why Systolic ArchitecturesWhy Systolic Architectures
Why Systolic ArchitecturesMindos Cheng
 
Cassandra and Solid State Drives
Cassandra and Solid State DrivesCassandra and Solid State Drives
Cassandra and Solid State DrivesDataStax Academy
 
Introduction to Asic Design and VLSI Design
Introduction to Asic Design and VLSI DesignIntroduction to Asic Design and VLSI Design
Introduction to Asic Design and VLSI DesignPratik Gohel
 
Raidz on-disk format vs. small blocks
Raidz on-disk format vs. small blocksRaidz on-disk format vs. small blocks
Raidz on-disk format vs. small blocksJoyent
 
Lec6 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Instruction...
Lec6 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Instruction...Lec6 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Instruction...
Lec6 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Instruction...Hsien-Hsin Sean Lee, Ph.D.
 
Cassandra and Solid State Drives
Cassandra and Solid State DrivesCassandra and Solid State Drives
Cassandra and Solid State DrivesRick Branson
 
Relations between archive formats
Relations between archive formatsRelations between archive formats
Relations between archive formatsAnge Albertini
 
Some analysis of BlueStore and RocksDB
Some analysis of BlueStore and RocksDBSome analysis of BlueStore and RocksDB
Some analysis of BlueStore and RocksDBXiao Yan Li
 
ディープニューラルネットワーク向け拡張可能な高位合成コンパイラの開発
ディープニューラルネットワーク向け拡張可能な高位合成コンパイラの開発ディープニューラルネットワーク向け拡張可能な高位合成コンパイラの開発
ディープニューラルネットワーク向け拡張可能な高位合成コンパイラの開発Shinya Takamaeda-Y
 
“Show Me the Garbage!”, Garbage Collection a Friend or a Foe
“Show Me the Garbage!”, Garbage Collection a Friend or a Foe“Show Me the Garbage!”, Garbage Collection a Friend or a Foe
“Show Me the Garbage!”, Garbage Collection a Friend or a FoeHaim Yadid
 
Flash! (Modern File Systems)
Flash! (Modern File Systems)Flash! (Modern File Systems)
Flash! (Modern File Systems)David Evans
 
Losing Data in a Safe Way – Advanced Replication Strategies in Apache Hadoop ...
Losing Data in a Safe Way – Advanced Replication Strategies in Apache Hadoop ...Losing Data in a Safe Way – Advanced Replication Strategies in Apache Hadoop ...
Losing Data in a Safe Way – Advanced Replication Strategies in Apache Hadoop ...DataWorks Summit
 
Jackpot! Attacking Arcade Machines
Jackpot! Attacking Arcade MachinesJackpot! Attacking Arcade Machines
Jackpot! Attacking Arcade MachinesPatrick Sayler
 
NAND-Flash-Data-Recovery-Cookbook-igor.pdf
NAND-Flash-Data-Recovery-Cookbook-igor.pdfNAND-Flash-Data-Recovery-Cookbook-igor.pdf
NAND-Flash-Data-Recovery-Cookbook-igor.pdfsheikhfarhanm6948
 

Similaire à 7 吕智超-ssd101 (20)

PAL
PALPAL
PAL
 
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
 
Why Systolic Architectures
Why Systolic ArchitecturesWhy Systolic Architectures
Why Systolic Architectures
 
Storage
StorageStorage
Storage
 
Cassandra and Solid State Drives
Cassandra and Solid State DrivesCassandra and Solid State Drives
Cassandra and Solid State Drives
 
unit 5.ppt
unit 5.pptunit 5.ppt
unit 5.ppt
 
Introduction to Asic Design and VLSI Design
Introduction to Asic Design and VLSI DesignIntroduction to Asic Design and VLSI Design
Introduction to Asic Design and VLSI Design
 
Raidz on-disk format vs. small blocks
Raidz on-disk format vs. small blocksRaidz on-disk format vs. small blocks
Raidz on-disk format vs. small blocks
 
RAIDZ on-disk format vs. small blocks
RAIDZ on-disk format vs. small blocksRAIDZ on-disk format vs. small blocks
RAIDZ on-disk format vs. small blocks
 
Lec6 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Instruction...
Lec6 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Instruction...Lec6 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Instruction...
Lec6 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Instruction...
 
Cassandra and Solid State Drives
Cassandra and Solid State DrivesCassandra and Solid State Drives
Cassandra and Solid State Drives
 
OptiCal & LUMOS Networks
OptiCal & LUMOS NetworksOptiCal & LUMOS Networks
OptiCal & LUMOS Networks
 
Relations between archive formats
Relations between archive formatsRelations between archive formats
Relations between archive formats
 
Some analysis of BlueStore and RocksDB
Some analysis of BlueStore and RocksDBSome analysis of BlueStore and RocksDB
Some analysis of BlueStore and RocksDB
 
ディープニューラルネットワーク向け拡張可能な高位合成コンパイラの開発
ディープニューラルネットワーク向け拡張可能な高位合成コンパイラの開発ディープニューラルネットワーク向け拡張可能な高位合成コンパイラの開発
ディープニューラルネットワーク向け拡張可能な高位合成コンパイラの開発
 
“Show Me the Garbage!”, Garbage Collection a Friend or a Foe
“Show Me the Garbage!”, Garbage Collection a Friend or a Foe“Show Me the Garbage!”, Garbage Collection a Friend or a Foe
“Show Me the Garbage!”, Garbage Collection a Friend or a Foe
 
Flash! (Modern File Systems)
Flash! (Modern File Systems)Flash! (Modern File Systems)
Flash! (Modern File Systems)
 
Losing Data in a Safe Way – Advanced Replication Strategies in Apache Hadoop ...
Losing Data in a Safe Way – Advanced Replication Strategies in Apache Hadoop ...Losing Data in a Safe Way – Advanced Replication Strategies in Apache Hadoop ...
Losing Data in a Safe Way – Advanced Replication Strategies in Apache Hadoop ...
 
Jackpot! Attacking Arcade Machines
Jackpot! Attacking Arcade MachinesJackpot! Attacking Arcade Machines
Jackpot! Attacking Arcade Machines
 
NAND-Flash-Data-Recovery-Cookbook-igor.pdf
NAND-Flash-Data-Recovery-Cookbook-igor.pdfNAND-Flash-Data-Recovery-Cookbook-igor.pdf
NAND-Flash-Data-Recovery-Cookbook-igor.pdf
 

Plus de Ivan Tu

8 彭立勳-double binlog方案
8 彭立勳-double binlog方案8 彭立勳-double binlog方案
8 彭立勳-double binlog方案Ivan Tu
 
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北Ivan Tu
 
2 ivan ma-mysql複製的演進和應用-twn- v1
2 ivan ma-mysql複製的演進和應用-twn- v12 ivan ma-mysql複製的演進和應用-twn- v1
2 ivan ma-mysql複製的演進和應用-twn- v1Ivan Tu
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivanIvan Tu
 
My sql fabric webinar tw2
My sql fabric webinar tw2My sql fabric webinar tw2
My sql fabric webinar tw2Ivan Tu
 
My sql resources_april2012_zht
My sql resources_april2012_zhtMy sql resources_april2012_zht
My sql resources_april2012_zhtIvan Tu
 
My sql 56_roadmap_april2012_zht2
My sql 56_roadmap_april2012_zht2My sql 56_roadmap_april2012_zht2
My sql 56_roadmap_april2012_zht2Ivan Tu
 
My sql cluster_taipei_event
My sql cluster_taipei_eventMy sql cluster_taipei_event
My sql cluster_taipei_eventIvan Tu
 
My sql introduction for Bestcom
My sql introduction for BestcomMy sql introduction for Bestcom
My sql introduction for BestcomIvan Tu
 
My S Q L Introduction for 1 day training
My S Q L  Introduction for 1 day trainingMy S Q L  Introduction for 1 day training
My S Q L Introduction for 1 day trainingIvan Tu
 

Plus de Ivan Tu (10)

8 彭立勳-double binlog方案
8 彭立勳-double binlog方案8 彭立勳-double binlog方案
8 彭立勳-double binlog方案
 
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
 
2 ivan ma-mysql複製的演進和應用-twn- v1
2 ivan ma-mysql複製的演進和應用-twn- v12 ivan ma-mysql複製的演進和應用-twn- v1
2 ivan ma-mysql複製的演進和應用-twn- v1
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan
 
My sql fabric webinar tw2
My sql fabric webinar tw2My sql fabric webinar tw2
My sql fabric webinar tw2
 
My sql resources_april2012_zht
My sql resources_april2012_zhtMy sql resources_april2012_zht
My sql resources_april2012_zht
 
My sql 56_roadmap_april2012_zht2
My sql 56_roadmap_april2012_zht2My sql 56_roadmap_april2012_zht2
My sql 56_roadmap_april2012_zht2
 
My sql cluster_taipei_event
My sql cluster_taipei_eventMy sql cluster_taipei_event
My sql cluster_taipei_event
 
My sql introduction for Bestcom
My sql introduction for BestcomMy sql introduction for Bestcom
My sql introduction for Bestcom
 
My S Q L Introduction for 1 day training
My S Q L  Introduction for 1 day trainingMy S Q L  Introduction for 1 day training
My S Q L Introduction for 1 day training
 

Dernier

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 

Dernier (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

7 吕智超-ssd101

  • 1. Flash & SSD 101 Zhichao Lv
  • 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. 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. Flash Cell • Flash (NAND Flash) • Flash .(NAND Flash)
  • 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.
  • 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)
  • 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
  • 14. Cell
  • 15. Cell
  • 16. Cell
  • 17. Cell
  • 18. Flash Cell • Erase , ( ) • Erase • Cell —>Cell • Cell Cell ,Cell Erase • Flash P/E Cycle (Program/Erase)
  • 19. Flash Cell • MLC • P/E Cycle:5000 • P/E Cycle Flash Media . • P/E Cycle, Flash (WA,WL) • Flash Media Flash Media
  • 20. Flash
  • 21. Flash
  • 22. Flash • • Flash , . • , . • P/E Cycle=0 10 • P/E Cycle 5000 3
  • 23. Flash • • Flash , . • , . • P/E Cycle=0 10 • P/E Cycle 5000 3
  • 25. Flash • SSD is short for Solid State Disk • Flash Media • Don’t Panic! • Flash Flash Media • Driver/FW( )
  • 26. Flash • SSD is short for Solid State Disk • Flash Media • Don’t Panic! • Flash Flash Media • Driver/FW( )
  • 27. Flash • FTL: Flash Translation Layer • Intel • Mapping Table + Flash Media • • ( )
  • 28. Flash
  • 32. FTL,RAID,OP,GC,WL • OP • OP , Flash , • GC, WL • • , • ,
  • 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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
  • 46. Thx.
  • 47. Q&A