23 24 M3T4b - AlmacenamientoEvolucionCintaMagnetica
23 24 M3T4b - AlmacenamientoEvolucionCintaMagnetica
Visión General
• However, hard drives are typically the slowest component in most computers
– CPU and RAM operate at GHz
– PCI-X and Ethernet are GB/s
2
Solid State Drives
• NAND flash memory-based drives
– High voltage is able to change the configuration of a floating-gate transistor
– State of the transistor interpreted as binary data
Data is striped
Flash memory across all chips
chip
3
Advantages of SSDs
• More resilient against physical damage
– No sensitive read head or moving parts
– Immune to changes in temperature
4
Challenges with Flash
• Flash memory is written in pages, but erased in blocks
– Big problem: Blocks bigger than pages Pages: 4 – 16 KB, Blocks: 128 – 256 KB
– Thus, flash memory can become fragmented
– Leads to the write amplification problem
5
Write Amplification
G moved to new block by
the garbage collector
Block X Block Y
Stale pages
Cleaned A
K D G C’ F’
G C’’ F’’ J
cannot be
block can
overwritten or B
L E A’ D’ A’’ D’’ H A’’’
now be
erased
rewritten C F B’ E’ B’’ E’’ I B’’’
individually
• Once all pages have been written, valid pages must be consolidated to free up
space
6
Garbage Collection (GC)
• Garbage collection (GC) is vital for the performance of SSDs
• Older SSDs had fast writes up until all pages were written once
– Even if the drive has lots of “free space,” each re-write is amplified, thus reducing
performance
7
The Ambiguity of Delete
• Goal: the SSD wants to perform background GC, to improve performance
– But this assumes the SSD controller “knows” which pages are invalid
8
Delete Example
Block X
File metadata Meta File File Meta Metadata is
(inode, name, overwritten, but
etc.) Meta File File Meta
the file remains
File File File
9
TRIM
• New SATA command TRIM (SCSI – UNMAP)
– Allows the OS to tell the SSD that specific LBAs are invalid,
may be GCed
Block X
TRIM Meta File File Meta
•Cleaning involves moving valid pages from one block to another block.
14
Wear-leveling
•Write/Erase cycle of NAND is limited to 100K for SLC and 10K for MLC.
• Based on the Write/Erase count, NAND controller re-map the logical address to the
different physical address.
• Wear-leveling is done by the NAND controller (FTL – Flash Translation Layer), not
by the host system.
Static data
Data that does not change such as system data (OS, application SW).
Dynamic data
Data that are rewritten often such as user data.
Dynamic wear-leveling
Wear-level only over empty and dynamic data.
Static wear-leveling
Wear-level over all data including static data.
Wait as long
as possible A
K D G C’ F’ C’’ F’’ G
before B
L E A’ D’ A’’ D’’ H A’’’
garbage
collecting C F B’ E’ B’’ E’’ I B’’’
Block X Block Y
Blocks with
M*
A D G J M*
M
A M’
D M’’
G M’’’
J
Static Wear
long lived
Leveling
data receive N*
B E H K N*
N
B N’
E N’’
H N’’’
K
less wear
O*
C F I L O*
O
C O’
F O’’
I O’’’
L
10
oSearch for the least used physical block and write the data to
the location. If that location Is empty, the write occurs normally.
oNo data loss as failure occurs on write (another cell can be used for write), rather than read on HDD
SSD Disadvantage :
21
SSD Controller
HIL – Support host interconnect
(USB/PCI/SATA/PCIe).
23
Flash Technology overview
• NOR Flash has typically been used for code storage and direct execution in portable
electronics devices, such as cellular phones and PDAs.
• NAND Flash, which was designed with a very small cell size to enable a low cost-
per-bit of stored data, has been used primarily as a high-density data storage medium
for consumer devices such as digital still cameras and USB solid-state disk drives.
• Toshiba was a principal innovator of both NOR type and NAND-type Flash
technology in the 1980’s.
(Source: Toshiba)
NAND vs. NOR Flash Memory
(Source Toshiba)
When should one choose NAND over NOR ?
For a system that needs to boot out of Flash, execute code from the Flash, or if
read latency is an issue, NOR Flash may be the answer.
For storage applications, NAND Flash’s higher density, and high programming
and erase speeds make it the best choice.
Power is another important concern for many applications. For any write-
intensive applications, NAND Flash will consume significantly less power.
(Source Toshiba)
Flavors of NAND Flash Memory
27
NAND SLC vs. MLC Technology
(Source Toshiba)
HDD vs. SDD
Random access
Sequential access
https://www.usenix.org/legacy/events/usenix08/tech/full_papers/agrawal/agrawal.pdf
https://c59951.ssl.cf2.rackcdn.com/usenix08/tech/full_papers/agrawal/agrawal.mp3 (Source – SSD USENIX, 08)
NAND Flash Internals – Key points
4GB package consisting of 2GB dies, share 8-bit serial I/O bus and common
control signals.
Two dies have separate chip enable and ready/busy signals – One of them can
accept commands while the other is carrying out another operation.
Each page includes 128 byte region to store meta data (Identification and error
detection information).
Data read/write at the granularity of flash pages, thru 4KB data register.
Each block can be erased only finite number of time 100K for SLC.
Información adicional
Visión General
Almacenamiento Magnético 49
Repaso:
Historia del almacenamiento magnético
IBM 726
IBM 701
Almacenamiento Magnético 50
Repaso:
Uso de campos magnéticos para almacenar datos
• Si representamos el valor del campo magnético en función del
valor de la corriente que circula, tenemos el llamado ciclo de
histéresis
Almacenamiento Magnético 55
MÓDULO 4
Principios básicos
• Características importantes:
– Capacidad
– Coste
– Densidad de información
– Velocidad de Transferencia
– Tiempo de acceso
– Otros: Fiabilidad, durabilidad…
• Soporte Magnético
• Densidad de Información:
– Cantidad de información por unidad de volumen (y consecuentemente área, longitud)
• El dominio magnético
– Es “creado” sobre el medio magnético mediante el “cabezal grabador”
– Es “leido” mediante el “cabezal lector”
– En algunos casos es “destruido” o “borrado” por el “cabezal de borrado”,
especialmente frecuentes en cintas de almacenamiento magnético (donde el peso no es
un factor limitante y puede evitar la necesidad de “formateo previo” del medio a usar)
• Lectura
• Borrado
• Lectura
• Borrado