Process memory collection method and apparatus
A memory recovery and process technology, applied in the field of memory management, can solve time-consuming problems, achieve the effect of reducing time-consuming and improving resource utilization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] figure 1 The flow chart of the process memory reclamation method provided by Embodiment 1 of the present invention, this embodiment is applicable to the situation where memory reclamation needs to be performed when the memory pressure reaches a certain threshold, and the method can be executed by an electronic device with memory processing capability. Such as smart phones, tablet computers, personal computers (Personal Computer, PC), smart wearable devices, etc., the method specifically includes the following steps:
[0027] Step 110, acquiring at least one physical page corresponding to the target process.
[0028] The target process is any process running in the background of the electronic device. The target process is comprehensively determined according to the time when each process running in the background enters the background and the process priority. For example: determine the first background process as the target process, execute steps 110 to 130, then det...
Embodiment 2
[0036] This embodiment of the method also provides a memory recovery method for a process. As a further description of the above embodiment, step 120, from at least one physical page, find a target physical page that is not used by the target process in the following manner To implement:
[0037] Step 121. Find at least one inactive anonymous page from at least one physical page.
[0038] The active state of the physical page is divided into an active (Active) state and an inactive (inActive) state. The active state indicates that the physical page is being accessed or data is being written. The inactive state means that the physical page is not currently being accessed and is in quiescence.
[0039] Physical pages include anonymous pages, which can be used to represent a process' stack in user mode, etc. The implementation manner of finding the anonymous page from the physical page can be implemented by referring to the prior art.
[0040] Step 122, from at least one inac...
Embodiment 3
[0080] The embodiment of the present invention also provides a process memory recovery device, the device shown is located in an electronic device, the electronic device shown can be a smart phone, a tablet computer, a personal computer, and a smart wearable device, and the device shown is used to realize the above implementation The method provided by the example, such as Figure 6 As shown, the device shown includes:
[0081] A physical page acquisition unit 11, configured to acquire at least one physical page corresponding to the target process;
[0082] A target physical page search unit 12, configured to search for a target physical page that is not used by the target process from the at least one physical page acquired by the physical page acquisition unit 11;
[0083] The target physical page recovery unit 13 is configured to recover the target physical page found by the target physical page search unit 12 .
[0084] Further, such as Figure 7 As shown, the target ph...
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