Application-Level Memory Reclaiming for Balanced Background Usage
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In electronic devices with memory control subsystem mechanisms, a large amount of data is often loaded back to system memory after being released, affecting memory reclaiming efficiency due to uneven reclaiming of system memory across applications.
Innovation Solution
A memory reclaiming method that differentiates memory reclaim based on application level, adjusting the size of memory to be reclaimed according to the application's activeness, ensuring that active applications are not excessively depleted while inactive applications do not occupy system memory for extended periods.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If a large amount of system memory is reclaimed from background applications, then memory availability is improved, but data from active applications may be quickly reloaded, reducing memory reclaiming efficiency
Solution Approach 1:
The patent applies local quality by differentiating memory reclaiming strategies based on application levels. Instead of uniform memory reclaiming across all applications, the system assigns different reclaiming proportions to applications with different activity levels (foreground, background, dormant). This ensures that actively used applications retain more memory while inactive applications release more memory, thus improving both memory availability and reclaiming efficiency.
2Ease of operation
If memory reclaiming is performed uniformly across all applications, then implementation simplicity is maintained, but active applications may lose necessary memory while inactive applications retain unnecessary memory
Solution Approach 1:
The patent implements dynamics by introducing application level concepts that dynamically adjust memory reclaiming behavior. The system continuously monitors application activity and adjusts the proportion of memory to be reclaimed based on the current application level. This dynamic approach ensures that memory allocation accurately reflects actual application needs while maintaining reasonable implementation complexity through standardized level definitions and automatic adjustment mechanisms.
3Adaptability or versatility
If the memcg mechanism is enabled for memory control, then fine-grained memory management is achieved, but data is frequently loaded back to system memory after release, affecting memory reclaiming efficiency
Solution Approach 1:
The patent applies parameter changes by modifying the memory reclaiming proportion parameter based on application level. Instead of using a fixed reclaiming proportion with the memcg mechanism, the system dynamically adjusts this parameter according to application activity levels. This ensures that the fine-grained memory management capability of memcg is utilized effectively while preventing frequent reloading of active application data, thus improving memory reclaiming efficiency.
Data Source
AI summary
This application provides a memory reclaiming method. The solutions improve memory reclaiming efficiency of an electronic device by enabling a memory control subsystem mechanism. The specific solutions are as follows: A first memory size corresponding to a first application that is run in a background is determined, where the first memory size indicates a size of a memory to be reclaimed from a system memory occupied by the first application, the first memory size decreases as an application level of the first application increases, and the application level indicates activeness of the application during running in the background. The system memory occupied by the first application is reclaimed based on the first memory size.


