| CPC G06F 3/0655 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0644 (2013.01); G06F 3/0679 (2013.01)] | 19 Claims |

|
1. A method comprising: responsive to initiating a memory page scan on a first memory page of a plurality of memory pages of a memory device, determining whether an update trim flag is set, wherein a set update trim flag indicates that a second trim value is to be used for the memory page scan and a cleared update trim flag indicates that the first trim value is to be used for the memory page scan;
responsive to determining that the update trim flag is not set, performing a first page read on the first memory page utilizing the first trim value; determining whether a first data state metric associated with the first page read satisfies a predetermined threshold value, wherein exceeding the predetermined threshold value indicates that the memory device is at or near end-of-life;
responsive to determining that the first data state metric satisfies the predetermined threshold value, performing a second page read on the first memory page utilizing the second trim value to determine whether the second trim value should be used for further memory page scans;
determining whether a second data state metric associated with the second page read satisfies the predetermined threshold value;
responsive to determining that the second data state metric associated with the second page read does not satisfy the predetermined threshold value, setting the update trim flag; and
responsive to determining that the second data state metric associated with the second page read satisfies the predetermined threshold value, performing a folding operation.
|