NAND erase block
A NAND erase block is a group of flash pages erased together by a block-erase operation.
It is not a host logical block or a filesystem block. Geometry is device-specific; preserving live pages before reuse adds copying work. [1] [2]
Programming only raises a cell's threshold voltage, so a page can be programmed once between erases, and because all cells of a block share one substrate the erase works on the whole block. [2] Reads and programs work on pages, erases on fixed-size blocks of contiguous pages. [1]
Block size has grown: a 2008 design study used 64 pages of 4 KB, two 2014-era MLC chips had 128 and 256 pages of 8 kB, and a simulated 3D chip had 576 pages of 16 KiB, that is 256 KB, 1 MiB, 2 MiB and 9 MiB. [1] [3] [4] Erase took 1.5 to 5 ms in these sources, while programming the 64 pages of the 2008 block at 200 µs each takes 12.8 ms.
Before reuse the controller moves out still-valid pages, and the worst case is N - 1 cleaning writes per new write for a block of N pages, 63 for 64 pages and 575 for 576. [1] A block is retired when an erase or program fails or its bit error rate nears the correction limit. [3]
Relations
- related
- NAND flash, NAND page, Garbage collection (flash), Program/erase cycle, Flash translation layer (FTL), NAND plane, NAND logical unit, NAND erase suspension
Advantages
- Erasing many pages in one operation keeps the slow erase small next to programming the block, about 2.8% for one 2014-era chip. [3]
Limitations
- Each block endures a limited number of erase cycles, so erases must be spread evenly over the blocks. [1]
Citations
- Agrawal et al. Design Tradeoffs for SSD Performance. USENIX ATC 2008, section 2 and Table 1.
- Cai et al. Error Characterization, Mitigation, and Recovery in Flash-Memory-Based Solid-State Drives. 2017, sections 2.1 and 2.3.
- Jimenez, Novo and Ienne. Wear Unleveling: Improving NAND Flash Lifetime by Balancing Page Endurance. USENIX FAST 2014.
- Park et al. Reducing Solid-State Drive Read Latency by Optimizing Read-Retry. ASPLOS 2021, section 7.1.
Sources & caveats
- The figures come from one 2008 design study, two 2014-era chips and a simulated 3D chip, so they show the range of geometry, not any current device.
- The 2008 study has co-authors from an industrial research laboratory (Microsoft Research); the survey is university-led with one drive-maker co-author; the EPFL and read-retry studies are university work.
- N - 1 is a worst-case bound for the worst distribution of valid pages, not a typical cost.
- Arithmetic: 64 x 200 µs = 12.8 ms (19.2 ms with 100 µs transfers), so a 1.5 ms erase is about 12% (8%); the 2.8% assumes half of 128 pages program in 450 µs and half in 1,800 µs (144 ms per block, 4 ms erase).
- Planes and multi-block logical units are not covered.