CS 137: File Systems
Persistent Solid-State Storage
1 / 25
CS 137: File Systems Persistent Solid-State Storage 1 / 25 - - PowerPoint PPT Presentation
CS 137: File Systems Persistent Solid-State Storage 1 / 25 Introduction Technology Change is Coming Disks are cheaper than any solid-state memory Likely to be true for many years But SSDs are now cheap enough for some purposes 1000
1 / 25
Introduction
2 / 25
The Technology Before Flash
◮ Array of transistors ◮ Trivial to leave out a wire to make one “defective” ◮ Result was array of ones and zeros
3 / 25
The Technology Before Flash
◮ Array of fuses (literally!) ◮ Blow a fuse to generate a zero ◮ Special high-voltage circuitry to select fuse
4 / 25
The Technology Before Flash
◮ Direct predecessor to flash ◮ Electrons in floating gate (see later slide) store data ◮ UV light used to drive out electrons and erase
5 / 25
The Technology Before Flash
6 / 25
The Technology Flash Cells
◮ Allows sensing whether charge is present 7 / 25
The Technology Flash Cells
8 / 25
The Technology Flash Cells
9 / 25
The Technology Flash Cells
10 / 25
The Technology Flash Cells
◮ Sense varying current levels ◮ Can translate back into multiple bits ◮ Current limit is eight levels ≡ three bits
11 / 25
The Technology NOR vs. NAND Flash
◮ Works like NOR of word lines 12 / 25
The Technology NOR vs. NAND Flash
◮ All will conduct
◮ If programmed, will conduct
13 / 25
The Technology NOR vs. NAND Flash
14 / 25
The Technology A NAND Flash Chip
◮ Eight address bits per cycle ◮ CAS is 13 bits + 3 for future ◮ RAS is 18 + 6 for future ◮ Spare bits mean can later put bigger device into same circuit design
15 / 25
The Technology A NAND Flash Chip
16 / 25
The Technology A NAND Flash Chip
◮ Otherwise extra 31.25µs (amortized) to erase ◮ Writing is ≈ 6.3 − 6.5× slower than reading 17 / 25
The Technology A NAND Flash Chip
◮ Otherwise extra 31.25µs (amortized) to erase ◮ Writing is ≈ 6.3 − 6.5× slower than reading
17 / 25
The Technology A NAND Flash Chip
18 / 25
The Technology A NAND Flash Chip
18 / 25
Building a Flash “Disk” Design Issues
19 / 25
Building a Flash “Disk” Design Issues
20 / 25
Building a Flash “Disk” Flash Translation Layers
21 / 25
Building a Flash “Disk” Flash Translation Layers
◮ Solution: must sometimes move RO data
◮ Solution: group newly written blocks together regardless of logical address ◮ Called “Log-Structured File System” (LFS) ◮ (We’ll read that paper later. . . )
◮ Solution: only reclaim block when overwritten ◮ Solution: know that it’s FAT and reverse-engineer data as it’s written 22 / 25
Building a Flash “Disk” Flash Translation Layers
◮ Well. . . mostly
◮ Problem: need entirely new interface ◮ Apple has done it in MacBook Air (advantage of making both hardware and software) ◮ Now standardized as Open-Channel ◮ Supported in Linux 4.x+ kernels
23 / 25
The Bad News
24 / 25
The Bad News
◮ What happens when filesystems are just like memory? ◮ Active current research area 25 / 25