CN110764906B - Memory recovery processing method and device, electronic equipment and storage medium - Google Patents

Memory recovery processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110764906B
CN110764906B CN201910925531.4A CN201910925531A CN110764906B CN 110764906 B CN110764906 B CN 110764906B CN 201910925531 A CN201910925531 A CN 201910925531A CN 110764906 B CN110764906 B CN 110764906B
Authority
CN
China
Prior art keywords
memory
memory recovery
recovery
parameter
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910925531.4A
Other languages
Chinese (zh)
Other versions
CN110764906A (en
Inventor
周华材
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910925531.4A priority Critical patent/CN110764906B/en
Publication of CN110764906A publication Critical patent/CN110764906A/en
Application granted granted Critical
Publication of CN110764906B publication Critical patent/CN110764906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/504Resource capping

Abstract

The application discloses a memory recovery method and device, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The method is applied to the electronic equipment, and comprises the following steps: detecting the memory recovery times of the electronic equipment in a specified time period, judging whether the memory recovery times exceed a time threshold, and when the memory recovery times exceed the time threshold, adjusting the memory recovery parameters of the electronic equipment to accelerate the memory recovery speed, wherein the memory recovery parameters represent the recovery ratio of the anonymous page and the file page. According to the memory recovery processing method and device, the electronic device and the storage medium provided by the embodiment of the application, when the sudden increase of the memory recovery times of the electronic device is detected, the memory recovery parameters of the electronic device are adjusted, so that the memory recovery speed is accelerated, and the system performance is improved.

Description

Memory recovery processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for processing a memory recycle, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic equipment is more and more widely used and has more and more functions, and the electronic equipment becomes one of the necessary things in daily life of people. At present, in various operating systems of an electronic device, after the electronic device starts an application process, the application process occupies a system memory, even if the application process is switched to a background for running, a certain system memory is still occupied, and if the application process started by the electronic device is too many, the occupied system memory is too much, which results in that the running speed of the application process is slower and slower, and even the electronic device may be halted.
Disclosure of Invention
In view of the foregoing problems, the present application provides a memory recycling method, an apparatus, an electronic device, and a storage medium to solve the foregoing problems.
In a first aspect, an embodiment of the present application provides a memory recycling method, which is applied to an electronic device, and the method includes: detecting the memory recovery times of the electronic equipment in a specified time period; judging whether the memory recovery times exceed a time threshold; and when the memory recovery times exceed the time threshold, adjusting memory recovery parameters of the electronic equipment to accelerate the memory recovery speed, wherein the memory recovery parameters represent the recovery ratio of the anonymous page and the file page.
In a second aspect, an embodiment of the present application provides a memory recycling device, which is applied to an electronic device, and the device includes: the memory recovery frequency detection module is used for detecting the memory recovery frequency of the electronic equipment in a specified time period; the memory recovery frequency judging module is used for judging whether the memory recovery frequency exceeds a frequency threshold value; and the memory recovery parameter adjusting module is used for adjusting the memory recovery parameters of the electronic equipment when the memory recovery times exceed the time threshold value so as to accelerate the memory recovery speed, wherein the memory recovery parameters represent the recovery ratio of the anonymous page and the file page.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the above method when the instructions are executed by the processor.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
The memory recovery processing method, the memory recovery processing device, the electronic device and the storage medium provided by the embodiment of the application detect the memory recovery times of the electronic device in a specified time period, judge whether the memory recovery times exceed a time threshold, and adjust the memory recovery parameters of the electronic device to accelerate the memory recovery speed when the memory recovery times exceed the time threshold, wherein the memory recovery parameters represent the recovery ratio of the anonymous page and the file page, so that the memory recovery parameters of the electronic device are adjusted to accelerate the memory recovery speed and improve the system performance when the sudden increase of the memory recovery times of the electronic device is detected.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a memory recycling processing method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating a memory recycling processing method according to another embodiment of the present application;
fig. 3 is a flowchart illustrating step S210 of the memory recycling processing method illustrated in fig. 2 of the present application;
fig. 4 is a schematic flow chart illustrating a memory recycling processing method according to still another embodiment of the present application;
fig. 5 is a flowchart illustrating step S340 of the memory recycling processing method illustrated in fig. 4 of the present application;
fig. 6 is a flowchart illustrating the step S342 of the memory recycling processing method illustrated in fig. 5 of the present application;
fig. 7 shows a block diagram of a memory recycling device according to an embodiment of the present application;
fig. 8 is a block diagram illustrating an electronic device for executing a memory reclamation processing method according to an embodiment of the present application;
fig. 9 illustrates a storage unit configured to store or carry a program code for implementing the memory reclamation processing method according to the embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Taking the Android operating system as an example, under a memory management mechanism of the Android operating system, when the memory occupancy of the system reaches an upper limit, the system randomly releases memory resources occupied by processes running in a background, so as to reduce the occupancy rate of the memory of the system and improve the performance of the system. However, the current Android operating system starts to release the memory resources occupied by the processes running in the background only in the memory recovery process when the available memory is lower than the set threshold, and cannot make adjustments in time to quickly meet the requirement of a large memory in a short time, which may cause a problem of blocking.
In view of the above problems, the inventors have found and proposed a memory recovery processing method, device, electronic device and storage medium provided in the embodiments of the present application through long-term research, and adjust memory recovery parameters of the electronic device when detecting that the number of times of memory recovery of the electronic device suddenly increases, so as to accelerate the memory recovery speed and improve the system performance. The specific memory recycling method is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a memory recycling method according to an embodiment of the present disclosure. The memory recovery processing method is used for adjusting the memory recovery parameters of the electronic equipment when the sudden increase of the memory recovery times of the electronic equipment is detected, so that the memory recovery speed is accelerated, and the system performance is improved. In an embodiment, the memory recycling method is applied to the memory recycling device 200 shown in fig. 7 and the electronic device 100 (fig. 8) equipped with the memory recycling device 200. The specific process of the present embodiment will be described below by taking an electronic device as an example, and it is understood that the electronic device applied in the present embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 1, the memory recycling method may specifically include the following steps:
step S110: and detecting the memory recovery times of the electronic equipment in a specified time period.
In some embodiments, the electronic device may be preset with a specific time period, wherein the specific time period may be set automatically by the electronic device or manually by a user, which is not limited herein. In addition, the specified time period may be set to 1 second, to 1 minute, to 1 hour, or the like, and is not limited herein. In this embodiment, the specified time period is used as a time determination basis for detecting the memory recovery times of the electronic device, that is, the specified time period may be used as a detection period to detect the memory recovery times of the electronic device. For example, when the specified time period is 1 second, the memory recovery times of the electronic device in the time period of 1 second may be detected; when the specified time period is 1 minute, the memory recovery times of the electronic device in the time period of 1 minute can be detected.
Of course, in some embodiments, the specified time period may be a recurring time period, wherein a recurring time period may include a continuous recurring time period and an intermittent recurring time period. For example, in this embodiment, the number of times of memory recovery of the electronic device may be cyclically detected with a time period of every 1 second, for example, the number of times of memory recovery of the electronic device may be cyclically detected continuously with a time period of every 1 second, or the number of times of memory recovery of the electronic device may be cyclically detected at intervals with a time period of every 1 second, which is not limited herein.
As a mode, the electronic device may perform recording or marking once every time the electronic device performs memory recovery, and therefore, in this embodiment, the number of times of memory recovery of the electronic device in a specified time period may be detected by querying the recording or marking. As another mode, the electronic device counts the memory recovery times at the starting time point of each time period, and completes counting the memory recovery times at the ending time point of each time period, so that the memory recovery times of the electronic device in the specified time period can be obtained.
Step S120: and judging whether the memory recovery times exceed a time threshold value.
In some embodiments, the electronic device may be provided with a number threshold, and the set number threshold is used as a criterion for determining the memory recycling number of the electronic device. Therefore, in this embodiment, after the number of times of memory recovery of the electronic device in the specified time period is detected, the number of times of memory recovery may be compared with the number threshold, so as to determine whether the number of times of memory recovery exceeds the number threshold. For example, assume the number threshold is: the maximum memory recovery frequency of the 1 second time period is 1000 times, the memory recovery frequency of the electronic device in the 1 second time period can be detected, the detected memory recovery frequency is compared with 1000 times to judge whether the memory recovery frequency exceeds 1000 times, and if the memory recovery frequency exceeds 1000 times, the memory recovery frequency can be determined to exceed a frequency threshold.
The preset number threshold can be stored in the local of the electronic device after being completed, and the preset number threshold is used as a judgment basis for the memory recovery number. The initial number threshold may also be preset and stored locally in the electronic device, the initial number threshold is updated during the use of the electronic device, and the updated initial number threshold is used as a criterion for determining the memory recovery number, and the like, which is not limited herein.
In this embodiment, the number of times threshold set by the electronic device is at least one, that is, the number of times threshold is one or more. When the number of the times threshold is one, the memory recovery times can be compared with the times threshold to judge whether the memory recovery times exceeds the times threshold; when the number of times threshold is multiple, the number of times of memory recovery may be compared with the multiple number of times threshold, respectively, to determine whether the number of times of memory recovery exceeds any number of times threshold, and determine a target number of times threshold that the number of times of memory recovery exceeds from the multiple number of times threshold.
Step S130: and when the memory recovery times exceed the time threshold, adjusting memory recovery parameters of the electronic equipment to accelerate the memory recovery speed, wherein the memory recovery parameters represent the recovery ratio of the anonymous page and the file page.
In some embodiments, when the determination result indicates that the memory recovery frequency of the electronic device in the specified time period exceeds the frequency threshold, the increase of the memory recovery frequency is too fast, that is, the memory requirement is large, so that the memory recovery parameter (swappiess) of the electronic device may be adjusted to accelerate the memory recovery speed. In this embodiment, the memory recycle parameter represents a recycle ratio of an anonymous page and a file page, where the anonymous page (anonymous page) represents a page without a file background, such as a heap, a stack, a data segment, and the like, which does not exist in a file form and cannot be exchanged with a disk file. The file page (file page) represents a page with a file background, which is a cache generated by a memory after a file is read, and is generally called a file cache. For example, if the set memory recovery amount is 200, if the memory recovery parameter is 60, it indicates that the recovery ratio of the anonymous page and the file page is 60: 140.
The recovery strategy of the anonymous page is generally to compress the anonymous page and store the compressed anonymous page in a Random Access Memory (RAM), and because the process needs to use a Central Processing Unit (CPU) to compress the anonymous page and decompress the compressed anonymous page again when in use, the recovery process needs to consume a certain CPU time, and the process is relatively slow. The recovery strategy of the file page is generally divided into two types, if the file page is not modified, the content of the file page can be directly discarded; if the contents of a file page are modified, the contents need to be written back to disk, the file page discarded, and the file page read from disk again when in use. Therefore, in this embodiment, since the recovery process of the file page is faster than that of the anonymous page, the memory recovery parameter of the electronic device can be adjusted by increasing the recovery ratio of the file page to accelerate the memory recovery speed, thereby increasing the system performance.
For example, when the set memory recovery amount is 200, if the original memory recovery parameter is 60, the recovery ratio of the file page may be increased to decrease the memory recovery parameter, for example, the memory recovery parameter is adjusted to 50, and then the recovery ratio of the anonymous page and the file page is 50: 150. For another example, if the memory reclamation parameter is adjusted to 30, then the reclamation ratio between the anonymous page and the file page is 30: 170. The specific parameters for adjustment are not limited in this embodiment.
According to the memory recovery processing method provided by one embodiment of the application, the memory recovery times of the electronic device in a specified time period are detected, whether the memory recovery times exceed a time threshold value is judged, and when the memory recovery times exceed the time threshold value, the memory recovery parameters of the electronic device are adjusted to accelerate the memory recovery speed, wherein the memory recovery parameters represent the recovery ratio of the anonymous page and the file page, so that when the sudden increase of the memory recovery times of the electronic device is detected, the memory recovery parameters of the electronic device are adjusted to accelerate the memory recovery speed, and the system performance is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a memory recycling method according to another embodiment of the present disclosure. The method is applied to the electronic device, and will be described in detail with reference to a flow shown in fig. 2, where in this embodiment, the number threshold includes a first number threshold and a second number threshold, and the first number threshold is smaller than the second number threshold, and the memory recycling method may specifically include the following steps:
step S210: when the electronic equipment runs a target process in a foreground, acquiring the residual memory resources of the electronic equipment and determining the memory resources required by the target process.
In some embodiments, the electronic device may detect a process running in the foreground to determine whether the process running in the foreground of the electronic device is a target process. For example, a Process Running in the foreground of the electronic device may be detected by Running Task, Running Process, Activity Lifecycle calls, Usage states Manager, Android-owned barrier-free function of the electronic device, or Process information stored in a directory in a Linux system kernel, or the like. The Running process in the foreground of the electronic equipment is detected through the Running Task of the electronic equipment as an example, when one process runs in the foreground, the process can be located at the stack top of the Running Task, so that the Task process at the stack top of the Running Task can be taken out, the packet name of the process can be checked, and the Running process in the foreground of the electronic equipment can be identified through the packet name. Of course, in this embodiment, the process running in the foreground of the electronic device may also be detected in other more manners, which is not described herein again.
In this embodiment, after detecting a process running in the foreground of the electronic device, it may be determined whether the process is a target process. As a manner, the type of a process running in the foreground of the electronic device may be obtained, and whether the type satisfies a preset type or not may be determined. The preset type may include a video playing type, a video processing type, and other types with a large demand on the memory resource, and correspondingly, the target process may include a video playing process, a video processing process, and other types, which are not limited herein.
In some embodiments, when it is detected that the electronic device runs the target process in the foreground, the remaining memory resources of the electronic device may be obtained and the memory resources required by the target process may be determined. For example, when it is detected that the electronic device runs a video playing process in the foreground, the remaining memory resource of the electronic device may be obtained and the memory resource required by the video playing process may be determined.
For example, when an operating system of the electronic device is an Android system, the current available memory amount of the memory of the electronic device, that is, the remaining memory resource of the electronic device, may be obtained by an activitymanager.
The electronic device can determine the memory resource required by the target process by checking historical data or an estimated mode. Taking an example that the electronic device determines the memory resource required by the target process by checking the historical data, the electronic device may set a preset history period, acquire the memory resource occupied by the electronic device when the target process is operated at the foreground each time in the preset history period, calculate the average memory resource occupied by the electronic device when the target process is operated at the foreground each time based on the memory resource occupied by the electronic device when the target process is operated at the foreground each time in the preset history period, and determine the average memory resource as the memory resource required by the target process. The preset history period may include three days, one week, one month, and the like, and is not limited herein, and taking the preset history period as three days, the memory resources occupied by the electronic device running the target process in the foreground each time in the history period of three days may be obtained, the average value of the memory resources occupied by the target process is calculated based on the memory resources occupied each time, and the average value is determined as the memory resources required by the target process.
Referring to fig. 3, fig. 3 is a flowchart illustrating the step S210 of the memory recycling method shown in fig. 2 according to the present application. As will be described in detail with respect to the flow shown in fig. 3, the memory recycling method may specifically include the following steps:
step S211: and when the electronic equipment runs a target process in a foreground, acquiring the type of the target process.
In this embodiment, when it is determined that the electronic device runs the target process in the foreground, the type of the target process may be acquired. As an implementable manner, the electronic device may create a mapping relationship between a plurality of process names and a plurality of process types in advance, where each process name in the plurality of process names may correspond to one process type in the plurality of process types, and one process type in the plurality of process types may correspond to one or more process names in the plurality of process names. For example, the plurality of process names includes: the process comprises a process name A, a process name B and a process name D, wherein the process types comprise: process type D and process type E, then the mapping relationship may include: the process name a-process type D, the process name B-process type E, the process name C-process type D, etc., which are not limited herein.
Further, when the electronic device runs the target process in the foreground, the package name of the target process may be obtained, the name of the target process is determined based on the inclusion of the target process, a process type corresponding to the process name consistent with the name of the target process is queried from the mapping relationship based on the name of the target process, and the process type is determined as the type of the target process. For example, when the name of the target process coincides with the process name a, then the type of the target process may be determined to be the process type D, when the name of the target process coincides with the process name B, then the type of the target process may be determined to be the process type E, and so on.
Step S212: and judging whether the type meets a preset type or not.
In some embodiments, the electronic device is preset with a preset type, and the preset type is used as a criterion for determining the type of the target process, so that after the type of the target process is obtained, the type of the target process may be compared with the preset type to determine whether the type of the target process satisfies the preset type. The number of the preset types can be one or more, when the number of the preset types is one, whether the type of the target process is consistent with the preset type or not can be judged, when the type of the target process is consistent with the preset type, the type of the target process can be determined to meet the preset type, and when the type of the target process is not consistent with the preset type, the type of the target process can be determined not to meet the preset type; when the number of the preset types is multiple, whether the type of the target process is consistent with any preset type in the multiple preset types or not can be judged, when the type of the target process is consistent with any preset type in the multiple preset types, the target process can be determined to meet the preset type, and when the type of the target process is inconsistent with the multiple preset types, the target process can be determined not to meet the preset type.
In some embodiments, the preset type may include a video playing type, a video processing type, and the like, which have a large demand on memory resources.
Step S213: and when the type meets the preset type, acquiring the residual memory resource of the electronic equipment and determining the memory resource required by the target process based on the type.
In some embodiments, when the type of the target process meets the preset type, it represents that the target process has a large demand for the memory resource, and therefore, sufficient memory resource needs to be idle in the electronic device to ensure normal operation of the target process, and therefore, the remaining memory resource of the electronic device can be obtained and the memory resource required by the target process is determined based on the type of the target process, so as to determine whether the remaining memory resource of the electronic device meets the memory resource required by the target process.
Step S220: and when the residual memory resources are smaller than the memory resources required by the target process, detecting the memory recovery times of the electronic equipment in a specified time period.
In some embodiments, when the remaining memory resources of the electronic device and the memory resources required by the target process are obtained, the remaining memory resources and the memory resources required by the target process may be compared to determine whether the remaining memory resources are smaller than the memory resources required by the target process. When the judgment result represents that the residual memory resources are not less than the memory resources required by the target process, the residual memory resources of the electronic equipment can be continuously detected; when the judgment result represents that the residual memory resources are smaller than the memory resources required by the target, the memory recovery times of the device with you in the specified time period can be detected.
Step S230: and judging whether the memory recovery times exceed a time threshold value.
In this embodiment, the number threshold includes a first number threshold and a second number threshold, and the first number threshold is smaller than the second number threshold. Therefore, as a manner, after the memory recovery times of the electronic device in the specified time period are obtained, the memory recovery times may be compared with the first time threshold and the second time threshold, respectively, to determine whether the memory recovery times do not exceed the first time threshold, whether the memory recovery times exceed the first time threshold and do not exceed the second time threshold, and whether the memory recovery times exceed the second time threshold.
Step S240: and when the memory recovery times exceed the first time threshold and do not exceed the second time threshold, determining a first memory recovery parameter corresponding to the first time threshold.
When the judgment result indicates that the memory recovery times exceed the first time threshold and do not exceed the second time threshold, a first memory recovery parameter corresponding to the first time threshold can be determined. In some embodiments, the electronic device may preset different times thresholds corresponding to different memory recycling parameters, for example, a first time threshold corresponding to a first memory recycling parameter, a second time threshold corresponding to a second memory recycling parameter, a third time threshold corresponding to a third memory recycling parameter, a fourth time threshold corresponding to a fourth memory recycling parameter, and the like. When the memory recovery parameter exceeds a first time threshold and does not exceed a second time threshold, representing that the memory recovery parameter corresponds to the first time threshold, and acquiring a first memory recovery parameter corresponding to the first time threshold; when the memory recovery parameter exceeds the second time threshold and does not exceed a third time threshold, representing that the memory recovery parameter corresponds to the second time threshold, and acquiring a second memory recovery parameter corresponding to the second time threshold; when the memory recovery parameter exceeds the third time threshold and does not exceed the fourth time threshold, representing that the memory recovery parameter corresponds to the third time threshold, and acquiring a third memory recovery parameter corresponding to the third time threshold; and when the memory recovery parameter exceeds the fourth time threshold, representing that the memory recovery parameter corresponds to the fourth time threshold, and acquiring the fourth memory recovery parameter corresponding to the fourth time threshold.
Therefore, in this embodiment, when the determination result indicates that the memory recycling time exceeds the first time threshold and does not exceed the second time threshold, the first memory parameter corresponding to the first time threshold may be determined.
Step S250: and adjusting the memory recovery parameter of the electronic equipment to be the first memory recovery parameter.
Further, after the first memory recovery parameter is obtained, the memory recovery parameter of the electronic device may be adjusted to the first memory recovery parameter, so as to accelerate the memory recovery speed. The memory recovery speed corresponding to the first memory recovery parameter is greater than the memory recovery parameter corresponding to the original memory recovery parameter of the electronic device. For example, when the set memory reclamation amount is 200, if the original memory reclamation parameter is 60, that is, the reclamation ratio of the anonymous page to the file page is 60:140, the first memory reclamation parameter may be 50, that is, the reclamation ratio of the anonymous page to the file page is 50:150, so as to accelerate the memory reclamation speed.
Step S260: and when the memory recovery times exceed the second time threshold value, determining a second memory recovery parameter corresponding to the second time threshold value, wherein the memory recovery speed corresponding to the second memory recovery parameter is greater than the memory recovery speed corresponding to the first memory recovery parameter.
When the judgment result indicates that the memory recovery times exceed the second time threshold, a second memory recovery parameter corresponding to the second time threshold can be determined. It should be noted that, in this embodiment, the memory recovery speed corresponding to the second memory recovery parameter is greater than the memory recovery speed corresponding to the first memory recovery parameter, that is, the larger the number threshold value that the number of times of memory recovery of the electronic device in the specified time period exceeds, the faster the memory recovery speed corresponding to the determined memory recovery parameter is, so that memory recovery can be accelerated, and system performance can be improved.
In some embodiments, if the electronic device is provided with a first time threshold, a second time threshold, a third time threshold and a fourth time threshold, and the first time threshold is less than the second time threshold and less than the third time threshold and less than the fourth time threshold, then the original memory recovery speed corresponding to the memory recovery parameter is less than the memory recovery speed corresponding to the first memory recovery parameter and less than the memory recovery speed corresponding to the second memory recovery parameter.
Step S270: and adjusting the memory recovery parameter of the electronic equipment to be the second memory recovery parameter.
Further, after the second memory recovery parameter is obtained, the memory recovery parameter of the electronic device may be adjusted to the second memory recovery parameter, so as to accelerate the memory recovery speed. And the memory recovery speed corresponding to the second memory recovery parameter is greater than the memory recovery parameter corresponding to the first memory recovery parameter of the electronic equipment. For example, when the set memory reclamation amount is 200, if the original memory reclamation parameter is 60, that is, the reclamation ratio of the anonymous page to the file page is 60:140, the first memory reclamation parameter may be 50, that is, the reclamation ratio of the anonymous page to the file page is 50:150, and the second memory reclamation parameter may be 40, that is, the reclamation ratio of the anonymous page to the file page is 40: 160.
In another embodiment of the present application, a memory recycling method is provided, where when an electronic device runs a target process in a foreground, acquiring remaining memory resources of the electronic device and determining memory resources required by the target process, when the remaining memory resources are smaller than the memory resources required by the target process, detecting a memory recycling frequency of the electronic device within a specified time period, determining whether the memory recycling frequency exceeds a frequency threshold, when the memory recycling frequency exceeds the first frequency threshold and does not exceed a second frequency threshold, determining a first memory recycling parameter corresponding to the first frequency threshold, adjusting a memory recycling parameter of the electronic device to the first memory recycling parameter, and when the memory recycling frequency exceeds the second frequency threshold, determining a second memory recycling parameter corresponding to the second frequency threshold, where a memory recycling speed corresponding to the second memory recycling parameter is greater than a memory recycling speed corresponding to the first memory recycling parameter, and adjusting the memory recovery parameter of the electronic equipment to be a second memory recovery parameter. Compared with the memory recovery processing method shown in fig. 1, in this embodiment, the number of times of memory recovery detection is further determined according to the relationship between the memory resource required by the target process running in the foreground of the electronic device and the remaining memory resource of the electronic device, so as to reduce the power consumption of the electronic device.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a memory recycling method according to still another embodiment of the present application. The method is applied to the electronic device, and will be described in detail with reference to the flow shown in fig. 4, where the memory recycling method may specifically include the following steps:
step S310: when the electronic equipment runs a target process in a foreground, acquiring the residual memory resources of the electronic equipment and determining the memory resources required by the target process.
Step S320: and when the residual memory resources are smaller than the memory resources required by the target process, detecting the memory recovery times of the electronic equipment in a specified time period.
For the detailed description of steps S310 to S320, please refer to steps S210 to S220, which are not described herein again.
Step S330: and judging whether the memory recovery times exceed a time threshold value.
For the detailed description of step S330, please refer to step S120, which is not described herein again.
Step S340: and when the memory recovery times exceed the time threshold, increasing the recovery proportion of the file pages.
In some embodiments, when the memory recovery times exceed the time threshold, the recovery ratio of the file page may be increased to accelerate the memory recovery speed, thereby improving the user experience. For example, when the set memory recovery amount is 200, if the original memory recovery parameter is 60, the recovery ratio of the file page may be increased to decrease the memory recovery parameter, for example, the memory recovery parameter is adjusted to 50, and then the recovery ratio of the anonymous page and the file page is 50: 150.
Referring to fig. 5, fig. 5 is a flowchart illustrating the step S340 of the memory recycling method shown in fig. 4 according to the present application. As will be described in detail with respect to the flow shown in fig. 5, the memory recycling method may specifically include the following steps:
step S341: and when the memory recovery times exceed the time threshold, searching the file page in the inactive state.
In some embodiments, when the number of memory evictions exceeds a threshold number of times, a file page in an inactive state may be searched. Specifically, the Active state of the document page is divided into an Active (Active) state and an inActive (inActive) state, the Active state indicates that the document page is being accessed or data writing is performed, and the inActive state indicates that the document page is not currently accessed.
Step S342: and adding the file pages in the inactive state to a list to be recycled so as to increase the recycling proportion of the file pages.
Further, after the file page in the inactive state is found, the file page in the inactive state can be directly recovered, or the file page in the inactive state can be added to the list to be recovered, and the electronic device is waited to recover the file page in the list to be recovered, so that the recovery ratio of the file page is increased, and the recovery speed is accelerated.
Referring to fig. 6, fig. 6 is a flowchart illustrating the step S342 of the memory recycling method shown in fig. 5 according to the present application. As will be described in detail with respect to the flow shown in fig. 6, the memory recycling processing method may specifically include the following steps:
step S3421: and determining unmodified file pages from the file pages in the inactive state.
In some embodiments, the file pages are divided into unmodified file pages and modified file pages, wherein the recovery policy corresponding to the unmodified file pages is to directly discard the contents of the file pages, and the recovery policy corresponding to the modified file pages is to write the contents back to the disk and then discard the file pages. Therefore, in the present embodiment, after the file pages in the inactive state are found, the unmodified file pages can be determined from the file pages in the inactive state, so as to accelerate the recycling speed.
Step S3422: and adding the unmodified file pages to the list to be recycled.
Further, after the unmodified file page is found in the inactive state, the unmodified file page can be directly recovered, or the unmodified file page can be added to the list to be recovered, and the electronic device is waited to recover the file page in the list to be recovered, so that the recovery ratio of the file page is increased, and the recovery speed is accelerated.
In another embodiment of the memory recovery processing method provided in this application, when the electronic device runs the target process in the foreground, the remaining memory resources of the electronic device are obtained and the memory resources required by the target process are determined, when the remaining memory resources are smaller than the memory resources required by the target process, the memory recovery frequency of the electronic device in a specified time period is detected, whether the memory recovery frequency exceeds a frequency threshold is determined, and when the memory recovery frequency exceeds the frequency threshold, the recovery ratio of the file page is increased. Compared with the memory recovery processing method shown in fig. 1, in this embodiment, the number of times of memory recovery detection is further determined according to the relationship between the memory resource required by the target process running in the foreground of the electronic device and the remaining memory resource of the electronic device, so as to reduce the power consumption of the electronic device.
Referring to fig. 7, fig. 7 is a block diagram illustrating a memory recycling device 200 according to an embodiment of the present disclosure. The memory recycling apparatus 200 is applied to the electronic device, and will be described with reference to the block diagram shown in fig. 7, where the memory recycling apparatus 200 includes: a memory recovery frequency detection module 210, a memory recovery frequency judgment module 220, and a memory recovery parameter adjustment module 230, wherein:
the memory recovery frequency detection module 210 is configured to detect the memory recovery frequency of the electronic device in a specified time period. Further, the memory recycling parameter detecting module 210 includes: memory resource acquisition submodule and memory recovery frequency detector simulation, wherein:
and the memory resource acquisition submodule is used for acquiring the residual memory resources of the electronic equipment and determining the memory resources required by the target process when the electronic equipment runs the target process in the foreground. Further, the memory resource obtaining sub-module includes: the device comprises a type acquisition unit, a type judgment unit and a memory resource acquisition unit, wherein:
the type acquiring unit is used for acquiring the type of the target process when the electronic equipment runs the target process in a foreground.
And the type judging unit is used for judging whether the type meets a preset type or not.
And the memory resource acquisition unit is used for acquiring the residual memory resources of the electronic equipment and determining the memory resources required by the target process based on the type when the type meets the preset type.
And the memory recovery frequency detection submodule is used for detecting the memory recovery frequency of the electronic equipment in a specified time period when the residual memory resources are smaller than the memory resources required by the target process.
The memory recovery frequency determining module 220 is configured to determine whether the memory recovery frequency exceeds a frequency threshold.
The memory recovery parameter adjusting module 230 is configured to adjust a memory recovery parameter of the electronic device when the number of times of memory recovery exceeds the number threshold, so as to accelerate a memory recovery speed, where the memory recovery parameter represents a recovery ratio of the anonymous page and the file page.
Further, the number threshold includes a first number threshold and a second number threshold, where the first number threshold is smaller than the second number threshold, and the memory recycling parameter adjusting module 230 includes: the device comprises a first memory recovery parameter determining submodule, a first memory recovery parameter adjusting submodule, a second memory recovery parameter determining submodule and a second memory recovery parameter adjusting submodule, wherein:
and the first memory recycling parameter determining submodule is used for determining a first memory recycling parameter corresponding to the first time threshold when the memory recycling times exceed the first time threshold and do not exceed the second time threshold.
And the first memory recovery parameter adjusting submodule is used for adjusting the memory recovery parameter of the electronic equipment to the first memory recovery parameter.
And the second memory recovery parameter determining submodule is used for determining a second memory recovery parameter corresponding to the second time threshold when the memory recovery times exceed the second time threshold, wherein the memory recovery speed corresponding to the second memory recovery parameter is greater than the memory recovery speed corresponding to the first memory recovery parameter.
And the second memory recovery parameter adjusting submodule is used for adjusting the memory recovery parameter of the electronic equipment to be the second memory recovery parameter.
Further, the memory recycling parameter adjusting module 230 includes: a memory recovery parameter adjustment submodule, wherein:
and the memory recovery parameter adjusting submodule is used for increasing the recovery proportion of the file page when the memory recovery times exceed the time threshold. Further, the memory reclamation parameter adjustment submodule includes: a file page search unit and a file page adding unit, wherein:
and the file page searching unit is used for searching the file page in the inactive state when the memory recovery times exceed the time threshold.
And the file page adding unit is used for adding the file pages in the inactive state to a list to be recycled so as to increase the recycling proportion of the file pages. Further, the document page adding unit includes: a document page determination subunit and a document page addition subunit, wherein:
a file page determining subunit, configured to determine an unmodified file page from the file pages in the inactive state.
And the file page adding subunit is used for adding the unmodified file pages to the to-be-recycled list.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 8, a block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 9, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 300 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
To sum up, the memory recovery processing method, the memory recovery processing apparatus, the electronic device, and the storage medium provided in the embodiments of the present application detect the memory recovery frequency of the electronic device in a specified time period, determine whether the memory recovery frequency exceeds a frequency threshold, and adjust the memory recovery parameter of the electronic device when the memory recovery frequency exceeds the frequency threshold, so as to accelerate the memory recovery speed, where the memory recovery parameter represents the recovery ratio between the anonymous page and the file page, so that the memory recovery parameter of the electronic device is adjusted when the memory recovery frequency of the electronic device is detected to increase suddenly, so as to accelerate the memory recovery speed and improve the system performance.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A memory recovery processing method is applied to electronic equipment, and the method comprises the following steps:
when the electronic equipment runs a target process in a foreground, acquiring the residual memory resource of the electronic equipment and determining the memory resource required by the target process;
when the residual memory resources are smaller than the memory resources required by the target process, detecting the memory recovery times of the electronic equipment in a specified time period;
judging whether the memory recovery times exceed a time threshold, wherein the time threshold is obtained by updating the electronic equipment according to a preset initial time threshold in the using process;
when the memory recovery times exceed the time threshold, adjusting memory recovery parameters of the electronic equipment to accelerate the memory recovery speed, wherein the memory recovery parameters represent the recovery proportion of anonymous pages and file pages;
the number of times threshold includes a first number of times threshold and a second number of times threshold, where the first number of times threshold is smaller than the second number of times threshold, and when the number of times of memory recovery exceeds the number of times threshold, adjusting memory recovery parameters of the electronic device includes:
when the memory recovery times exceed the first time threshold value and do not exceed the second time threshold value, determining a first memory recovery parameter corresponding to the first time threshold value;
adjusting the memory recovery parameter of the electronic device to the first memory recovery parameter; or
When the memory recovery times exceed the second time threshold value, determining a second memory recovery parameter corresponding to the second time threshold value, wherein the memory recovery speed corresponding to the second memory recovery parameter is greater than the memory recovery speed corresponding to the first memory recovery parameter;
and adjusting the memory recovery parameter of the electronic equipment to be the second memory recovery parameter.
2. The method of claim 1, wherein when the number of times of memory reclamation exceeds the number threshold, adjusting a memory reclamation parameter of the electronic device comprises:
and when the memory recovery times exceed the time threshold, increasing the recovery proportion of the file pages.
3. The method according to claim 2, wherein increasing the recycle proportion of the file page when the memory recycle number exceeds the number threshold comprises:
when the memory recovery times exceed the time threshold, searching a file page in an inactive state;
and adding the file pages in the inactive state to a list to be recycled so as to increase the recycling proportion of the file pages.
4. The method of claim 3, wherein the adding the file page in the inactive state to a to-be-recycled list comprises:
determining unmodified file pages from the file pages in the inactive state;
and adding the unmodified file pages to the to-be-recycled list.
5. The method according to any one of claims 1 to 4, wherein the obtaining of the remaining memory resources of the electronic device and the determining of the memory resources required by the target process when the electronic device runs the target process in a foreground comprises:
when the electronic equipment runs a target process on a foreground, acquiring the type of the target process;
judging whether the type meets a preset type or not;
and when the type meets the preset type, acquiring the residual memory resources of the electronic equipment and determining the memory resources required by the target process based on the type.
6. A memory recovery processing device, applied to an electronic device, the device comprising:
the memory resource acquisition submodule is used for acquiring the residual memory resources of the electronic equipment and determining the memory resources required by the target process when the electronic equipment runs the target process on the foreground;
the memory recovery frequency detection submodule is used for detecting the memory recovery frequency of the electronic equipment in a specified time period when the residual memory resources are smaller than the memory resources required by the target process;
the memory recovery frequency judging module is used for judging whether the memory recovery frequency exceeds a frequency threshold value, wherein the frequency threshold value is obtained by updating the electronic equipment according to a preset initial frequency threshold value in the using process;
the memory recovery parameter adjusting module is used for adjusting the memory recovery parameters of the electronic equipment to accelerate the memory recovery speed when the memory recovery times exceed the time threshold, wherein the memory recovery parameters represent the recovery ratio of the anonymous page and the file page;
the number of times threshold includes a first number of times threshold and a second number of times threshold, the first number of times threshold is smaller than the second number of times threshold, and the memory recycling parameter adjusting module includes:
the first memory recovery parameter determining submodule is used for determining a first memory recovery parameter corresponding to the first time threshold when the memory recovery times exceed the first time threshold and do not exceed the second time threshold;
the first memory recovery parameter adjusting submodule is used for adjusting the memory recovery parameter of the electronic equipment to be the first memory recovery parameter;
and the second memory recovery parameter determining submodule is used for determining a second memory recovery parameter corresponding to the second time threshold when the memory recovery times exceed the second time threshold, wherein the memory recovery speed corresponding to the second memory recovery parameter is greater than the memory recovery speed corresponding to the first memory recovery parameter.
7. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-5.
8. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 5.
CN201910925531.4A 2019-09-27 2019-09-27 Memory recovery processing method and device, electronic equipment and storage medium Active CN110764906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910925531.4A CN110764906B (en) 2019-09-27 2019-09-27 Memory recovery processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910925531.4A CN110764906B (en) 2019-09-27 2019-09-27 Memory recovery processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110764906A CN110764906A (en) 2020-02-07
CN110764906B true CN110764906B (en) 2022-06-17

Family

ID=69330750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910925531.4A Active CN110764906B (en) 2019-09-27 2019-09-27 Memory recovery processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110764906B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581119B (en) * 2020-05-07 2022-11-18 Oppo(重庆)智能科技有限公司 Page recovery method and device
CN111625351A (en) * 2020-05-12 2020-09-04 Oppo(重庆)智能科技有限公司 Method and device for recycling file pages, terminal and readable storage medium
CN111949564A (en) * 2020-08-13 2020-11-17 青岛海信传媒网络技术有限公司 Memory exchange method and display device
CN114168065A (en) * 2020-09-10 2022-03-11 荣耀终端有限公司 Method and device for adjusting memory configuration parameters
CN112199618A (en) * 2020-10-22 2021-01-08 Oppo广东移动通信有限公司 File page pre-reading method and device, terminal and storage medium
CN112363841B (en) * 2020-11-27 2022-11-04 Oppo(重庆)智能科技有限公司 Application process searching and killing method and device, electronic equipment and storage medium
CN116107742A (en) * 2021-06-10 2023-05-12 荣耀终端有限公司 Virtual memory management method and electronic equipment
CN116048769B (en) * 2022-08-11 2023-11-21 荣耀终端有限公司 Memory recycling method and device and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593300A (en) * 2013-11-15 2014-02-19 浪潮电子信息产业股份有限公司 Memory allocating and collecting method
CN104506609A (en) * 2014-12-22 2015-04-08 合一网络技术(北京)有限公司 Method and device for automatically monitoring server state and self-adaptively adjusting services
CN106528216A (en) * 2016-10-26 2017-03-22 深圳市金立通信设备有限公司 Method for starting application and terminal
CN109857555A (en) * 2019-01-15 2019-06-07 Oppo广东移动通信有限公司 Method for recovering internal storage and device, storage medium and electronic equipment
CN110162396A (en) * 2018-02-14 2019-08-23 阿里巴巴集团控股有限公司 Method for recovering internal storage, device, system and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7310707B2 (en) * 2003-05-15 2007-12-18 Seagate Technology Llc Adaptive resource controlled write-back aging for a data storage device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593300A (en) * 2013-11-15 2014-02-19 浪潮电子信息产业股份有限公司 Memory allocating and collecting method
CN104506609A (en) * 2014-12-22 2015-04-08 合一网络技术(北京)有限公司 Method and device for automatically monitoring server state and self-adaptively adjusting services
CN106528216A (en) * 2016-10-26 2017-03-22 深圳市金立通信设备有限公司 Method for starting application and terminal
CN110162396A (en) * 2018-02-14 2019-08-23 阿里巴巴集团控股有限公司 Method for recovering internal storage, device, system and storage medium
CN109857555A (en) * 2019-01-15 2019-06-07 Oppo广东移动通信有限公司 Method for recovering internal storage and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110764906A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN110764906B (en) Memory recovery processing method and device, electronic equipment and storage medium
CN109656722B (en) Memory optimization method and device, mobile terminal and storage medium
CN110765031B (en) Data storage method and device, mobile terminal and storage medium
EP3404538B1 (en) Data processing method, and data processing apparatus
CN108132735B (en) Terminal and application control method
EP3958120A1 (en) Method and device for anonymous page management, terminal device, and readable storage medium
WO2021057622A1 (en) Garbage collection method, device, electronic apparatus, and storage medium
CN110888746A (en) Memory management method and device, storage medium and electronic equipment
CN109992402B (en) Memory processing method and device, electronic equipment and computer readable storage medium
CN111158910A (en) Memory management method and device, storage medium and electronic equipment
CN111078586B (en) Memory recovery method and device, storage medium and electronic equipment
CN110737606B (en) Memory recovery processing method and device, electronic equipment and storage medium
WO2021057623A1 (en) Memory recovery method and apparatus, electronic device and storage medium
CN111124173A (en) Working state switching method and device of touch screen, mobile terminal and storage medium
CN111274039A (en) Memory recovery method and device, storage medium and electronic equipment
CN111984413A (en) Memory recovery method and device, electronic equipment and storage medium
CN111273769B (en) Equipment control method and device, electronic equipment and storage medium
CN112840663A (en) Video coding method and device, electronic equipment and storage medium
CN106648916B (en) Method and device for reporting pedometer message
CN115587049A (en) Memory recovery method and device, electronic equipment and storage medium
CN110727605B (en) Memory recovery method and device and electronic equipment
CN111090627B (en) Log storage method and device based on pooling, computer equipment and storage medium
CN112052089B (en) Memory recovery method and device and electronic equipment
CN115421907A (en) Memory recovery method and device, electronic equipment and storage medium
CN111078405B (en) Memory allocation method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant