知识卡片
闪存页映射和擦除
闪存按页读写,已经写过的页所在单元须先擦除,而擦除粒度是含多页的块。控制器的 FTL 把逻辑页号映射到物理位置,更新时写到空页并改映射。回收某个块前搬走还有效的页并重映射,然后统一擦除。细碎且不对齐的更新会让回收搬迁增加;合并写有助于减少底层工作。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 2. B-Tree Basics Disk-Based Structures · 查看原书依据
The part of a flash memory controller responsible for mapping page IDs to their physical locations, tracking empty, written, and discarded pages, is called the Flash Translation Layer (FTL) (see “Flash Translation Layer” for more about FTL).
参考来源
- 位置:《Database Internals》Chapter 2. B-Tree Basics(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch02.html#idm46104533561752,段 46)
- 结论依据:原文按跟踪页状态、搬迁存活页、修改映射、擦除块的顺序介绍 FTL。
- 原始内容:The part of a flash memory controller responsible for mapping page IDs to their physical locations, tracking empty, written, and discarded pages, is called the Flash Translation Layer (FTL) (see “Flash Translation Layer” for more about FTL).