Greedy garbage collection
A flash block-cleaning policy that selects a candidate erase block with the fewest valid pages, minimizing the valid data copied for that selection.
The candidate set matters: a global greedy policy and a policy restricted to an age window are not the same algorithm. Immediate copying cost does not by itself determine long-run behavior under skewed update frequencies.
A whole-device valid-page count does not specify the selected victim's valid-page count. For four fully programmed eight-page blocks, layouts [4,4,4,4] and [0,0,8,8] both contain 16 valid pages, but global greedy selection copies four and zero pages respectively. These constructed snapshots illustrate the next selection, not steady-state behavior. [3]
Global greedy selection need not sort every block at each collection. Desnoyers describes bins indexed by valid-page count: an invalidation moves a block reference between adjacent bins, and selection finds the lowest nonempty bin. The paper gives O(1) movement and O(pages per block) worst-case search, rather than a scan proportional to device block count. [2]
Relations
- related
- Garbage collection (flash), Over-provisioning, Write amplification, Hot/cold data separation, NAND page, NVMe reclaim unit handle, NVMe FDP, Static wear leveling
Limitations
Citations
- Xiang and Kurkoski. An Improved Analytic Expression for Write Amplification in NAND Flash. arXiv:1110.4245v1, section II.
- Peter Desnoyers. Analytic Modeling of SSD Write Performance. SYSTOR 2012, sections 2-3. DOI: 10.1145/2367589.2367603.
- Hesela: SSD over-provisioning, capacity denominators and analytical-model limits