Heap-based mechanism for efficient garbage collection block selection
Abstract
N page counters are associated with N blocks in the flash subsystem. Each of the N page counters indicates a count of invalid pages in each corresponding block in the N blocks. A max heap structure is formed over the N page counters. At least one of the N page counters is updated each time the count changes. The max heap structure is updated each time the at least one of the N page counters is updated. A maximum value is retrieved from a highest level of the max heap structure. The max heap structure is traversed down to lowest level using the maximum value at each level until reaching the lowest level. The lowest level corresponds to N page counters. One of the N blocks having associated page counter corresponds to the maximum value is identified as a candidate for block erasure.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 1 · Forward citations: 5.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method comprising: associating N page counters with N blocks in a flash subsystem, each of the N page counters indicating a count of invalid pages in each corresponding block in the N blocks; forming a max heap structure over the N page counters; updating at least one of the N page counters each time the count of invalid pages of the at least one of the N page counters changes; and updating the max heap structure each time the at least one of the N page counters is updated.
- Claim 2Depends on #1
The method of claim 1 wherein forming the max heap structure comprises: forming a tree having K levels in which leaf nodes correspond to the N page counters and each parent node has a plurality of child nodes and contains a maximum value of the plurality of child nodes.
- Claim 3Depends on #2
The method of claim 2 wherein updating the N page
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (1)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 8,185,687 B2 | Semiconductor storage device and method of controlling semiconductor storage device | 2012 | 6 |