Data writing method and storage device

US11237765B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11237765-B2
Application numberUS-202016854109-A
CountryUS
Kind codeB2
Filing dateApr 21, 2020
Priority dateOct 25, 2017
Publication dateFeb 1, 2022
Grant dateFeb 1, 2022

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.

This application provides a data writing method and a storage device. The method is applied to a solid-state storage device SSD, and the method includes: receiving a write command, where the write command carries a type of to-be-written data; determining, based on the type of to-be-written data, a type of storage area that is in an SSD and into which the to-be-written data is written, where the SSD includes a plurality of types of storage areas; determining, based on the type of storage area, a target storage area into which the to-be-written data is written; and writing the to-be-written data into the target storage area. In embodiments of this application, data processing efficiency can be improved.

First claim

Opening claim text (preview).

What is claimed is: 1. A data writing method, applied to a solid-state storage device (SSD), wherein the method comprises: receiving a write command, wherein the write command carries a type of to-be-written data; determining, based on the type of to-be-written data, a type of storage area that is in the SSD and into which the to-be-written data is written, wherein the SSD comprises a plurality of types of storage areas; and writing the to-be-written data into a storage area corresponding to the type of storage area. 2. The method according to claim 1 , wherein the SSD stores a correspondence between a data type and a storage area type, and the determining, based on the type of to-be-written data, the type of storage area that is in the SSD and into which the to-be-written data is written comprises: determining, based on the type of to-be-written data and the correspondence, a type of target storage area into which the to-be-written data is written. 3. The method according to claim 2 , wherein the SSD comprises a plurality of storage blocks, the SSD is divided into different types of storage areas based on types of the storage blocks, and the correspondence is a correspondence between the data type and a storage block type. 4. The method according to claim 3 , wherein the SSD comprises at least two of an SLC (single level cell) area, an MLC (multi-level cell) area, a TLC (triple level cell) area, and a QLC (quad level cell) area, performance of the SLC area, the MLC area, the TLC area, and the QLC area sequentially decreases, and before the determining, based on the type of storage area, the target storage area into which the to-be-written data is written, the method further comprises: if there is no idle storage page in all storage blocks in a storage area corresponding to the type of storage area that is in the SSD and into which the to-be-written data is written, converting a type of at least one block that comprises an idle storage page and that is in a storage area having lower performance than a storage area corresponding to the type of storage area that is in the SSD and into which the to-be-written data is written to a type that is the same as a type of the storage area corresponding to the type of storage area that is in the SSD and into which the to-be-written data is written. 5. The method according to claim 2 , wherein the SSD comprises a plurality of storage blocks, each storage block comprises at least one type of storage page, and the correspondence is a correspondence between the data type and a storage page type. 6. The method according to claim 5 , wherein different types of each storage pages are corresponding to one storage list, and each storage list records one type of storage page; and the determining, based on the type of storage area, the target storage area into which the to-be-written data is written comprises: finding, based on the storage page type, an available storage page in a storage list corresponding to the storage page type, and using the available storage page as the target storage area; and if there is an available storage page in the storage list, using the available storage page as the target storage area; or if there is no available storage page in the storage list, obtaining an idle storage block in the SSD, and using a first storage page in the idle storage block as the target storage area. 7. The method according to claim 5 , wherein the storage block comprises at least two of an LSB (least significant bit) page, a CSB (central significant bit) page, and an MSB (most significant bit) page, performance of the LSB page, the CSB page, and the MSB page sequentially decreases, and the determining, based on the type of storage area, the target storage area into which the to-be-written data is written comprises: if a storage area corresponding the type of storage area that is in the SSD and into which the to-be-written data is written is the MSB page or the CSB page, and there is no available storage page in the storage area corresponding the type of storage area that is in the SSD and into which the to-be-written data is written, determining, as the target storage area, at least one available storage page having higher performance than the storage area corresponding the type of storage area that is in the SSD and into which the to-be-written data is written. 8. A solid-state device SSD, comprising: a memory storing instructions; and a processor coupled to the memory to execute the instructions to: receive a write command, wherein the write command carries a type of to-be-written data; determine, based on the type of to-be-written data, a type of storage area that is in the SSD and into which the to-be-written data is written, wherein the SSD comprises a plurality of types of storage areas; and write the to-be-written data into a storage area corresponding to the type of storage area. 9. The SSD according to claim 8 , wherein the SSD stores a correspondence between a data type and a storage area type, and when performing the operation of determining the type of storage area that is in the SSD and into which the to-be-written data is written, the processor is configured to: determine, based on the type of to-be-written data and the correspondence, a type of target storage area into which the to-be-written data is written. 10. The SSD according to claim 9 , wherein the SSD comprises a plurality of storage blocks, the SSD is divided into different types of storage areas based on types of the storage blocks, and the correspondence is a correspondence between the data type and a storage block type. 11. The SSD according to claim 10 , wherein the SSD comprises at least two of an SLC (single level cell) area, an MLC (multi-level cell) area, a TLC (triple level cell) area, and a QLC (quad level cell) area, performance of the SLC area, the MLC area, the TLC area, and the QLC area sequentially decreases, and if there is no idle storage page in all storage blocks in a storage area corresponding to the type of storage area that is in the SSD and into which the to-be-written data is written, the processor is further configured to convert a type of at least one block that comprises an idle storage page and that is in a storage area having lower performance than the type of storage area that is in the SSD and into which the to-be-written data is written to a type that is the same as a type of storage area of the type of storage area that is in the SSD and into which the to-be-written data is written. 12. The SSD according to claim 9 , wherein the SSD comprises a plurality of storage blocks, each storage block comprises at least one type of storage page, the SSD is divided into different types of storage areas based on storage page types, and the correspondence is a correspondence between the data type and the storage page type. 13. The SSD according to claim 12 , wherein different types of each storage pages are corresponding to one storage list, and each storage list records one type of storage page; and when performing the operation of determining the target storage area into which the to-be-written data is written, the processor is configured to: find, based on the storage page type, an available storage page in a storage list corresponding to the storage page type, and use the available storage page as the target storage area; and if there is an available storage page in the storage list, use the available storage page as the target storage area; or if there is no available storage page in the storage list, obtain an idle storage block in the SSD, and use a first storage page in the idle storage block as the target

Assignees

Inventors

Classifications

  • Floating-gate IGFETs · CPC title

  • Programming or data input circuits · CPC title

  • G06F3/0679Primary

    Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP] · CPC title

  • Improving or facilitating administration, e.g. storage management · CPC title

  • G06F3/0659Primary

    Command handling arrangements, e.g. command buffers, queues, command scheduling · 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 US11237765B2 cover?
This application provides a data writing method and a storage device. The method is applied to a solid-state storage device SSD, and the method includes: receiving a write command, where the write command carries a type of to-be-written data; determining, based on the type of to-be-written data, a type of storage area that is in an SSD and into which the to-be-written data is written, where the…
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F3/0679. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Feb 01 2022 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 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).