Patent ID: 8667210
Filing Date: 2014-03-04
Classification: G06F

Abstract:
1. A memory management method for managing a plurality of physical units of a rewritable non-volatile memory module, wherein each of the physical units has a plurality of physical pages arranged in a sequence, and the physical units are grouped into at least a data area and a free area, and the physical units of the free area are used to substitute the physical units of the data area for writing data, the memory management method comprising: configuring a plurality of logical units to map to the physical units of the data area, wherein each of the logical units has a plurality of logical pages; getting a plurality of empty physical units from the physical units of the free area to serve as a first global random area; getting a plurality of empty physical units from the physical units of the data area to serve as a second global random area; using the physical units of the first global random area to write updated data, wherein the updated data belongs to a plurality of updated logical units among the logical units; determining whether a number of the physical units that are not written with the updated data among the physical units of the first global random area is smaller than a first predetermined threshold; when the number of the physical units that are not written with the updated data among the physical units of the first global random area is smaller than the first predetermined threshold, calculating a storage state assessing value corresponding to the first global random area and determining whether the storage state assessing value is larger than a predetermined assessing threshold; and using the physical units of the second global random area to write other updated data after the physical units of the first global random area are written full of the updated data when the storage state assessing value is not larger than the predetermined assessing threshold.