CN110737606B - 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
CN110737606B
CN110737606B CN201910925526.3A CN201910925526A CN110737606B CN 110737606 B CN110737606 B CN 110737606B CN 201910925526 A CN201910925526 A CN 201910925526A CN 110737606 B CN110737606 B CN 110737606B
Authority
CN
China
Prior art keywords
memory
threshold
time threshold
preset
processes
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
CN201910925526.3A
Other languages
Chinese (zh)
Other versions
CN110737606A (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 CN201910925526.3A priority Critical patent/CN110737606B/en
Publication of CN110737606A publication Critical patent/CN110737606A/en
Application granted granted Critical
Publication of CN110737606B publication Critical patent/CN110737606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0253Garbage collection, i.e. reclamation of unreferenced memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The application discloses a memory recovery processing 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: the method comprises the steps of 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, cleaning the process operated by the electronic equipment and releasing memory resources corresponding to the cleaned process. The memory recovery processing method and device, the electronic device and the storage medium provided by the embodiment of the application clear the running process of the electronic device and release the memory resources when the sudden increase of the memory recovery times of the electronic device is detected, so as to improve the system performance.

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, and even if the application process is switched to a background to run, the application process still occupies a certain system memory, and if the application process started by the electronic device is too many, the occupied system memory is also too much, which causes the running speed of the application process to be slower and slower, and even may cause a problem of crash of the electronic device.
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, cleaning the process operated by the electronic equipment and releasing the memory resources corresponding to the cleaned process.
In a second aspect, an embodiment of the present application provides a memory recycling device. Applied to electronic equipment, 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 process cleaning module is used for cleaning the process operated by the electronic equipment and releasing the memory resource corresponding to the cleaned process when the memory recovery times exceed the time threshold.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory is coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method described above.
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 when the memory recovery times exceed the time threshold, clear the running process of the electronic device and release the memory resources corresponding to the cleared process, so that when the memory recovery times of the electronic device are suddenly increased, the running process of the electronic device is cleared and the memory resources are released, and the system performance is improved.
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 schematic flow chart illustrating a memory recycling processing method according to still another embodiment of the present application;
fig. 4 is a schematic flow chart illustrating a memory recycling processing method according to another embodiment of the present application;
fig. 5 is a flowchart illustrating step S450 of the memory recycling processing method illustrated in fig. 4 of the present application;
fig. 6 is a schematic flow chart illustrating a memory reclamation processing method according to yet another embodiment 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 when a sudden increase in the number of times of memory recovery of the electronic device is detected, the process of operating the electronic device is cleared and the memory resource is released, so as to 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 cleaning the running process of the electronic equipment and releasing memory resources when the sudden increase of the memory recovery times of the electronic equipment is detected so as to improve the system performance. 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 circularly detected every 1 second as a time period, for example, the number of times of memory recovery of the electronic device may be continuously circularly detected every 1 second as a time period, or the number of times of memory recovery of the electronic device may be circularly detected every 1 second as a time period interval, 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 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, cleaning the process operated by the electronic equipment and releasing the memory resources corresponding to the cleaned process.
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 process running on the electronic device can be cleaned and the memory resource corresponding to the cleaned process can be released, so as to release the memory resource in advance to meet the memory requirement, improve the system performance, and avoid the problem of blocking. As a manner, the electronic device may trigger a Low Memory Killer (LMK) to clean the running process and release a memory resource corresponding to the cleaned process, for example, kill a process running in a background of the electronic device through the LMK, release a memory resource corresponding to a process running in the background, and the like, which is not limited herein.
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 is judged, when the memory recovery times exceed the time threshold, a process operated by the electronic device is cleaned, and memory resources corresponding to the cleaned process are released, so that when the memory recovery times of the electronic device are suddenly increased, the process operated by the electronic device is cleaned, the memory resources are released, and the system performance is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a memory recycling method according to another embodiment of the present application. The method is applied to an 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, the Process Running in the foreground of the electronic device may be detected by Running Task, Running Process, Activity Lifecycle Callbacks, Usage states Manager, Android-owned barrier-free function of the electronic device, or Process information stored in a directory by a Linux system kernel. 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 resources of the electronic device may be obtained and the memory resources 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 resources required by the target process by checking historical data or in 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 approximately three days, approximately one week, approximately one month, and the like, and is not limited herein, and taking the preset history period as approximately three days as an example, the memory resource occupied by the electronic device running the target process in the foreground every time in the history period of approximately three days may be obtained, the average value of the memory resource occupied by the target process is calculated based on the memory resource occupied every time, and the average value is determined as 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; and 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 equipment 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 preset number of processes corresponding to the first time threshold.
Step S250: and clearing the processes of the first preset number and releasing the memory resources corresponding to the processes of the first preset number.
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 preset number of processes corresponding to the first time threshold can be determined, and then the first preset number of processes can be cleaned and the memory resources corresponding to the first preset number of processes can be released. In some embodiments, the electronic device may preset different numbers of processes corresponding to different times thresholds, for example, the first time threshold may be set to correspond to a first preset number of processes, and the second time threshold corresponds to a second preset number of processes, so that when the determination result indicates that the memory recovery time exceeds the first time threshold and does not exceed the second time threshold, the first preset number of processes corresponding to the first time threshold may be determined, and the first preset number of processes may be cleared to release the memory resource corresponding to the first preset number of processes, thereby improving system performance.
For example, the electronic device may preset X processes corresponding to the first time threshold, Y processes corresponding to the second time threshold, and the like, and then, when the determination result indicates that the number of times of memory recovery exceeds the first time threshold and does not exceed the second time threshold, the X processes corresponding to the first time threshold may be cleared and the memory resources corresponding to the X processes may be released.
Step S260: and when the memory recovery times exceed the second time threshold, determining a second preset number of processes corresponding to the second time threshold, wherein the second preset number is greater than the first preset number.
Step S270: and clearing the processes of the second preset number and releasing the memory resources corresponding to the processes of the second preset number.
When the judgment result indicates that the memory recovery times exceed the second time threshold, a second preset number of processes corresponding to the second time threshold can be determined, and the second preset number of processes can be cleaned and the memory resources corresponding to the second preset number of processes can be released. It should be noted that, in this embodiment, the second preset number is greater than the first preset number, that is, the greater the number threshold value that the number of times of memory recovery of the electronic device in the specified time period exceeds is, the greater the number of processes that are correspondingly determined and cleaned is, so that memory recovery can be accelerated, and system performance is improved. The electronic device selects the processes to be cleaned according to a certain sequence when determining the processes to be cleaned, for example, first selecting the processes to be cleaned of 100M, then cleaning the processes of 90M, and finally cleaning the processes of 80M, so that the processes of the second preset number determined by the electronic device include the processes of the first preset number, and therefore the memory resources occupied by the processes of the second preset number are larger than the memory resources occupied by the processes of the first preset number, so that the processes of different numbers to be cleaned can be determined according to different memory recycling times, and the process cleaning and the memory resource release are more reasonable.
For example, the electronic device may preset X processes corresponding to the first time threshold, and Y processes corresponding to the second time threshold, where X is less than Y, and then, when the determination result indicates that the number of times of memory recovery exceeds the second time threshold, the Y processes corresponding to the second time threshold may be cleared and the memory resources corresponding to the Y processes may be released. Of course, in this embodiment, the electronic device may further be provided with a number threshold more than the first number threshold and the second number threshold, and the more number thresholds correspond to different numbers of processes, so that the number of times of memory recovery may be compared with the more number thresholds, and a more reasonable number of processes may be determined to be cleaned, thereby accelerating memory recovery.
In another embodiment of the memory recycling method, 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 recycling frequency of the electronic device in a specified time period is detected, whether the memory recycling frequency exceeds a frequency threshold is determined, when the memory recycling frequency exceeds a first frequency threshold and does not exceed a second frequency threshold, a first preset number of processes corresponding to the first frequency threshold are determined, the first preset number of processes are cleared and the memory resources corresponding to the first preset number of processes are released, when the memory recycling frequency exceeds the second frequency threshold, a second preset number of processes corresponding to the second frequency threshold are determined, wherein the second preset number is greater than the first preset number, and clearing the processes with the second preset number and releasing the memory resources corresponding to the processes with the second preset number. 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. 3, fig. 3 is a schematic flow chart illustrating a memory recycling method according to still another embodiment of the present application. The method is applied to an electronic device, and will be described in detail with reference to a flow shown in fig. 3, where in this embodiment, the number threshold includes a third number threshold and a fourth number threshold, and the third number threshold is smaller than the fourth number threshold, and 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.
In this embodiment, the number threshold includes a third number threshold and a fourth number threshold, and the third number threshold is smaller than the fourth number threshold. Therefore, as one way, 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 third time threshold and the fourth time threshold, respectively, to determine whether the memory recovery times do not exceed the third time threshold, whether the memory recovery times exceed the third time threshold and do not exceed the fourth time threshold, and whether the memory recovery times exceed the fourth time threshold.
Step S340: and when the memory recovery times exceed the third time threshold and do not exceed the fourth time threshold, determining a process corresponding to the third time threshold.
Step S350: and cleaning the process corresponding to the third time threshold value and releasing the memory resource corresponding to the process corresponding to the third time threshold value.
When the judgment result indicates that the memory recovery times exceed the third time threshold and do not exceed the fourth time threshold, the process corresponding to the third time threshold can be determined, and the process corresponding to the third time threshold can be cleaned and the memory resource corresponding to the process corresponding to the third time threshold can be released. In some embodiments, the electronic device may preset processes with different memory occupancy amounts corresponding to different times thresholds, for example, a process with a third time threshold corresponding to the first memory occupancy amount and a process with a fourth time threshold corresponding to the second memory occupancy amount, so that when the determination result indicates that the memory recovery time exceeds the third time threshold and does not exceed the fourth time threshold, the process corresponding to the third time threshold may be determined, and the process corresponding to the third time threshold is cleaned to release the memory resource corresponding to the process corresponding to the third time threshold, thereby improving system performance.
For example, the electronic device may preset a process with a memory occupation amount of M corresponding to the third time threshold, a process with a memory occupation amount of N corresponding to the fourth time threshold, and the like, and then, when the judgment result indicates that the memory recovery times exceed the third time threshold and do not exceed the fourth time threshold, the process with the memory occupation amount of M may be queried, and the process with the memory occupation amount of M may be cleaned and the memory resource corresponding to the process with the memory occupation amount of M may be released.
Step S360: and when the memory recovery times exceed the fourth time threshold, determining a process corresponding to the fourth time threshold, wherein the memory resource occupied by the process corresponding to the fourth time threshold is greater than the memory resource occupied by the process corresponding to the third time threshold.
Step S370: and cleaning the process corresponding to the fourth time threshold value and releasing the memory resource corresponding to the process corresponding to the fourth time threshold value.
When the judgment result indicates that the memory recovery times exceed the fourth time threshold, the process corresponding to the fourth time threshold can be determined, and the process corresponding to the fourth time threshold can be cleaned and the memory resource corresponding to the process corresponding to the fourth time threshold can be released. It should be noted that, in this embodiment, the memory resource occupied by the process corresponding to the fourth time threshold is greater than the memory resource occupied by the process corresponding to the third time threshold, that is, the larger the number threshold is exceeded by the number of times of memory recovery of the electronic device in the specified time period, the more the memory resource occupied by the process that is correspondingly determined and cleaned is, so that memory recovery can be accelerated, and system performance is improved.
For example, the electronic device may preset a process with a memory occupation amount of M corresponding to a third time threshold, and a process with a memory occupation amount of N corresponding to a fourth time threshold, where M is less than N, for example, M is 90M, and N is 100M, and then when the determination result indicates that the memory recovery time exceeds the fourth time threshold, the process with the memory occupation amount of N may be queried, and the process with the memory occupation amount of N may be cleaned and the memory resource corresponding to the process with the memory occupation amount of N may be released. Of course, in this embodiment, the electronic device may further be provided with a number threshold more than the third number threshold and the fourth number threshold, and the more number thresholds correspond to processes with different memory occupancy amounts, so that the memory recovery number can be compared with the more number thresholds, and the processes with more reasonable memory occupancy amounts are determined to be cleaned, thereby accelerating memory recovery.
A memory recovery processing method provided in another embodiment of the present application, when an electronic device runs a target process in a foreground, obtaining remaining memory resources of the electronic device and determining memory resources required by the target process, when the remaining memory resources are less than the memory resources required by the target process, detecting a memory recovery frequency of the electronic device in a specified time period, determining whether the memory recovery frequency exceeds a frequency threshold, when the memory recovery frequency exceeds a third frequency threshold and does not exceed a fourth frequency threshold, determining a process corresponding to the third frequency threshold, cleaning the process corresponding to the third frequency threshold and releasing the memory resources corresponding to the process corresponding to the third frequency threshold, when the memory recovery frequency exceeds the fourth frequency threshold, determining a process corresponding to the fourth frequency threshold, where the memory resources occupied by the process corresponding to the fourth frequency threshold are greater than the memory resources occupied by the process corresponding to the third frequency threshold, and cleaning the process corresponding to the fourth number threshold value and releasing the memory resource corresponding to the process corresponding to the fourth number threshold value. 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 another embodiment of the present disclosure. 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 S410: 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 S420: 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 S410 to S420, refer to steps S210 to S220, which are not described herein again.
Step S430: and judging whether the memory recovery times exceed a time threshold.
For detailed description of step S430, please refer to step S120, which is not described herein again.
Step S440: and when the memory recovery times exceed the time threshold, acquiring all processes running in the background of the electronic equipment.
In some embodiments, when the determination result indicates that the number of times of memory recovery of the electronic device in the specified time period exceeds the number threshold, all processes running in the background of the electronic device may be acquired.
Step S450: and determining the process with the operating frequency lower than the preset operating frequency from all the processes.
Further, the electronic device may be preset with a preset operating frequency, where the preset operating frequency is used as a basis for determining an operating frequency of each process in all processes running in the background of the electronic device. Therefore, in this embodiment, after all the processes running in the background of the electronic device are acquired, the running frequency of each process in all the processes may be detected respectively, and the running frequency of each process may be compared with the preset running frequency respectively, so as to determine a process, of which the running frequency is lower than the preset running frequency, from all the processes. In some embodiments, the detected operating frequency of each process may be an operating frequency of each detected process within a preset time period, for example, an operating frequency of each detected process on the last three days, an operating frequency of each detected process on the last week, and the like, which is not limited herein.
Referring to fig. 5, fig. 5 is a flowchart illustrating the step S450 of the memory reclamation processing method illustrated in fig. 4 according to the present application. As will be explained in detail with respect to the flow shown in fig. 5, the method may specifically include the following steps:
step S451: acquiring a current time point and determining a time period to which the current time point belongs.
As an embodiment, when the determination result indicates that the memory recovery frequency of the electronic device in the specified time period exceeds the frequency threshold, the electronic device may obtain a current time point, and determine a time period to which the current time point belongs, specifically, the electronic device may divide the time period in advance, for example, the electronic device may divide a day into 3 time periods, 12 time periods, 24 time periods, and the like, and, taking dividing the day into 3 time periods as an example, the electronic device may divide the day into 6.00 to 14.00 time periods, 14.00 to 22.00 time periods, and 22.00 to 6.00 time periods, then, if the current time point is 8.30, the time period to which the current time point belongs may be determined to be 6.00 to 14.00 time periods, and if the current time point is 15.30, the time period to which the current time point belongs may be determined to be 14.00 to 22.00 time periods.
Step S452: determining the running frequency of each process in all the processes in the time period.
After the time period to which the current time point belongs is determined, the operating frequency of each process in all the processes in the time period may be queried. For example, if it is determined that the time period to which the current time point belongs is 6.00 to 14.00, the operating frequency of each process in all the processes in the range from 6.00 to 14.00 may be queried. It can be understood that the usage habits of each user in different time periods of a day are different, for example, the user is used to watch news in the morning, drama in the afternoon, books in the evening, and the like, so that the processes that the electronic device may run in different time periods are different based on the usage habits of the user, and as a way, the running frequency of each process in all the processes in the time period can be determined, so as to improve the matching degree with the usage habits of the user, and improve the user experience.
Certainly, in this embodiment, the electronic device may further divide more time periods, for example, the time periods may be divided by taking 30 minutes and 10 minutes as the time periods, so as to improve the detection accuracy of the operating frequency of each process in the time period, which is not described herein again.
Step S453: and determining the process with the operating frequency lower than the preset operating frequency from all the processes based on the operating frequency of each process in the time period.
In some embodiments, after the operation frequency of each process in the time period is determined, a process with the operation frequency lower than a preset operation frequency can be determined from all the processes based on the operation frequency of each process in the time period, so that the problem that the process determined to be cleaned is a process that a user is accustomed to calling in the time period, and the power consumption of the electronic device is increased is avoided. For example, if the time period is 14.00 to 22.00, and the user is accustomed to watching dramas, reading books or reading news in the time period, the operation frequency of the drama-reading process in the 14.00 to 22.00 range is higher than the preset operation frequency, and the operation frequency of the book-reading process or the news-reading process in the 14.00 to 22.00 range is lower than the preset operation frequency, so that the book-reading process and the news-reading process can be determined as processes with the operation frequency lower than the preset operation frequency, so that the book-reading process and the news-reading process can be cleaned subsequently, and memory resources corresponding to the book-reading process and the news-reading process are released.
Step S460: and cleaning the process with the operating frequency lower than the preset operating frequency and releasing the memory resource corresponding to the process with the operating frequency lower than the preset operating frequency.
In another embodiment of the present application, a flow diagram of a memory recycling processing method is provided, where when an electronic device runs a target process in a foreground, remaining memory resources of the electronic device are obtained and 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, a memory recycling frequency of the electronic device in a specified time period is detected, whether the memory recycling frequency exceeds a frequency threshold is determined, when the memory recycling frequency exceeds the frequency threshold, all processes running in the background of the electronic device are obtained, a process with a running frequency lower than a preset running frequency is determined from all the processes, a process with a running frequency lower than the preset running frequency is cleaned, and memory resources corresponding to the process with a running frequency lower than the preset running frequency are released. 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 a 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 power consumption of the electronic device.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a memory recycling method according to yet 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. 6, where the memory recycling method may specifically include the following steps:
step S510: 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 S520: 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 S510 to S520, refer to steps S210 to S220, which are not described herein again.
Step S530: and judging whether the memory recovery times exceed a time threshold value.
For the detailed description of step S530, please refer to step S120, which is not described herein again.
Step S540: and when the memory recovery times exceed the time threshold, acquiring a to-be-cleaned process which is operated by the electronic equipment and meets a preset cleaning list.
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, a waiting cleaning process that is run by the electronic device and meets a preset cleaning list may be obtained. Specifically, in this embodiment, the electronic device may create a preset cleaning list in advance, where the preset cleaning list is used to add a process that can be cleaned preferentially, and the process that can be cleaned preferentially is used as the process to be cleaned, so that when the memory recovery frequency exceeds the frequency threshold, the electronic device may preferentially acquire the process to be cleaned from the preset cleaning list, so as to reduce false cleaning of the process.
Step S550: and cleaning the progress to be cleaned and releasing the memory resource corresponding to the progress to be cleaned.
Furthermore, after the process to be cleaned is obtained, the process to be cleaned can be cleaned and the memory resource corresponding to the process to be cleaned is released, so that the process cleaning efficiency and accuracy are improved.
In another embodiment of the memory recovery processing method provided by the present application, when an electronic device runs a target process in a foreground, obtaining 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 recovery frequency of the electronic device in a specified time period, determining whether the memory recovery frequency exceeds a frequency threshold, when the memory recovery frequency exceeds the frequency threshold, obtaining a to-be-cleaned process that meets a preset cleaning list and is run by the electronic device, cleaning the to-be-cleaned process, and releasing the memory resources corresponding to the to-be-cleaned process. 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 a 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 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 processing apparatus 200 is applied to the electronic device, and will be described below with reference to a block diagram shown in fig. 7, where the memory recycling processing apparatus 200 includes: a memory recovery frequency detection module 210, a memory recovery frequency judgment module 220, and a process cleaning 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 time detecting module 210 includes: the device comprises a memory resource acquisition submodule and a memory recovery time detection submodule, 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.
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 process cleaning module 230 is configured to clean the process running on the electronic device and release the memory resource corresponding to the cleaned process when the number of times of memory recovery exceeds the number threshold.
Further, the time threshold includes a first time threshold and a second time threshold, the first time threshold is smaller than the second time threshold, and the process cleaning module 230 includes: a first quantity determination submodule, a first quantity cleaning submodule, a second quantity determination submodule and a second quantity cleaning submodule, wherein:
and the first quantity determining submodule is used for determining a first preset quantity of processes corresponding to the first times threshold value when the memory recovery times exceed the first times threshold value and do not exceed the second times threshold value.
And the first quantity cleaning submodule is used for cleaning the processes of the first preset quantity and releasing the memory resources corresponding to the processes of the first preset quantity.
And the second quantity determining submodule is used for determining a second preset quantity of processes corresponding to the second secondary number threshold when the memory recovery times exceed the second secondary number threshold, wherein the second preset quantity is greater than the first preset quantity.
And the second quantity cleaning submodule is used for cleaning the processes of the second preset quantity and releasing the memory resources corresponding to the processes of the second preset quantity.
Further, the time threshold includes a third time threshold and a fourth time threshold, the third time threshold is smaller than the fourth time threshold, and the process cleaning module 230 includes: a first process determining submodule, a first process cleaning submodule, a second process determining submodule and a second process cleaning submodule, wherein:
and the first process determining submodule is used for determining the process corresponding to the third time threshold when the memory recovery times exceed the third time threshold and do not exceed the fourth time threshold.
And the first process cleaning submodule is used for cleaning the process corresponding to the third time threshold and releasing the memory resource corresponding to the process corresponding to the third time threshold.
And the second process determining submodule is used for determining the process corresponding to the fourth time threshold when the memory recovery times exceed the fourth time threshold, wherein the memory resource occupied by the process corresponding to the fourth time threshold is larger than the memory resource occupied by the process corresponding to the third time threshold.
And the second process cleaning submodule is used for cleaning the process corresponding to the fourth time threshold and releasing the memory resource corresponding to the process corresponding to the fourth time threshold.
Further, the process cleaning module 230 includes: all processes obtain submodule, low frequency process and confirm submodule and low frequency process and clear up the submodule, wherein:
and the all-process acquisition submodule is used for acquiring all processes running in the background of the electronic equipment.
And the low-frequency process determining submodule is used for determining a process with the operating frequency lower than the preset operating frequency from all the processes. Further, the low frequency process determining sub-module includes: time quantum determining unit, operating frequency determining unit and low frequency process determining unit, wherein:
and the time period determining unit is used for acquiring the current time point and determining the time period to which the current time point belongs.
And the running frequency determining unit is used for determining the running frequency of each process in the all processes in the time period.
And the low-frequency process determining unit is used for determining a process with the operating frequency lower than the preset operating frequency from all the processes based on the operating frequency of each process in the time period.
And the low-frequency process cleaning submodule is used for cleaning the process with the operating frequency lower than the preset operating frequency and releasing the memory resource corresponding to the process with the operating frequency lower than the preset operating frequency.
Further, the process cleaning module 230 includes: the process to be cleaned obtains the submodule and treats the process cleaning submodule, wherein:
and the to-be-cleaned process acquisition submodule is used for acquiring the to-be-cleaned process which is operated by the electronic equipment and meets a preset cleaning list.
And the to-be-cleaned process cleaning submodule is used for cleaning the to-be-cleaned process and releasing the memory resource corresponding to the to-be-cleaned process.
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 a combination 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, or instruction sets. 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 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 device, the electronic device, and the storage medium provided in the embodiments of the present application detect the memory recovery times of the electronic device in a specified time period, determine whether the memory recovery times exceed a time threshold, and when the memory recovery times exceed the time threshold, clean the process running on the electronic device and release the memory resource corresponding to the cleaned process, so that when the sudden increase in the memory recovery times of the electronic device is detected, the process running on the electronic device is cleaned and the memory resource is released, thereby improving 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 (6)

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 on a foreground, acquiring the residual memory resources of the electronic equipment and determining the memory resources 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, cleaning the process operated by the electronic equipment and releasing memory resources corresponding to the cleaned process;
the number threshold includes a first number threshold and a second number threshold, the first number threshold is smaller than the second number threshold, and when the number of times of memory recovery exceeds the number threshold, cleaning the process running on the electronic device and releasing the memory resource corresponding to the cleaned process includes:
when the memory recovery times exceed the first time threshold and do not exceed the second time threshold, determining a first preset number of processes corresponding to the first time threshold;
clearing the processes of the first preset number and releasing memory resources corresponding to the processes of the first preset number; or
When the memory recovery times exceed the second time threshold, determining a second preset number of processes corresponding to the second time threshold, wherein the second preset number is greater than the first preset number;
clearing the processes of the second preset number and releasing memory resources corresponding to the processes of the second preset number; or
The method for clearing the process running by the electronic device and releasing the memory resource corresponding to the cleared process when the memory recovery times exceed the time threshold includes:
when the memory recovery times exceed the third time threshold and do not exceed the fourth time threshold, determining a process corresponding to the third time threshold;
cleaning the process corresponding to the third time threshold value and releasing the memory resource corresponding to the process corresponding to the third time threshold value; or
When the memory recovery times exceed the fourth time threshold, determining a process corresponding to the fourth time threshold, wherein memory resources occupied by the process corresponding to the fourth time threshold are greater than memory resources occupied by the process corresponding to the third time threshold;
cleaning the process corresponding to the fourth numerical threshold and releasing the memory resource corresponding to the process corresponding to the fourth numerical threshold; or
The cleaning the process operated by the electronic device and releasing the memory resource corresponding to the cleaned process includes:
acquiring all processes running in the background of the electronic equipment;
determining a process with the operating frequency lower than a preset operating frequency from all the processes;
and cleaning the process with the operating frequency lower than the preset operating frequency and releasing the memory resource corresponding to the process with the operating frequency lower than the preset operating frequency.
2. The method according to claim 1, wherein the determining the process with the operating frequency lower than the preset operating frequency from the all processes comprises:
acquiring a current time point and determining a time period to which the current time point belongs;
determining the running frequency of each process in all the processes in the time period;
and determining the process with the operating frequency lower than the preset operating frequency from all the processes based on the operating frequency of each process in the time period.
3. The method according to claim 1, wherein the cleaning the process run by the electronic device and releasing the memory resource corresponding to the cleaned process includes:
acquiring a process to be cleaned, which is operated by the electronic equipment and meets a preset cleaning list;
and cleaning the progress to be cleaned and releasing the memory resource corresponding to the progress to be cleaned.
4. 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 process cleaning module is used for cleaning the process operated by the electronic equipment and releasing the memory resource corresponding to the cleaned process when the memory recovery times exceed the time threshold;
wherein the number threshold includes a first number threshold and a second number threshold, the first number threshold is smaller than the second number threshold, and the process cleaning module includes:
the first quantity determining submodule is used for determining a first preset quantity of processes 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 quantity cleaning submodule is used for cleaning the processes of the first preset quantity and releasing the memory resources corresponding to the processes of the first preset quantity; or
The second quantity determining submodule is used for determining a second preset quantity of processes corresponding to the second secondary number threshold when the memory recovery times exceed the second secondary number threshold, wherein the second preset quantity is greater than the first preset quantity;
the second quantity cleaning submodule is used for cleaning the processes of the second preset quantity and releasing the memory resources corresponding to the processes of the second preset quantity; or
Wherein the number threshold includes a third number threshold and a fourth number threshold, the third number threshold is smaller than the fourth number threshold, and the process cleaning module includes:
the first process determining submodule is used for determining a process corresponding to the third time threshold when the memory recycling times exceed the third time threshold and do not exceed the fourth time threshold;
the first process cleaning submodule is used for cleaning the process corresponding to the third time threshold value and releasing the memory resource corresponding to the process corresponding to the third time threshold value; or
A second process determining submodule, configured to determine, when the memory recovery time exceeds the fourth time threshold, a process corresponding to the fourth time threshold, where a memory resource occupied by the process corresponding to the fourth time threshold is greater than a memory resource occupied by the process corresponding to the third time threshold;
the second process cleaning submodule is used for cleaning the process corresponding to the fourth decimal threshold and releasing the memory resource corresponding to the process corresponding to the fourth decimal threshold; or
Wherein, the process cleaning module comprises:
the all-process acquisition submodule is used for acquiring all processes running in the background of the electronic equipment;
the low-frequency process determining submodule is used for determining a process with the running frequency lower than the preset running frequency from all the processes;
and the low-frequency process cleaning submodule is used for cleaning the process with the operating frequency lower than the preset operating frequency and releasing the memory resource corresponding to the process with the operating frequency lower than the preset operating frequency.
5. 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-3.
6. 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 3.
CN201910925526.3A 2019-09-27 2019-09-27 Memory recovery processing method and device, electronic equipment and storage medium Active CN110737606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910925526.3A CN110737606B (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
CN201910925526.3A CN110737606B (en) 2019-09-27 2019-09-27 Memory recovery processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110737606A CN110737606A (en) 2020-01-31
CN110737606B true CN110737606B (en) 2022-06-21

Family

ID=69269764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910925526.3A Active CN110737606B (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) CN110737606B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363841B (en) * 2020-11-27 2022-11-04 Oppo(重庆)智能科技有限公司 Application process searching and killing method and device, electronic equipment and storage medium
CN113391926A (en) * 2021-06-28 2021-09-14 京东方科技集团股份有限公司 Data playing method and device and electronic equipment
CN113568748B (en) * 2021-07-27 2024-06-18 Oppo广东移动通信有限公司 Application process processing method and device, storage medium and electronic equipment
CN116049025B (en) * 2023-01-29 2023-08-11 荣耀终端有限公司 Method for dynamically adjusting memory reclamation GC parameters, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281458A (en) * 2008-05-14 2008-10-08 华为技术有限公司 Apparatus, system and for recycling rubbish
CN104506609A (en) * 2014-12-22 2015-04-08 合一网络技术(北京)有限公司 Method and device for automatically monitoring server state and self-adaptively adjusting services

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6513103B1 (en) * 1997-10-10 2003-01-28 Rambus Inc. Method and apparatus for adjusting the performance of a synchronous memory system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281458A (en) * 2008-05-14 2008-10-08 华为技术有限公司 Apparatus, system and for recycling rubbish
CN104506609A (en) * 2014-12-22 2015-04-08 合一网络技术(北京)有限公司 Method and device for automatically monitoring server state and self-adaptively adjusting services

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Efficient Error-Detection and Recovery Mechanisms for Reliability and Resiliency of Multicores;Sandip Kundu;《2016 29th International Conference on VLSI Design and 2016 15th International Conference on Embedded Systems (VLSID)》;IEEE;20160517;第12-13页 *
高并发搜索系统下内存池的设计和实现;陆兆攀等;《西安工业大学学报》;20160428(第3期);第188-193页 *

Also Published As

Publication number Publication date
CN110737606A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN110737606B (en) Memory recovery processing method and device, electronic equipment and storage medium
CN109656722B (en) Memory optimization method and device, mobile terminal and storage medium
CN110764906B (en) Memory recovery processing method and device, electronic equipment and storage medium
WO2021057619A1 (en) Memory reclamation method and apparatus, electronic device, and storage medium
CN110765031B (en) Data storage method and device, mobile terminal and storage medium
CN106855826B (en) Background application program control method and device
CN107615250B (en) Application-oriented processing method and device and intelligent terminal
WO2021057623A1 (en) Memory recovery method and apparatus, electronic device and storage medium
CN110727607B (en) Memory recovery method and device and electronic equipment
EP3591924A1 (en) Control method, device, storage medium, and electronic apparatus for broadcast sending
CN111273769B (en) Equipment control method and device, electronic equipment and storage medium
CN115858180B (en) Time slicing method and device and electronic equipment
CN111984413A (en) Memory recovery method and device, electronic equipment and storage medium
CN114175748A (en) Communication frequency adjusting method and device, electronic equipment and storage medium
CN115220912A (en) Method and device for configuring system resources, electronic equipment and storage medium
CN112840663B (en) Video encoding method, video encoding device, electronic equipment and storage medium
CN110727605A (en) Memory recovery method and device and electronic equipment
CN114416320A (en) Task processing method, device, equipment and storage medium
CN106550021B (en) Push method and device for push message
CN112540769A (en) Compiling processing method, device, electronic equipment and storage medium
CN111143066A (en) Event processing method, device, equipment and storage medium
CN115587049A (en) Memory recovery method and device, electronic equipment and storage medium
CN112912832A (en) Application pushing method and device, mobile terminal and storage medium
CN112052089B (en) Memory recovery method and device and electronic equipment
CN110865877B (en) Task request response method and device

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