Application-Level Memory Reclaiming for Balanced Background Usage

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improvememory availabilityVSAvoidmemory reclaiming efficiency
Core Design Contradiction:
Quantity of substanceVSProductivity

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.

Inventive Principle:
Principle #3Local quality

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

Engineering Contradiction:
Improveimplementation simplicityVSAvoidmemory allocation accuracy
Core Design Contradiction:
Ease of operationVSReliability

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.

Inventive Principle:
Principle #15Dynamics

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

Engineering Contradiction:
Improvememory management granularityVSAvoidmemory reclaiming efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

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.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20260093622A1Memory reclaiming method and electronic device
Publication Date: 2026.04.02 HONOR DEVICE CO LTD
  • US20260093622A1 patent drawing
  • US20260093622A1 patent drawing
  • US20260093622A1 patent drawing

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.