Memory control method and device
A technology of memory control and memory, which is applied in the direction of program control design, multi-program device, memory address/allocation/relocation, etc. It can solve problems such as unbalanced, unable to reflect logical memory occupation, unable to meet the requirements of fine memory management, etc. , to effectively utilize hardware resources and improve user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] This embodiment provides a memory control method, such as figure 2 As shown, the method includes the following steps:
[0060] In step S100, the system initializes parameters. The initialization is mainly to set thresholds based on each stage of the target stage curve. The thresholds include aggressive growth thresholds, slow growth thresholds, and remaining memory thresholds.
[0061] The aggressive growth threshold and the gentle growth threshold are used to divide the aggressive growth stage and the gentle growth stage of the target stage curve. When the memory value occupied by the application is less than the aggressive growth threshold, the application is in the aggressive growth stage of the target stage curve. That is, when the application is in the foreground and the memory usage is below this threshold, it is the aggressive growth phase.
[0062] When the memory value of the application is greater than the aggressive growth threshold and smaller than the gen...
Embodiment 2
[0082] This embodiment provides an application memory control method, such as image 3 As shown, the method includes the following steps:
[0083] S201. Create a memory checker, where the memory checker runs on an independent thread.
[0084] S202. Receive a memory check request and trigger a memory check event.
[0085] S203, judging whether the application is running in the foreground, if yes, go to step S204, if not, go to step S205.
[0086] S204. Compare the size relationship between the amount of memory occupied by the application, the amount of remaining system memory, the amount of remaining virtual memory in the system, and the preset stage threshold, and perform memory control according to the comparison result; the preset stage threshold is established based on the application memory target stage curve .
[0087] S205. Perform memory recovery of corresponding intensity according to the system memory event level.
[0088] Before the step S201, a system initializati...
Embodiment 3
[0110] This embodiment provides a memory control device, such as Figure 6 As shown, the device includes the following modules:
[0111] A memory checker creation module for creating a memory checker, the memory checker running on an independent thread;
[0112] A memory check trigger module, configured to receive a memory check request and trigger a memory check event;
[0113] An application state judging module, configured to judge whether the application is running in the foreground;
[0114] The foreground memory control module is used to compare the relationship between the amount of memory occupied by the application, the amount of remaining system memory, the amount of remaining virtual memory in the system, and the preset stage threshold, and perform memory control according to the comparison result; the preset stage threshold is based on the application The memory target phase curve is established;
[0115] The background memory control module is used to reclaim m...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com