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

Active Publication Date: 2015-12-16
THUNDERSOFT
View PDF4 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, after closing the process and reclaiming all the resources of the process, when the process that ...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Process memory collection method and apparatus
  • Process memory collection method and apparatus
  • Process memory collection method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a process memory recovery method and apparatus. The method comprises: obtaining at least one physical page corresponding to a target process; looking for the target physical page which is not used by the target process from the at least one physical page; and recovering the target physical page. According to the process memory recovery method and apparatus, the physical pages corresponding to the target process are looked for, the target physical page which is not used by the target process is found from the physical pages, and the target physical page is recovered. A whole system-oriented memory recovery mode, a mode for directly killing the process or the like is provided in the prior art. According to the process memory recovery method and apparatus, the target physical page which is not used by the target process can be recovered, so that the recovery of the target physical page is realized while the operation of the target process is not influenced, the time consumption is reduced, and the resource utilization rate is increased.

Description

technical field [0001] Embodiments of the present invention relate to memory management technologies, and in particular to a process memory recovery method and device. Background technique [0002] As the number of software running on the terminal increases, the memory occupied by the software also increases accordingly. Since the existing systems all support parallel operation of multiple processes, when the memory occupied by the running process reaches a predetermined threshold, the system starts memory recovery to provide sufficient memory for the new process. [0003] Currently, in the Android system, process resources are recycled by killing processes to save memory. However, after closing the process and reclaiming all the resources of the process, when the process that needs to be closed is opened again, operations such as memory need to be re-applied, resulting in time-consuming. Contents of the invention [0004] The invention provides a method and device for r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/50G06F12/08
Inventor 杨莹莹潘达宇
Owner THUNDERSOFT
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products