Memory recovery method and device

A technology of memory recovery and memory, which is applied in the computer field, can solve problems such as untimely memory recovery and application lag, and achieve the effect of ensuring normal use and speeding up the frequency of memory recovery

Active Publication Date: 2016-06-22
HUAWEI TECH CO LTD
View PDF6 Cites 71 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a method and device for memory recovery, which is used to s

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
  • Memory recovery method and device
  • Memory recovery method and device
  • Memory recovery method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0089] Such as figure 2 As shown, it is a flow chart of the memory recovery method provided in Embodiment 1 of the present application, and the following steps are performed in the user mode:

[0090] S201: Monitor information about applications installed in the terminal being operated and used by the user and memory occupation information.

[0091] Here, the memory usage information may include the memory size occupied by the application when it is running, and the information about the application being used by the user may include the user's usage frequency, usage time period, usage duration, etc. of the application.

[0092] In the specific implementation, the monitoring process can be used in the user state to monitor the running status of each application in the terminal system and the memory size occupied by the application in real time, and the running status of the application obtained through monitoring can determine the user's usage frequency and usage time of the ...

Embodiment 2

[0102] In the following, a preferred implementation manner of the present application is introduced: the memory recovery time interval is determined by counting the information about the applications installed in the terminal being operated and used by the user and the memory usage information, and the memory recovery is performed based on the determined memory recovery time interval.

[0103] Such as image 3 As shown, it is a flow chart of the memory recovery method provided in Embodiment 2 of the present application, and the following steps are performed in the user mode:

[0104] S301: Monitor information about applications installed in the terminal being operated and used by the user and memory usage information.

[0105] In the specific implementation, through real-time monitoring of the running status of each application in the terminal system in the user mode, statistics of the user's use frequency of the application, the use time period and other information about the...

Embodiment 3

[0116] In order to further optimize the memory reclamation strategy and ensure the timeliness and rationality of memory reclamation, the embodiment of the present application further provides an implementation manner of performing memory reclamation using various memory reclamation conditions.

[0117] Such as Figure 4 As shown, it is a flow chart of the memory recovery method provided in Embodiment 3 of the present application, which is executed in user mode:

[0118] S401: Monitor information about applications installed in the terminal being operated and used by the user and memory usage information.

[0119] S402: Determine a memory recovery time interval according to information about applications installed in the terminal being operated and used by the user and memory occupation information.

[0120] S403: When any one or more of the following conditions 1 to 4 is met, trigger the memory recovery process of S404, and when the fifth condition is met, trigger the memory ...

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 relates to the technical field of computers, and in particular relates to a memory recovery method and device, used for solving the problem that the application jamming problem is easily caused due to the fact that memory recovery is not in time. The memory recovery method provided by the invention comprises the following steps of: monitoring operation and use information of applications installed in a terminal by users and memory usage information; and determining that a memory recovery condition is satisfied currently according to at least one of the operation and use information of the applications installed in the terminal by users and the memory usage information, determining the application, the memory of which is to be recovered, in currently operated applications of the terminal according to the operation and use information of the currently operated applications in the terminal and the memory usage information, and performing memory recovery by invoking a memory recovery interface provided by a kernel mode.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a memory recovery method and device. Background technique [0002] For the consideration of production cost, the memory capacity of the terminal equipment is often relatively small, mostly 1-2G. At present, the kernel's demand for application memory is based on the principle of satisfying as much as possible, which leads to applications (such as cameras) that consume relatively large memory on mobile phones and other terminal products often fail to apply for enough memory during startup and operation. The memory (for example, some applications will instantly apply for 300MB to 500MB of memory) is stuck, and even causes the application to exit and restart repeatedly. [0003] The memory reclamation strategy of the Linux system is triggered when the memory is insufficient. For example, when an application is started or switched to the foreground interface, the appl...

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): G06F12/02
CPCG06F12/0253G06F12/02G06F11/34G06F2212/7205G06F9/50G06F12/023G06F2212/1024G06F2212/1044
Inventor 王斌田裘稀石
Owner HUAWEI TECH CO LTD
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