Configurable flush operation speed
US-2022342826-A1 · Oct 27, 2022 · US
US12066937B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-12066937-B2 |
| Application number | US-202217746367-A |
| Country | US |
| Kind code | B2 |
| Filing date | May 17, 2022 |
| Priority date | Sep 18, 2021 |
| Publication date | Aug 20, 2024 |
| Grant date | Aug 20, 2024 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
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.
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
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
Caching, prefetching or hoarding of files · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.