Data storage device and operating method thereof wherein update to physical-to-logical mapping of destination block is restarted when closing active block
First Claim
Patent Images
1. A data storage device, comprising:
- a non-volatile memory, comprising a plurality of physical blocks;
and a microcontroller, selecting one source block and one destination block from the plurality of physical blocks to perform a garbage collection operation to copy valid data from the source block to the destination block and segmenting an update of a mapping table F2H of the destination block by updating the mapping table F2H of the destination block at separate time intervals, wherein between the separate time intervals the microcontroller executes commands issued by a host, wherein;
the mapping table F2H of the destination block shows physical-to-logical mapping of the destination block;
and during the update of the mapping table F2H of the destination block, the microcontroller further identifies valid and invalid data in the destination block;
the microcontroller restarts the update of the mapping table F2H of the destination block when closing an active block allocated from the physical blocks;
and the active block stores write data that is issued by the host, wherein the active block is separate from the destination block.
1 Assignment
0 Petitions
Accused Products
Abstract
A data storage device with a non-volatile memory on which a garbage collection operation is segmented to be accomplished at separate time intervals. Host commands are inserted to be executed between the separate time intervals. A data swap stage or/and an F2H table update stage or/and an H2F table update stage for a garbage collection operation may be segmented to be performed at separate time intervals.
10 Citations
4 Claims
-
1. A data storage device, comprising:
-
a non-volatile memory, comprising a plurality of physical blocks; and a microcontroller, selecting one source block and one destination block from the plurality of physical blocks to perform a garbage collection operation to copy valid data from the source block to the destination block and segmenting an update of a mapping table F2H of the destination block by updating the mapping table F2H of the destination block at separate time intervals, wherein between the separate time intervals the microcontroller executes commands issued by a host, wherein; the mapping table F2H of the destination block shows physical-to-logical mapping of the destination block; and during the update of the mapping table F2H of the destination block, the microcontroller further identifies valid and invalid data in the destination block; the microcontroller restarts the update of the mapping table F2H of the destination block when closing an active block allocated from the physical blocks; and the active block stores write data that is issued by the host, wherein the active block is separate from the destination block. - View Dependent Claims (2)
-
-
3. A method for operating a data storage device, comprising:
-
selecting one source block and one destination block from a plurality of physical blocks of a non-volatile memory; performing a garbage collection operation to copy valid data from the source block to the destination block, wherein an update of a mapping table F2H of the destination block is segmented by updating the mapping table F2H of the destination block at separate time intervals; and between the separate time intervals, executing commands issued by a host, the mapping table F2H of the destination block shows physical-to-logical mapping of the destination block; and during the update of the mapping table F2H of the destination block, valid and invalid data identification in the destination block is performed; restarting the update of the mapping table F2H of the destination block when an active block allocated from the physical blocks is closed; and the active block stores write data that is issued by the host, wherein the active block is separate from the destination block. - View Dependent Claims (4)
-
Specification