OS Resource Allocation via System-State Inversion
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing terminal device resource allocation methods are inefficient as they require target applications to deliver scenario information to the operating system, leading to increased signaling overheads and reduced refinement in resource adjustments.
Innovation Solution
The operating system acquires system-state information to determine the internal running scenario of a target application and adjusts resource allocation based on a performance improvement strategy, eliminating the need for scenario information from the application.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the target application delivers scenario information to the operating system for resource allocation, then the operating system can perform resource adjustment, but the signaling overheads increase and the refinement of resource adjustment decreases
Solution Approach 1:
Instead of the application delivering scenario information to the operating system, the operating system actively acquires system-state information directly from the terminal device and determines the internal running scenario itself. This inversion of the information flow eliminates the need for application-to-OS signaling while maintaining accurate scenario identification for resource allocation.
Solution Approach 2:
The operating system performs self-service by acquiring system-state information directly from the terminal device and independently determining the internal running scenario without relying on scenario information from the application. This self-service approach reduces signaling overheads while maintaining resource allocation accuracy.
2Productivity
If the target application delivers scenario information to the operating system, then resource allocation can be performed, but the refinement in resource adjustments is reduced
Solution Approach 1:
The operating system inverts the traditional approach by actively acquiring system-state information and determining scenarios itself rather than relying on application-provided information. This enables more refined resource adjustments through direct system-state monitoring.
Solution Approach 2:
The operating system implements a feedback mechanism by continuously acquiring system-state information from the terminal device and using this feedback to accurately determine internal running scenarios and perform refined resource adjustments, improving measurement precision for resource allocation.
3Loss of information
If the operating system acquires system-state information and determines internal running scenario directly, then signaling overheads are reduced, but the complexity of the operating system increases
Solution Approach 1:
The operating system applies multi-functionality by using its existing system-state information acquisition capabilities (already present for general system monitoring) to also determine internal running scenarios. This universal use of existing functions reduces the need for additional specialized components, minimizing the increase in operating system complexity.
Data Source
AI summary
A method for resource allocation and a terminal device are provided. The method includes the following. System-state information of a terminal device is acquired, and the terminal device has a target application running in a foreground of the terminal device. An internal running scenario of the target application is determined according to the system-state information. A performance improvement strategy corresponding to the internal running scenario is acquired. Allocation of system resources for the internal running scenario is adjusted according to the performance improvement strategy.


