Method, electronic device and computer program product for flushing metadata

US12066937B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12066937-B2
Application numberUS-202217746367-A
CountryUS
Kind codeB2
Filing dateMay 17, 2022
Priority dateSep 18, 2021
Publication dateAug 20, 2024
Grant dateAug 20, 2024

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.

Techniques for flushing metadata involve: receiving a flushing request, the flushing request instructing to flush metadata in at least one cache region to a persistent storage device; acquiring a plurality of target indicators, the target indicator at least indicating a type of a cache region and a block in the cache region, where the plurality of target indicators are classified based on types of cache regions indicated by the target indicators among the plurality of target indicators; determining, from the plurality of target indicators, at least one target indicator of the same type as the at least one cache region; and flushing metadata in a block indicated by the at least one target indicator. Such techniques avoid flushing a cache region that does not need to be flushed, shortens the response time to the flushing request, and reduces the occupancy of system resources.

First claim

Opening claim text (preview).

The invention claimed is: 1. A method for flushing metadata in a file system, comprising: receiving a flushing request, the flushing request instructing to flush metadata in at least one cache region to a persistent storage device; acquiring a plurality of target indicators, the target indicator at least indicating a type of a cache region and a block in the cache region, wherein the plurality of target indicators are classified based on types of cache regions indicated by the target indicators among the plurality of target indicators; determining, from the plurality of target indicators, at least one target indicator of the same type as the at least one cache region; and flushing metadata in a block indicated by the at least one target indicator; wherein the plurality of target indicators are classified as follows: establishing, based on the number of types of cache regions indicated by the plurality of target indicators, position queues corresponding to the number of types; and putting, based on the type of the cache region indicated by each target indicator among the plurality of target indicators, the target indicator into a position queue of a corresponding type. 2. The method according to claim 1 , wherein the method further comprises: flushing, in response to the flushing request, a plurality of cache regions simultaneously for a plurality of the position queues. 3. The method according to claim 1 wherein receiving the flushing request includes: acquiring the flushing request in response to a size of a log device reaching a threshold, the log device being constructed and arranged to record a summary of metadata changes from a set of transactions. 4. The method according to claim 1 wherein receiving the flushing request includes: acquiring the flushing request in response to the at least one cache region reaching a traffic limit. 5. The method according to claim 1 wherein receiving the flushing request includes: acquiring the flushing request in response to expiration of a timer reaching a preset time. 6. A method for flushing metadata in a file system, comprising: receiving a flushing request, the flushing request instructing to flush metadata in at least one cache region to a persistent storage device; acquiring a plurality of target indicators, the target indicator at least indicating a type of a cache region and a block in the cache region, wherein the plurality of target indicators are classified based on types of cache regions indicated by the target indicators among the plurality of target indicators; determining, from the plurality of target indicators, at least one target indicator of the same type as the at least one cache region; and flushing metadata in a block indicated by the at least one target indicator; wherein the plurality of target indicators are classified as follows: establishing a storage queue; storing the acquired plurality of target indicators in the storage queue; establishing, based on the number of types of cache regions indicated by the plurality of target indicators, position queues corresponding to the number of types; and recording, based on the type of the cache region indicated by each target indicator among the plurality of target indicators, a storage position of the target indicator in the storage queue into a position queue of a corresponding type. 7. The method according to claim 6 , wherein the method further comprises: flushing, in response to the flushing request, a plurality of cache regions simultaneously for a plurality of the position queues. 8. The method according to claim 6 , wherein the method further comprises: determining whether a second block indicated by a second target indicator exists in a strip where a first block indicated by a first target indicator among the at least one target indicator is located, a first storage position of the first target indicator in the storage queue and a second storage position of the second target indicator in the storage queue being recorded in the same position queue; and flushing, in response to determining that the second block indicated by the second target indicator exists in the strip where the first block is located, metadata in the second block and metadata in the first block using the same thread. 9. The method according to claim 6 wherein receiving the flushing request includes: acquiring the flushing request in response to a size of a log device reaching a threshold, the log device being constructed and arranged to record a summary of metadata changes from a set of transactions. 10. The method according to claim 6 wherein receiving the flushing request includes: acquiring the flushing request in response to the at least one cache region reaching a traffic limit. 11. The method according to claim 6 wherein receiving the flushing request includes: acquiring the flushing request in response to expiration of a timer reaching a preset time. 12. An electronic device, comprising: a processor; and a memory coupled to the processor, the memory containing instructions stored therein, the instructions, when executed by the processor, causing the device to execute an action, the action comprising: receiving a flushing request, the flushing request instructing to flush metadata in at least one cache region to a persistent storage device; acquiring a plurality of target indicators, the target indicator at least indicating a type of a cache region and a block in the cache region, wherein the plurality of target indicators are classified based on types of cache regions indicated by the target indicators among the plurality of target indicators; determining, from the plurality of target indicators, at least one target indicator of the same type as the at least one cache region; and flushing metadata in a block indicated by the at least one target indicator; wherein the plurality of target indicators are classified as follows: establishing, based on the number of types of cache regions indicated by the plurality of target indicators, the position queues corresponding to the number of types; and putting, based on the type of the cache region indicated by each target indicator among the plurality of target indicators, the target indicator into a position queue of a corresponding type. 13. The device according to claim 12 , wherein the action further comprises: flushing, in response to the flushing request, a plurality of cache regions simultaneously for a plurality of the position queues. 14. The device according to claim 12 wherein receiving the flushing request includes: acquiring the flushing request in response to a size of a log device reaching a threshold, the log device being constructed and arranged to record a summary of metadata changes from a set of transactions. 15. The device according to claim 12 wherein receiving the flushing request includes: acquiring the flushing request in response to the at least one cache region reaching a traffic limit. 16. The device according to claim 12 wherein receiving the flushing request includes: acquiring the flushing request in response to expiration of a timer reaching a preset time. 17. An electronic device, comprising: a processor; and a memory coupled to the processor, the memory containing instructions stored therein, the instructions, when executed by the processor, causing the device to execute an action, the action comprising: receiving a flushing request, the flushing request instructing to flush metadata in at least one cache region to a persistent st

Assignees

Inventors

Classifications

  • Command handling arrangements, e.g. command buffers, queues, command scheduling · CPC title

  • Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS] · CPC title

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

  • Details of cache memory · CPC title

  • G06F16/172Primary

    Caching, prefetching or hoarding of files · 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 US12066937B2 cover?
Techniques for flushing metadata involve: receiving a flushing request, the flushing request instructing to flush metadata in at least one cache region to a persistent storage device; acquiring a plurality of target indicators, the target indicator at least indicating a type of a cache region and a block in the cache region, where the plurality of target indicators are classified based on types…
Who is the assignee on this patent?
Emc Ip Holding Co Llc
What technology area does this patent fall under?
Primary CPC classification G06F16/172. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 20 2024 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 7 related publications on this page (citations in our corpus or others sharing the same primary CPC).