Unlock instant, AI-driven research and patent intelligence for your innovation.

Terminal control method and device, terminal equipment, and computer-readable storage medium

A technology of terminal equipment and control methods, which is applied in the direction of program control design, calculation, multi-programming device, etc., can solve the problems of not calculating the amount of memory, low efficiency of memory recovery, unclear amount of memory recovered by terminal equipment, etc., to achieve improvement The effect of memory recovery efficiency

Active Publication Date: 2021-02-19
MEIZU TECH CO LTD
View PDF5 Cites 0 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
[0006] Due to the low efficiency of reclaiming memory without closing applications, the amount of memory occupied by these unclosed applications is often not calculated when calculating the amount of reclaimable memory. Amount of memory that can be reclaimed

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
  • Terminal control method and device, terminal equipment, and computer-readable storage medium
  • Terminal control method and device, terminal equipment, and computer-readable storage medium
  • Terminal control method and device, terminal equipment, and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 4 approach

[0152]Various methods can be used to increase the difficulty of reclaiming anonymous pages in an active state. For example, you can increase the duration of anonymity pages, for example, you can reduce the optional value of activity, or you can increase the reduction in activity. Here, we give an example of the third method. If the third embodiment is used for the recycling of anonymous pages, please refer to 7. The fourth embodiment of the present invention to perform memory recycling for the third type of application includes the following steps:

[0153]Step S701: Set optional values ​​of physical page activity, including a first value, a second value, a third value, and a fourth value.

[0154]Set the optional value of physical page activity, for example, it can include a first value, a second value, a third value, and a fourth value, where the first value is not higher than the recycling standard, the second value is lower than the third value, and Higher than the recovery standard, ...

no. 1 example

[0201]The third type of application program of the present invention can be recovered by a memory recovery device, seePicture 9 , The first embodiment of the memory recovery device in the embodiment of the present invention includes:

[0202]The second obtaining module 901 is configured to obtain the target physical page corresponding to the first target process.

[0203]The first reading module 902 is used to read the activity value of the target physical page, the activity degree of the target physical page is used to mark the activity degree of the target physical page, the activity value of the target physical page and the activity of the target physical page The degree is positively correlated.

[0204]The reduction module 903 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, and the physical page with the activity value higher than the recycling standard is in an active state.

[0205...

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 present invention provides a terminal device control method and device, a terminal device, and a computer-readable storage medium. The method includes obtaining a running target application program, and judging whether the target application program is an application program that cannot be closed but can reclaim memory. If so, Calculate the amount of reclaimable memory of the target application; wherein, the calculation of the amount of reclaimable memory of the target application includes: obtaining the first target process that the target application is running, and obtaining the reclaimable physical page corresponding to the first target process, and calculating the reclaimable physical page The amount of memory occupied by reclaimable active physical pages in the page. The device is used to realize the above terminal equipment control method. The terminal device provided by the present invention has a processor, and when the processor executes a computer program, the above method for controlling the terminal device can be realized. The computer readable storage medium of the present invention stores a computer program for realizing the above method. The present invention can accurately calculate the amount of memory that the terminal device can currently reclaim.

Description

Technical field[0001]The present invention relates to the field of control of the electronic device, and in particular, a method of implementing a recoverable memory calculation on a terminal device and an apparatus that implements such a method, further involves a terminal device and computer readable storage that implements the above method. medium.Background technique[0002]Terminal devices such as smartphones, tablets, becomes the most frequently used electronic devices in everyday life, and people like to install various applications on intelligent electronic devices, and run a lot of applications simultaneously on the terminal device. In the operating system of the terminal device, in order to speed up the read / write operation of the disk, a large amount of data is typically cached in memory. The process needs to be applied and started to take up memory before using memory, and then reclaim memory in time after memory is used. Since users are frequently replaced during the us...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/50
CPCG06F9/5016G06F9/5022
Inventor 王文钟斌
Owner MEIZU TECH CO LTD