Partial garbage collection for fast error handling and optimized garbage collection for the invisible band
First Claim
1. A method for managing garbage collection of memory locations in a data storage device (DSD) comprising a plurality of dies, each die comprising a plurality of memory blocks, the method comprising:
- selecting a physical region of memory to be garbage collected, the selected physical region being a subset of a block management region; and
garbage collecting the selected physical region of memory, the garbage collecting comprising;
determining one or more journals corresponding to the selected physical region, the one or more journals comprising transaction entries indicating what logical data are written to memory locations in the selected physical region;
determining whether the memory locations within the physical region of memory contain valid data based on a comparison of information in the one or more journals and a mapping table;
if valid data exists, copying valid data into memory locations in memory regions other than the selected physical region of memory; and
alternating garbage collecting on an invisible band journal with garbage collecting the selected physical region of memory associated with one or more data band journals, wherein garbage collecting on the invisible band journal comprises mapping information transaction entries recording what logical data are mapped to a location designed for denoting that logical data has been invalidated,wherein the selected physical region of memory is erased when the block management region is erased.
17 Assignments
0 Petitions
Accused Products
Abstract
A method for managing garbage collection of memory locations in an DSD having a plurality of dies each having a plurality of memory blocks includes: selecting a physical region of memory to be garbage collected, the selected physical region being a subset of a block management region; and garbage collecting the selected physical region. The garbage collecting includes: determining one or more journals corresponding to the selected physical region, the journal comprising transaction entries indicating what logical data are written to memory locations in the selected physical region; determining whether the memory locations within the physical region contain valid data based on a comparison of information in the journal and a mapping table; and if valid data exists, copying valid data into memory locations in memory regions other than the selected physical region of memory. The selected physical region of memory is erased when the block management region is erased.
-
Citations
16 Claims
-
1. A method for managing garbage collection of memory locations in a data storage device (DSD) comprising a plurality of dies, each die comprising a plurality of memory blocks, the method comprising:
-
selecting a physical region of memory to be garbage collected, the selected physical region being a subset of a block management region; and garbage collecting the selected physical region of memory, the garbage collecting comprising; determining one or more journals corresponding to the selected physical region, the one or more journals comprising transaction entries indicating what logical data are written to memory locations in the selected physical region; determining whether the memory locations within the physical region of memory contain valid data based on a comparison of information in the one or more journals and a mapping table; if valid data exists, copying valid data into memory locations in memory regions other than the selected physical region of memory; and alternating garbage collecting on an invisible band journal with garbage collecting the selected physical region of memory associated with one or more data band journals, wherein garbage collecting on the invisible band journal comprises mapping information transaction entries recording what logical data are mapped to a location designed for denoting that logical data has been invalidated, wherein the selected physical region of memory is erased when the block management region is erased. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A data storage device (DSD), comprising:
-
a controller; and a plurality of dies, each die comprising a plurality of memory blocks, wherein the controller is configured to; select a physical region of memory to garbage collect, the selected physical region being a subset of a block management region; and garbage collect the selected physical region of memory, wherein the garbage collecting comprising; determine one or more journals corresponding to the selected physical region, the one or more journals comprising transaction entries indicating what logical data are written to memory locations in the selected physical region; determine whether the memory locations within the physical region of memory contain valid data based on a comparison of information in the one or more journals and a mapping table; and if valid data exists, copy valid data into memory locations in memory regions other than the selected physical region of memory; and alternate garbage collecting on an invisible band journal with garbage collecting the selected physical region of memory associated with one or more data band journals, wherein garbage collecting on the invisible band journal comprises mapping information transaction entries recording what logical data are mapped to a location designed for denoting that logical data has been invalidated, wherein the selected physical region of memory is erased when the block management region is erased. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
Specification