Patent ID: 9652381
Date: 2017-05-16
CPC Classifications: G06F

Claim:
1. A method of garbage collection for a storage medium in a storage device, the method comprising: determining a first trigger parameter in accordance with one or more operating conditions of a first sub-block of a first erase block in the storage medium, the storage medium having a plurality of erase blocks that include the first erase block, where erase blocks are minimum size erasable units in the storage device and sub-blocks are sub-portions of corresponding erase blocks; determining a second trigger parameter in accordance with one or more operating conditions of a second sub-block of the first erase block in the storage medium; in accordance with a determination that the first trigger parameter meets a first vulnerability criterion, enabling sub-block garbage collection of the first sub-block; and in accordance with a determination that the second trigger parameter meets a second vulnerability criterion, enabling sub-block garbage collection of the second sub-block, wherein the first vulnerability criterion is distinct from the second vulnerability criterion, wherein the first vulnerability criterion is a first read-disturb threshold and the second vulnerability criterion is a second read-disturb threshold, distinct from the first read-disturb threshold, and wherein sub-block garbage collection of a particular sub-block of the first erase block is distinct from garbage collection of the first erase block, and sub-block garbage collection of the particular sub-block of the first erase block includes: