Data processing method and apparatus

US2022253252A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2022253252-A1
Application numberUS-202217732854-A
CountryUS
Kind codeA1
Filing dateApr 29, 2022
Priority dateOct 31, 2019
Publication dateAug 11, 2022
Grant date

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 data processing method and apparatus are provided. The data processing method is: receiving a write request, where the write request is for requesting to write, to an external memory, first data in a first storage area in an internal memory; writing the first data to a second storage area in the internal memory, where the second storage area is a storage area, in the internal memory, that is reallocated to the first data, and the second storage area is different from the first storage area; sending a response message after the first data is written to the second storage area, where the response message indicates that processing of the write request is completed; and writing the first data in the second storage area to the external memory.

First claim

Opening claim text (preview).

1 . A data processing method performed by a computer system comprising an internal memory and an external memory, the method comprising: receiving a write request for requesting to write, to the external memory, first data in a first storage area in the internal memory; writing the first data to a second storage area in the internal memory, wherein the second storage area in the internal memory, is reallocated to the first data, and the second storage area is different from the first storage area; sending a response message after the first data is written to the second storage area, wherein the response message indicates that processing of the write request is completed; and writing the first data in the second storage area to the external memory. 2 . The method according to claim 1 , wherein after the writing the first data to a second storage area in the internal memory, the method further comprises: adding the write request to a first transaction allocated after a first flush command is received and before a second flush command is received, wherein the first flush command is last received before the write request, wherein the second flush command is first received after the write request, and wherein the writing the first data in the second storage area to the external memory comprises: writing data corresponding to all write requests in the first transaction to the external memory, wherein the data corresponding to all the write requests in the first transaction comprises the first data. 3 . The method according to claim 2 , wherein the writing data corresponding to all write requests in the first transaction to the external memory comprises: combining the first data and data corresponding to all the write requests comprised in the first transaction and whose current storage address is adjacent to a current storage address of the first data, and writing combined data to the external memory. 4 . The method according to claim 2 , wherein the method further comprises: writing data corresponding to all write requests in a second transaction to the external memory after the writing data corresponding to all write requests in the first transaction to the external memory, wherein the second transaction is allocated after the second flush command is received and before a third flush command is received, and wherein the third flush command is first received after the second flush command is received. 5 . The method according to claim 1 , wherein the writing the first data in the second storage area to the external memory comprises: writing the first data in the second storage area to the external memory by using an asynchronous writeback thread. 6 . A data processing apparatus, comprising: a processor and a memory coupled to the processor to store instructions, which when executed by the processor, cause the data processing apparatus to: receive a write request for requesting to write, to the external memory, first data in a first storage area in the internal memory; write the first data to a second storage area in the internal memory, wherein the second storage area, in the internal memory, is reallocated to the first data, and the second storage area is different from the first storage area; send a response message after the first data is written to the second storage area, wherein the response message indicates that processing of the write request is completed; and write the first data in the second storage area to the external memory. 7 . The data processing apparatus according to claim 6 , wherein the processor is further configured to: add the write request to a first transaction allocated after a first flush command is received and before a second flush command is received, wherein the first flush command is last received before the write request, and wherein the second flush command is first received after the write request; and write data corresponding to all write requests in the first transaction to the external memory, wherein the data corresponding to all the write requests in the first transaction comprises the first data. 8 . The data processing apparatus according to claim 7 , wherein the processor is further configured to: combine the first data and data corresponding to all the write requests comprised in the first transaction and whose current storage address is adjacent to a current storage address of the first data, and write combined data to the external memory. 9 . The data processing apparatus according to claim 7 , wherein the processor is further configured to: write data corresponding to all write requests in a second transaction to the external memory after the data corresponding to all the write requests in the first transaction is written to the external memory, wherein the second transaction is allocated after the second flush command is received and before a third flush command is received, and the third flush command is first received after the second flush command is received. 10 . The data processing apparatus according to claim 6 , wherein that the processor is further configured to: write the first data in the second storage area to the external memory by using an asynchronous writeback thread. 11 . A non-transitory machine readable storage medium having instructions stored therein, which when executed by a processor, cause the processor to perform operations, the operations comprising: receiving a write request for requesting to write, to the external memory, first data in a first storage area in the internal memory; writing the first data to a second storage area in the internal memory, wherein the second storage area, in the internal memory, is reallocated to the first data, and the second storage area is different from the first storage area; sending a response message after the first data is written to the second storage area, wherein the response message indicates that processing of the write request is completed; and writing the first data in the second storage area to the external memory. 12 . The machine-readable medium of claim 11 , wherein after the writing the first data to a second storage area in the internal memory, the method further comprises: adding the write request to a first transaction allocated after a first flush command is received and before a second flush command is received, wherein the first flush command is last received before the write request, wherein the second flush command is first received after the write request, and wherein the writing the first data in the second storage area to the external memory comprises: writing data corresponding to all write requests in the first transaction to the external memory, wherein the data corresponding to all the write requests in the first transaction comprises the first data. 13 . The machine-readable medium of claim 12 , wherein the writing data corresponding to all write requests in the first transaction to the external memory comprises: combining the first data and data that is in the data corresponding to all the write requests comprised in the first transaction and whose current storage address is adjacent to a current storage address of the first data, and writing combined data to the external memory. 14 . The machine-readable medium of claim 12 , wherein the method further comprises: writing data corresponding to all write requests in a second transaction to the external memory after the writing data corresponding to all write requests in the first transaction to the external memory, wherein the second transaction is allocated after the second flush command is

Assignees

Inventors

Classifications

  • In host system · CPC title

  • Latency reduction · CPC title

  • in a hierarchical protection system, e.g. privilege levels, memory rings · CPC title

  • Data transfer between cache memory and other subsystems, e.g. storage devices or host systems · CPC title

  • Improving I/O performance · 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 US2022253252A1 cover?
A data processing method and apparatus are provided. The data processing method is: receiving a write request, where the write request is for requesting to write, to an external memory, first data in a first storage area in an internal memory; writing the first data to a second storage area in the internal memory, where the second storage area is a storage area, in the internal memory, that is …
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F3/0659. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Aug 11 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).