Patent ID: 9098395
Filing Date: 2015-08-04
Classification: G06F

Abstract:
1. A logical block management method, for managing a plurality of logical blocks of a flash memory storage device, wherein the plurality of logical blocks are mapped to a plurality of physical blocks in the flash memory storage device, the logical block management method comprising: providing a flash memory controller; grouping the logical blocks into a plurality of logical zones, wherein the logical zones comprising a first logical zone, a second logical zone and a third logical zone; recording mapping relations between the logical blocks and the logical zones, wherein each of the logical blocks maps to one of the logical zones; counting a use count value for each of the logical blocks, wherein the use count value for each of the logical blocks is the number of times the corresponding logical block has been written to, wherein when a host system executes a write command to one of the logical blocks, the use count value of the corresponding logical block is increased, wherein the use count values of the logical blocks in the first logical zone is greater than the use count values of the logical blocks in the second logical zone, and the use count values of the logical blocks in the second logical zone is greater than the use count values of the logical blocks in the third logical zone; adjusting the mapping relations between the logical blocks and the logical zones by using the flash memory controller according to the use count values, wherein the mapping relations between the logical blocks and the logical zones is adjusted by remapping one of the logical blocks mapped to the third logical zone among the logical zones to the second logical zone among the logical zones and remapping another logical block mapped to the second logical zone to the third logical zone in response to remapping the one of the logical blocks mapped to the third logical zone to the second logical zone, wherein the count value of the one of the logical blocks mapped to the third logical zone is greater than the count values of the logical blocks mapped to the first logical zone and the second logical zone; and adjusting the use count values by using the flash memory controller after the step of adjusting the mapping relations between the logical blocks and the logical zone, wherein the use count values are divided by a predetermined value, wherein, when the host system is to access a first logical block among the logical blocks, the memory management unit loads a first logical block-physical block mapping table from a flash memory chip according to the first logical zone that the first logical block to be accessed belongs to, and performs a data accessing according to the first logical block- physical block mapping table, wherein, after the first logical zone is accessed, when a second logical block mapped to the second logical zone among the logical zones is to be accessed, the memory management unit stores the first logical block-physical block mapping table back to the flash memory chip, and loads a second logical block-physical block mapping table according to the second logical zone.