Memory Page Reclamation Proportion for Background Apps

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for reclaiming memory occupied by background applications on electronic devices often result in reduced operation speed of foreground applications due to the need to reload all reclaimed memories, leading to inefficiencies in memory management.

Innovation Solution

A method and device that determine reclaimable memory pages and a reclaiming proportion for each application, allowing selective reclamation of memory pages based on application type and restarting duration to minimize the impact on foreground applications, thereby improving overall system efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If all reclaimable memory pages of a background application are completely reclaimed, then the memory available for foreground applications is increased, but the operation speed of the memory-reclaimed application is remarkably reduced due to complete reload requirements

Engineering Contradiction:
Improveavailable memoryVSAvoidoperation speed
Core Design Contradiction:
Quantity of substanceVSSpeed

Solution Approach 1:

The patent applies partial action by reclaiming only a portion of the reclaimable memory pages rather than all of them. The system determines a reclaiming proportion (e.g., 50% or 70%) and reclaims that specific percentage of memory pages, leaving the remainder intact. This partial reclamation provides sufficient memory for foreground applications while preserving enough background application memory to avoid complete reload, thus balancing available memory increase with operation speed maintenance.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent applies local quality by differentiating the treatment of memory pages based on their characteristics and usage patterns. Instead of uniformly reclaiming all reclaimable memory pages, the system identifies specific subsets of pages (e.g., least recently used pages, pages with lower priority) and applies reclamation selectively. This localized approach ensures that critical memory portions are preserved while non-critical portions are reclaimed, resolving the contradiction between memory availability and operation speed.

Inventive Principle:
Principle #3Local quality

2Productivity

If a large proportion of memory pages are reclaimed to improve foreground application efficiency, then the memory available for foreground applications increases, but the restarting duration of the background application increases significantly

Engineering Contradiction:
Improveforeground application efficiencyVSAvoidrestarting duration
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent implements partial action by controlling the reclaiming proportion to fall within an optimal range (e.g., 50%-70%) rather than reclaiming all available memory pages. This controlled partial reclamation provides sufficient memory resources for foreground application efficiency while preserving enough memory in the background application to minimize restarting duration when the application needs to resume operation.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent applies parameter changes by dynamically adjusting the reclaiming proportion based on application characteristics, system state, and performance requirements. The system modifies the reclamation parameter (proportion) to optimize the balance between foreground efficiency and background restart time, rather than using a fixed reclamation policy. This allows adaptive tuning of memory reclamation to achieve both objectives.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentEP3506105B1Method and device for processing a memory and storage medium
Publication Date: 2020.07.29 GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
  • EP3506105B1 patent drawingFigure 1
  • EP3506105B1 patent drawingFigure 2~3
  • EP3506105B1 patent drawingFigure 4A~4B

AI summary

A method and device for processing a memory, and a computer-readable storage medium are provided. In the method, reclaimable memory pages occupied by an application to be processed are determined, a reclaiming proportion corresponding to the application to be processed is determined, a reclaiming number is determined according to the reclaimable memory pages and the reclaiming proportion, and the reclaiming number of memory pages from the reclaimable memory pages are selected and reclaimed.