File System Check Memory Pool Management
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
File system checks often fail due to out-of-memory (OOM) errors caused by unreleased memory pools, leading to memory fragmentation and affecting user experience.
Innovation Solution
A method to determine unreleased memory pools during file system check phases by parsing a resource file, creating a list of phases, and performing the check based on this list to avoid memory fragmentation and OOM errors.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If file system check is performed without managing memory pools, then the check can be executed simply, but out-of-memory errors occur causing memory fragmentation and check failure
Solution Approach 1:
The patent applies preliminary action by determining unreleased memory pools before the file system check phases are executed. The system parses resource files to identify memory pools that will not be released during check phases, and pre-adjusts memory allocation strategies accordingly. This prevents out-of-memory errors before they occur during the actual check operation.
Solution Approach 2:
The patent introduces an intermediary mechanism - a memory pool management system that acts as a mediator between the file system check process and the memory allocation system. This intermediary tracks memory pool release status, identifies unreleased pools, and adjusts allocation strategies to prevent OOM errors without requiring changes to the core check algorithm.
2Productivity
If memory pools are not released after each phase, then the check process is simpler, but memory fragmentation increases leading to OOM errors
Solution Approach 1:
The patent implements feedback by continuously monitoring memory pool release status during the check phases. The system parses resource files to obtain phase information, tracks which memory pools are released after each phase, and uses this feedback to identify unreleased pools. This feedback mechanism enables the system to adjust memory allocation dynamically and prevent fragmentation without slowing down the check process.
Data Source
AI summary
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.


