Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for recovering memories, terminal equipment and computer readable storage medium

A technology for memory reclamation and terminal equipment, which is applied in computing, memory systems, program control design, etc. It can solve the problems of terminal equipment memory reduction, memory occupation, and affecting the operating speed of terminal equipment, and achieve the effect of improving memory recovery efficiency

Active Publication Date: 2018-07-17
MEIZU TECH CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the existing method of memory recovery for a process, the target physical page recovered is only for the target physical page not used by the target process. The target physical page is mainly the physical memory of the target process in the two linked lists INACTIVE_ANON and INACTIVE_FILE. Pages, that is, inactive physical pages, the memory recovery efficiency of this method is very low
[0008] In addition, after the soft restart of the application program, a large number of fragments will be generated, that is, a large amount of memory will be occupied. If the memory is not recovered in time, the amount of memory available for the terminal device will be reduced, which will affect the operating speed of the terminal device.

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
  • Method and device for recovering memories, terminal equipment and computer readable storage medium
  • Method and device for recovering memories, terminal equipment and computer readable storage medium
  • Method and device for recovering memories, terminal equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 4 approach

[0144] Various methods can be used to increase the difficulty of recovering active anonymous pages. For example, you can increase the repentance time of anonymous pages, for example, you can reduce the optional value of activity, or you can increase the reduction in activity. Here, we give an example to the third method. If the third embodiment is used for recovery of anonymous pages, please refer to 6. The fourth embodiment of the present invention to perform memory recovery on the target process of the target application includes the following steps:

[0145] Step S601, setting optional values ​​of physical page activity, including a first value, a second value, a third value and a fourth value.

[0146] Optional values ​​for setting physical page activity, for example, may include a first value, a second value, a third value, and a fourth value, wherein the first value is not higher than the recovery standard, the second value is lower than the third value, and Higher than ...

no. 1 example

[0187] The memory reclamation module 703 can have multiple implementations, and a specific implementation is as Figure 8 As shown, the first embodiment of the memory recovery module 703 in the embodiment of the present invention includes:

[0188] The second acquiring module 801 is configured to acquire a target process corresponding to the target application program, and acquire a target physical page corresponding to the target process.

[0189] The first reading module 802 is used to read the value of the liveness of the target physical page, the liveness of the target physical page is used to mark the liveness of the target physical page, and the value of the liveness of the target physical page is related to the activity of the target physical page The degree is positively related.

[0190] The reducing module 803 is configured to reduce the activity of the target physical page when the activity value of the target physical page is higher than the recycling standard, an...

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 provides a method and device for recovering memories, terminal equipment and a computer readable storage medium. The method includes the steps that an instruction for executing soft restart on a target application program is obtained, and soft restart operation is executed on the target application program; whether execution of the soft restart operation on the target application program is finished is judged, and if yes, the target application program executes memory recovering operation. The device comprises an obtaining module, a soft restart module and a memory recovering module, wherein the obtaining module is used for obtaining the instruction for executing soft restart on the target application program; the soft restart module is used for executing soft restart operation on the target application program; the memory recovering module is used for determining that memory recovering operation is executed on the target application program after execution of soft restart on the target application program is finished. The terminal is provided with a processor and a storage device. The processor can realize the memory recovering method when executing the computer program. The computer program for realizing the method is stored on the computer readable storage medium. Memories of the application program after soft restart can be recovered through the method and device.

Description

technical field [0001] The present invention relates to the field of control of electronic equipment, specifically, a method for realizing memory recycling on a terminal device and a device for realizing the method, and also relates to a terminal device and a computer-readable storage medium for realizing the above method. Background technique [0002] Terminal devices such as smartphones and tablet computers have become the most frequently used electronic devices in people's daily life. People like to install various applications on smart electronic devices, and run a large number of applications on the terminal devices at the same time. During the running of the application, abnormal situations may occur, such as receiving a large number of instructions at the same time and failing to respond in time, causing the application to crash. If the application program continues to run after an exception occurs in the application program, it will cause the application program to o...

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/02
CPCG06F9/5022G06F12/0253
Inventor 王文
Owner MEIZU TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products