Resource Pool Database for Activity-Based System Reclaiming
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional resource reclaiming processes in electronic devices face challenges such as inefficient allocation of CPU, memory, and network bandwidth, leading to delays, app crashes, and poor user interaction due to high request volumes and inadequate consideration of resource impact on other requests.
Innovation Solution
A method and system utilizing a Reinforcement Learning (RL) model and a resource pool database to reclaim system resources by identifying activity initialization, monitoring resource consumption, and storing combinations of activities and applications with their resource consumption. This approach allows for the efficient adjustment of resource allocation based on the specific needs of each activity, preventing system overload.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If conventional resource reclaiming processes fulfill recent requests without considering impact on other requests, then resource allocation speed is improved, but system stability deteriorates due to resource contention and thread blocks
Solution Approach 1:
The system performs preliminary monitoring of resource consumption for each activity-application combination and stores this data in advance in a resource pool database. When a resource reclaim request arrives, the system immediately queries the pre-stored data to make rapid allocation decisions without needing to monitor current consumption in real-time, thus achieving both speed and stability
Solution Approach 2:
The resource pool is segmented into multiple independent pools, each dedicated to a specific activity-application combination. This segmentation prevents resource contention between different combinations, as each pool operates independently with its own allocated resources, eliminating thread blocks while maintaining fast allocation within each segment
2Measurement precision
If resource release starts only after current allocation request is completed, then resource allocation accuracy is improved, but resource utilization efficiency deteriorates due to significant delays
Solution Approach 1:
The system monitors and records resource consumption for each activity-application combination in advance, storing this information in the resource pool database before any reclaim request occurs. This preliminary data collection enables the system to make accurate resource allocation decisions immediately when requests arrive, without waiting for current allocations to complete
Solution Approach 2:
The monitoring of resource consumption continues continuously in the background for all activities, ensuring that the resource pool database is always up-to-date with current consumption patterns. This continuous monitoring allows the system to maintain accurate allocation data without interrupting or delaying any allocation requests, achieving both precision and efficiency simultaneously
3Measurement precision
If the system monitors and stores resource consumption for each activity-application combination, then resource allocation precision is improved, but system complexity increases due to database management overhead
Solution Approach 1:
The resource pool database serves multiple functions simultaneously: it stores resource consumption data for monitoring, provides allocation reference data for decision-making, and acts as a cache for rapid query responses. This multi-functionality reduces the need for separate systems for each purpose, thereby managing complexity while maintaining high allocation precision
Solution Approach 2:
Instead of implementing complex real-time monitoring and calculation systems, the patent creates simplified copies of resource consumption data in the database based on pre-collected monitoring information. These copied data structures enable rapid querying and decision-making without requiring complex real-time computation, reducing system complexity while maintaining allocation precision
Data Source
AI summary
A method and a system for reclaiming system resources in an electronic device are provided. The method includes identifying an initialization of an activity corresponding to a first application associated with the electronic device, determining whether a combination of the activity and the first application is defined in a resource pool database, upon determining that the combination of the activity and the first application is not defined in the resource pool database: monitoring resource consumption by the activity, and storing the combination of the activity and the first application with the monitored resource consumption in the resource pool database, and upon determining that the combination of the activity and the first application is defined in the resource pool database, reclaiming the system resources corresponding the combination of the activity and the first application.


