Atomic Pool Manager
US-2021149731-A1 · May 20, 2021 · US
US2025315373A1 · US · A1
| Field | Value |
|---|---|
| Publication number | US-2025315373-A1 |
| Application number | US-202418911509-A |
| Country | US |
| Kind code | A1 |
| Filing date | Oct 10, 2024 |
| Priority date | Apr 3, 2024 |
| Publication date | Oct 9, 2025 |
| Grant date | — |
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 are directed to performing a file system check. Such technique involve determining a plurality of unreleased memory pools for a plurality of phases of a file system check by parsing a resource file indicative of an allocation situation of a memory. Such technique further involve determining a list of phases based on the plurality of unreleased memory pools. Such technique further involve performing the file system check based on the list of phases. Accordingly, it is possible to pre-determine an unreleased memory pool based on a resource file and perform a file system check according to the information of the memory pool, which avoids the problems of memory fragmentation and consecutive out-of-memory caused by the unreleased memory pool, thereby solving the out-of-memory error during the execution of the file system check.
Opening claim text (preview).
What is claimed is: 1 . A method for performing a file system check, comprising: determining a plurality of unreleased memory pools for a plurality of phases of a file system check by parsing a resource file indicative of an allocation situation of a memory; determining a list of phases based on the plurality of unreleased memory pools; and performing the file system check based on the list of phases. 2 . The method according to claim 1 , wherein determining the plurality of unreleased memory pools for the plurality of phases of the file system check comprises: determining whether a corresponding phase has a memory fragment based on the resource file; and determining, in response to determining that the corresponding phase has the memory fragment, the plurality of unreleased memory pools causing the memory fragment. 3 . The method according to claim 2 , wherein determining whether the corresponding phase has the memory fragment comprises: acquiring from the resource file an identifier indicative of the memory fragment; determining, in response to the identifier being true, that the memory fragment exists; and determining, in response to the identifier being false, that the memory fragment does not exist. 4 . The method according to claim 3 , further comprising: determining a plurality of pieces of information about a plurality of memory pools in the memory based on previous execution processes of the file system check, wherein information in the plurality of pieces of information comprises a phase identifier, a creation timestamp, a release timestamp, and an address space; and generating the resource file based on the plurality of pieces of information. 5 . The method according to claim 4 , wherein generating the resource file comprises: determining ranking information for the plurality of memory pools at the corresponding phase based on the address space in the information; determining the identifier indicative of the memory fragment based on the release timestamp and the ranking information; and generating the resource file based on the plurality of pieces of information and the identifier. 6 . The method according to claim 4 , further comprising: updating the release timestamp in response to determining that a memory pool in the plurality of memory pools is released. 7 . The method according to claim 1 , wherein determining the list of phases: determining that an unreleased memory pool exists for each of the plurality of phases; and adding, in response to the unreleased memory pool existing in a corresponding phase, an identifier of the unreleased memory pool to the corresponding phase in the list of phases. 8 . The method according to claim 1 , wherein performing the file system check comprises: acquiring, prior to performing a corresponding phase of the file system check, an identifier of the unreleased memory pool corresponding to the corresponding phase from the list of phases; allocating memory space for the unreleased memory pool at a start of the memory; and performing the corresponding phase of the file system check based on the allocated memory space. 9 . The method according to claim 8 , wherein allocating the memory space for the unreleased memory pool comprises: acquiring a space size of the unreleased memory pool from the resource file; and allocating the memory space for the unreleased memory pool based on the space size. 10 . The method according to claim 1 , further comprising: increasing a count value of an abnormality counter in response to existence of an abnormal behavior causing a memory fragment; and generating warning information in response to the count value being greater than a predetermined threshold. 11 . An electronic device, comprising: a processing unit; and a memory coupled to the processing unit and having instructions stored therein that, when executed by the processing unit, perform the following actions: determining a plurality of unreleased memory pools for a plurality of phases of a file system check by parsing a resource file indicative of an allocation situation of a memory; determining a list of phases based on the plurality of unreleased memory pools; and performing the file system check based on the list of phases. 12 . The electronic device according to claim 11 , wherein determining the plurality of unreleased memory pools for the plurality of phases of the file system check comprises: determining whether a corresponding phase has a memory fragment based on the resource file; and determining, in response to determining that the corresponding phase has the memory fragment, the plurality of unreleased memory pools causing the memory fragment. 13 . The electronic device according to claim 12 , wherein determining whether the corresponding phase has the memory fragment comprises: acquiring from the resource file an identifier indicative of the memory fragment; determining, in response to the identifier being true, that the memory fragment exists; and determining, in response to the identifier being false, that the memory fragment does not exist. 14 . The electronic device according to claim 13 , wherein the actions further comprise: determining a plurality of pieces of information about a plurality of memory pools in the memory based on previous execution processes of the file system check, wherein information in the plurality of pieces of information comprises a phase identifier, a creation timestamp, a release timestamp, and an address space; and generating the resource file based on the plurality of pieces of information. 15 . The electronic device according to claim 14 , wherein generating the resource file comprises: determining ranking information for the plurality of memory pools at the corresponding phase based on the address space in the information; determining the identifier indicative of the memory fragment based on the release timestamp and the ranking information; and generating the resource file based on the plurality of pieces of information and the identifier. 16 . The electronic device according to claim 14 , wherein the actions further comprise: updating the release timestamp in response to determining that a memory pool in the plurality of memory pools is released. 17 . The electronic device according to claim 11 , wherein determining the list of phases: determining that an unreleased memory pool exists for each of the plurality of phases; and adding, in response to the unreleased memory pool existing in a corresponding phase, an identifier of the unreleased memory pool to the corresponding phase in the list of phases. 18 . The electronic device according to claim 11 , wherein performing the file system check comprises: acquiring, prior to performing a corresponding phase of the file system check, an identifier of the unreleased memory pool corresponding to the corresponding phase from the list of phases; allocating memory space for the unreleased memory pool at a start of the memory; and performing the corresponding phase of the file system check based on the allocated memory space. 19 . The electronic device according to claim 18 , wherein allocating the memory space for the unreleased memory pool comprises: acquiring a space size of the unreleased memory pool from the resource file; and allocating the memory space for the unreleased memory pool based on the space size. 20 . A computer program product having a non-transitory compute
the resource being the memory · CPC title
Details of further file system functions · CPC title
Free address space management · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.