Garbage collection method for data storage device

US10657048B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10657048-B2
Application numberUS-201715783953-A
CountryUS
Kind codeB2
Filing dateOct 13, 2017
Priority dateNov 10, 2016
Publication dateMay 19, 2020
Grant dateMay 19, 2020

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A garbage collection method for a data storage device includes steps of: entering a background mode from a foreground mode; selecting a plurality of source data blocks from a plurality of in-use data blocks; dividing a mapping table into a plurality of sub-mapping tables and selecting one of the sub-mapping tables as a target sub-mapping table, wherein the target sub-mapping table is used to manage one of the source data blocks; selecting a destination data block from a plurality of spare data blocks; and sequentially updating a correspondence relationship of data stored in the target sub-mapping table from the source data blocks to the destination data block, wherein the updating comprises copying the data stored in the source data blocks to the destination data block.

First claim

Opening claim text (preview).

What is claimed is: 1. A garbage collection method for a data storage device, comprising: entering a background mode from a foreground mode; selecting a plurality of source data blocks from a plurality of in-use data blocks; dividing a mapping table stored in a non-volatile storage medium of the data storage device into a plurality of sub-mapping tables, storing the plurality of sub-mapping tables in the non-volatile storage medium of the data storage device, and selecting one of the sub-mapping tables from the non-volatile storage medium as a target sub-mapping table, wherein the target sub-mapping table is used to manage one of the source data blocks; selecting a destination data block from a plurality of spare data blocks; sequentially copying a plurality of valid data stored in the source data blocks to the destination data block; updating a correspondence relationship of the copied valid data in the target sub-mapping table from the source data blocks to the destination data block; determining the correspondence relationship of the data stored in the target sub-mapping table has been not completely updated; selecting another destination data block from the spare data blocks to copy the remaining valid data from the source data blocks to another destination data block until the target sub-mapping table has been completely updated; and recovering one of the source data blocks as a spare data block when the one of the source data blocks does not contain any valid data. 2. The garbage collection method according to claim 1 , wherein one of the source data blocks is one of the in-use data blocks having an extreme value of valid data count. 3. The garbage collection method according to claim 1 , wherein one of the source data blocks is one of the in-use data blocks having an extreme value of erase count. 4. The garbage collection method according to claim 1 , wherein one of the source data blocks is one of the in-use data blocks having an extreme value of read count. 5. The garbage collection method according to claim 1 , wherein the source data blocks are randomly selected from the in-use data blocks. 6. The garbage collection method according to claim 1 , wherein the source data blocks are sequentially selected from the in-use data blocks according to a serial number. 7. The garbage collection method according to claim 1 , wherein the target sub-mapping table is sequentially selected from the sub-mapping tables. 8. The garbage collection method according to claim 1 , wherein the target sub-mapping table is randomly selected from the sub-mapping tables. 9. The garbage collection method according to claim 1 , wherein the destination data block is randomly selected from the spare data blocks. 10. The garbage collection method according to claim 1 , wherein the destination data block is sequentially selected from the spare data blocks. 11. The garbage collection method according to claim 1 , wherein the destination data block is one of the spare data blocks having an extreme value of erase count. 12. The garbage collection method according to claim 1 , wherein the data storage device comprises the in-use data blocks storing valid data and the spare data blocks not storing the valid data. 13. The garbage collection method according to claim 1 , wherein the data storage device comprises a dynamic random access memory (DRAM), and a size of the mapping table is larger than a size of the DRAM. 14. The garbage collection method according to claim 1 , wherein the background mode is entered from the foreground mode when the data storage device does not receive a command. 15. The garbage collection method according to claim 1 , wherein the background mode is entered from the foreground mode when a total number of the spare data blocks is lower than a threshold. 16. The garbage collection method according to claim 1 , wherein the background mode is entered from the foreground mode when a power state of the data storage device is changed.

Assignees

Inventors

Classifications

  • G06F3/0608Primary

    Saving storage space on storage systems · CPC title

  • Garbage collection, i.e. reclamation of unreferenced memory · CPC title

  • Space efficiency improvement · CPC title

  • Cleaning, compaction, garbage collection, erase control · CPC title

  • Hybrid storage device · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10657048B2 cover?
A garbage collection method for a data storage device includes steps of: entering a background mode from a foreground mode; selecting a plurality of source data blocks from a plurality of in-use data blocks; dividing a mapping table into a plurality of sub-mapping tables and selecting one of the sub-mapping tables as a target sub-mapping table, wherein the target sub-mapping table is used to ma…
Who is the assignee on this patent?
Silicon Motion Inc
What technology area does this patent fall under?
Primary CPC classification G06F3/0608. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue May 19 2020 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 2 related publications on this page (citations in our corpus or others sharing the same primary CPC).