CPC G06F 12/0253 (2013.01) [G06F 12/0246 (2013.01); G06F 2212/7205 (2013.01)] | 15 Claims |
1. A method of managing a garbage collection (GC) operation on a flash memory, comprising:
calculating an overall spare area in a flash memory, which includes a spare area in a plurality of spare blocks in the flash memory and at least two of: a spare area in one or more target blocks to which user data of host write commands is being written, a spare area in one or more destination blocks to which valid data of the GC operation is being written and a spare area in a source block from which valid data of the GC operation is being read; wherein the overall spare area indicates spare areas in both erased blocks and non-erased blocks;
determining an adjustment factor according to the overall spare area; and
performing the GC operation on the source block according to a GC-to-host base ratio and the adjustment factor, wherein the adjustment factor and a size of the overall spare area have a negative correlation.
|