Application-Level Memory Control Group for Reclaiming Anonymous Pages
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
As the number of opened applications increases on terminal devices, more processes run, and more memory is occupied, leading to a decrease in available system memory, out-of-memory issues, and frame freezing.
Innovation Solution
A memory management method and apparatus that create an application-level memory control group for each application, manage anonymous pages and file pages using least recently used linked lists, and control reclamation ranks and proportions based on application status to improve memory reclamation efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If memory is allocated to more applications, then application diversity increases, but available system memory decreases
Solution Approach 1:
The patent segments memory management into application-level control groups, where each application has its own anonymous page LRU list and file page LRU list. This segmentation allows independent management and reclamation of memory pages per application, enabling the system to maintain multiple applications while efficiently recovering memory when needed.
Solution Approach 2:
The patent changes the state of anonymous pages from a permanent allocated state to a reclaimable state through the LRU mechanism. By tracking usage patterns and automatically reclaiming inactive anonymous pages, the system dynamically adjusts memory allocation, allowing more applications to coexist while maintaining sufficient available memory.
2Quantity of substance
If memory reclamation is performed more aggressively, then available memory increases, but system performance deteriorates due to freezing
Solution Approach 1:
The patent implements self-service memory management through automatic LRU-based reclamation of anonymous pages. The system monitors its own memory usage patterns and autonomously reclaims inactive pages without requiring manual intervention or aggressive external memory management, thus maintaining performance while increasing available memory.
Solution Approach 2:
The patent uses LRU (Least Recently Used) feedback mechanisms to track anonymous page access patterns. This feedback allows the system to intelligently identify which pages are least likely to be needed soon and reclaim them preferentially, balancing memory reclamation with system performance by avoiding reclamation of frequently accessed pages.
3Device complexity
If anonymous pages are managed at system level, then memory reclamation is simplified, but reclamation efficiency decreases
Solution Approach 1:
The patent segments anonymous page management into application-level control groups with separate LRU lists for each application. While this increases structural complexity, it dramatically improves reclamation efficiency by allowing targeted reclamation of anonymous pages from specific applications without affecting others, enabling more precise and effective memory management.
Solution Approach 2:
The patent introduces an application-level dimension to memory management, creating a hierarchical structure with application-level LRU lists and global LRU lists. This dimensional change allows the system to manage anonymous pages both individually per application and collectively, improving reclamation efficiency through multi-level control.
Data Source
AI summary
An application-level memory control group of a first application may be created when the first application is opened. An anonymous page of the first application is added to a least recently used linked list of the application-level memory control group, and a file page of the first application is added to a global least recently used linked list. An application-level memory control group is created in a dimension of an application, and an anonymous page of the application is managed in a refined manner. In addition, a file page of the application-level memory control group may be managed based on a global least recently used linked list.


