Memory Page Reclamation via Idle Duration Thresholds

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 significant reduction of operation speed when the reclaimed memory is reloaded, affecting the efficiency of foreground applications due to limited memory capacity.

Innovation Solution

A method that acquires reclaimable memory pages, determines their idle duration, and selectively reclaims those exceeding a threshold, thereby optimizing memory usage without significantly impacting foreground applications.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If all memory pages occupied by a background application are completely reclaimed, then memory capacity for foreground applications is improved, but the operation speed of the reclaimed application is significantly reduced

Engineering Contradiction:
Improvememory capacityVSAvoidoperation speed
Core Design Contradiction:
Quantity of substanceVSSpeed

Solution Approach 1:

The patent segments memory pages into different categories (reclaimable and non-reclaimable) based on their idle duration. By dividing memory management into granular pages rather than treating all memory uniformly, the system can selectively reclaim only those pages that have been idle beyond a threshold, thus freeing memory capacity while preserving frequently used pages that would otherwise cause slow reloads.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a duration threshold parameter to dynamically determine which memory pages are suitable for reclamation. By changing the parameter from binary (reclaim/not reclaim) to a threshold-based continuous parameter (idle duration), the system optimizes the balance between memory capacity availability and application restart performance.

Inventive Principle:
Principle #35Parameter changes

2Quantity of substance

If memory is reclaimed from background applications, then memory availability for foreground applications increases, but the idle duration of memory pages varies causing selective reclamation complexity

Engineering Contradiction:
Improvememory availabilityVSAvoidreclamation complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The patent implements a feedback mechanism by monitoring the idle duration of each memory page and using this information to make reclamation decisions. The system continuously tracks how long each page has been unused and compares it against a threshold, creating a closed-loop control system that automatically adjusts memory reclamation based on actual usage patterns.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

Each memory page essentially serves itself by having its idle duration automatically tracked and compared against the threshold. The system self-manages memory reclamation without requiring complex external intervention, as the duration-based criterion naturally identifies candidates for reclamation.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS10698837B2Memory processing method and device and storage medium
Publication Date: 2020.06.30 GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
  • US10698837B2 patent drawing
  • US10698837B2 patent drawing
  • US10698837B2 patent drawing

AI summary

The disclosure relates to a method for processing a memory and apparatus, an electronic device, and a computer-readable storage medium. The method includes acquiring reclaimable memory pages occupied by an application to be processed; acquiring an idle duration of the application to be processed for each reclaimable memory page; determining a duration threshold according to the idle durations for the reclaimable memory pages; and selecting from the reclaimable memory pages a memory page for which the idle duration exceeds the duration threshold and reclaiming the memory page. The above-mentioned method for processing a memory and apparatus, electronic device and computer-readable storage medium may minimize the adverse impact on each application, thereby maintaining the balance between reclaiming and operation of an application memory to be processed.